Ability Preview GUI

This commit is contained in:
Kam committed 2026-01-28 20:43:32 -05:00
1 parent 216a3dbbf8
commit 55658a7956
37 files changed
+2396 -162

No files matched your search

@@ -785,6 +785,18 @@ public class NoppesUtilServer {
sendScrollData(player, map, EnumScrollData.ABILITY_TYPES);
}
public static void sendSavedAbilitiesData(EntityPlayerMP player) {
HashMap<String, Integer> map = new HashMap<String, Integer>();
kamkeel.npcs.controllers.data.ability.AbilityController controller = kamkeel.npcs.controllers.data.ability.AbilityController.Instance;
if (controller != null) {
int index = 0;
for (String name : controller.getSavedAbilityNames()) {
map.put(name, index++);
}
}
sendScrollData(player, map, EnumScrollData.ABILITIES);
}
public static DialogOption setNpcDialog(int slot, int dialogId, EntityPlayer player) throws IOException {
return setNpcDialog(slot, dialogId, getEditingNpc(player));
}