Player Abilities

This commit is contained in:
Kam committed 2026-01-30 05:01:38 -05:00
1 parent 06c9daf81b
commit db6a68e430
7 files changed
+261 -28

No files matched your search

@@ -151,6 +151,28 @@ public interface IAbility {
*/
int getCurrentTick();
/**
* Get the allowed user type for this ability.
* @return 0=NPC_ONLY, 1=PLAYER_ONLY, 2=BOTH
*/
int getAllowedByType();
/**
* Set the allowed user type for this ability.
* @param type 0=NPC_ONLY, 1=PLAYER_ONLY, 2=BOTH
*/
void setAllowedByType(int type);
/**
* Check if this ability ignores cooldowns.
*/
boolean isIgnoreCooldown();
/**
* Set whether this ability ignores cooldowns.
*/
void setIgnoreCooldown(boolean ignore);
/**
* Get this ability's data as NBT.
*/