Files
CustomNPC-Plus-API/java/noppes/npcs/api/handler/IAbilityHandler.java
T
2026-01-30 05:01:38 -05:00

48 lines
1015 B
Java

package noppes.npcs.api.handler;
/**
* Handler for ability management. Allows scripts to query ability types,
* built-in abilities, and custom ability presets.
* <p>
* Access via API.getAbilities()
*/
public interface IAbilityHandler {
/**
* Get all registered ability type IDs.
*/
String[] getTypes();
/**
* Check if an ability type is registered.
*/
boolean hasType(String typeId);
/**
* Get all built-in ability names.
*/
String[] getAbilityNameArray();
/**
* Check if a built-in ability exists by name.
*/
boolean hasAbilityName(String name);
/**
* Get all custom ability preset UUIDs.
*/
String[] getCustomAbilityIdArray();
/**
* Check if a custom ability preset exists by UUID.
*/
boolean hasCustomAbilityId(String uuid);
/**
* Delete a custom ability preset by UUID.
*
* @return true if deleted successfully
*/
boolean deleteCustomAbilityById(String uuid);
}