mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 03:44:43 +00:00
Player Abilities
This commit is contained in:
1 parent
06c9daf81b
commit
db6a68e430
7 files changed
+261
-28
No files matched your search
@@ -1,8 +1,8 @@
|
||||
package noppes.npcs.api.handler;
|
||||
|
||||
/**
|
||||
* Handler for ability presets. Allows scripts to save, load, and manage
|
||||
* reusable ability templates.
|
||||
* Handler for ability management. Allows scripts to query ability types,
|
||||
* built-in abilities, and custom ability presets.
|
||||
* <p>
|
||||
* Access via API.getAbilities()
|
||||
*/
|
||||
@@ -10,40 +10,38 @@ public interface IAbilityHandler {
|
||||
|
||||
/**
|
||||
* Get all registered ability type IDs.
|
||||
* These are the types that can be used to create new abilities.
|
||||
*
|
||||
* @return Array of type IDs (e.g., "cnpc:slam", "cnpc:charge")
|
||||
*/
|
||||
String[] getTypes();
|
||||
|
||||
/**
|
||||
* Check if an ability type is registered.
|
||||
*
|
||||
* @param typeId The type ID to check
|
||||
* @return true if the type exists
|
||||
*/
|
||||
boolean hasType(String typeId);
|
||||
|
||||
/**
|
||||
* Get all saved ability preset names.
|
||||
*
|
||||
* @return Array of saved ability names
|
||||
* Get all built-in ability names.
|
||||
*/
|
||||
String[] getSavedNames();
|
||||
String[] getAbilityNameArray();
|
||||
|
||||
/**
|
||||
* Check if a saved ability preset exists.
|
||||
*
|
||||
* @param name The name of the ability
|
||||
* @return true if the preset exists
|
||||
* Check if a built-in ability exists by name.
|
||||
*/
|
||||
boolean has(String name);
|
||||
boolean hasAbilityName(String name);
|
||||
|
||||
/**
|
||||
* Delete a saved ability preset.
|
||||
* 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.
|
||||
*
|
||||
* @param name The name of the ability to delete
|
||||
* @return true if deleted successfully
|
||||
*/
|
||||
boolean delete(String name);
|
||||
boolean deleteCustomAbilityById(String uuid);
|
||||
}
|
||||
Reference in new issue
Block a user