Ability Push

This commit is contained in:
Kam committed 2026-01-09 15:28:48 -05:00
1 parent ed5640d238
commit 3ac76848d3
7 files changed
+448 -2

No files matched your search

@@ -0,0 +1,49 @@
package noppes.npcs.api.handler;
/**
* Handler for ability presets. Allows scripts to save, load, and manage
* reusable ability templates.
*
* Access via API.getAbilities()
*/
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
*/
String[] getSavedNames();
/**
* Check if a saved ability preset exists.
*
* @param name The name of the ability
* @return true if the preset exists
*/
boolean has(String name);
/**
* Delete a saved ability preset.
*
* @param name The name of the ability to delete
* @return true if deleted successfully
*/
boolean delete(String name);
}