Add client-side ability cooldowns, sync, and GUI updates

This commit is contained in:
2025-12-07 22:54:45 +01:00
parent d4ad08a35a
commit c6cf504f67
11 changed files with 310 additions and 7 deletions
@@ -2,6 +2,7 @@ package net.fretux.skillengine.skilltree;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.server.level.ServerPlayer;
import java.util.List;
@@ -45,4 +46,8 @@ public class AbilityNode {
public List<ResourceLocation> getTags() { return tags; }
public ResourceLocation getIcon() { return icon; }
public int getCooldown() { return cooldown; }
public void execute(ServerPlayer player) {
player.sendSystemMessage(Component.literal("Activated ability: " + id));
}
}