Remove all Legacy Ability Content, cleanup API.

- Add Script Tab to Abilities
- Add Custom Ability
- Add Icon Support for Abilities / Default Icon Support
- Remove Icon Tab and throw it into Effects with allowed Override
- Removed Deprecated API Sources
This commit is contained in:
Kam committed 2026-02-27 16:43:34 -05:00
1 parent aac5f98be8
commit ae98d12faf
8 files changed
+149 -30

No files matched your search

@@ -3,7 +3,9 @@ package noppes.npcs.api.event;
import cpw.mods.fml.common.eventhandler.Cancelable;
import noppes.npcs.api.IDamageSource;
import noppes.npcs.api.ability.IAbility;
import noppes.npcs.api.entity.ICustomNpc;
import noppes.npcs.api.entity.IEntityLivingBase;
import noppes.npcs.api.entity.IPlayer;
/**
* Events related to NPC ability execution.
@@ -11,6 +13,21 @@ import noppes.npcs.api.entity.IEntityLivingBase;
*/
public interface IAbilityEvent extends INpcEvent {
/**
* Get the entity executing the ability (NPC or Player).
*/
IEntityLivingBase getEntity();
/**
* Get the player executing the ability, or null if the caster is an NPC.
*/
IPlayer getPlayer();
/**
* Whether the entity executing the ability is an NPC.
*/
boolean isNPC();
/**
* Get the ability involved in this event.
*/