Package noppes.npcs.api.event
Interface INpcEvent
-
- All Superinterfaces:
ICustomNPCsEvent
- All Known Subinterfaces:
IAbilityEvent,IAbilityEvent.CompleteEvent,IAbilityEvent.ExecuteEvent,IAbilityEvent.HitEvent,IAbilityEvent.InterruptEvent,IAbilityEvent.StartEvent,IAbilityEvent.TickEvent,IAbilityEvent.ToggleEvent,IAbilityEvent.ToggleUpdateEvent,INpcEvent.CollideEvent,INpcEvent.DamagedEvent,INpcEvent.DialogClosedEvent,INpcEvent.DialogEvent,INpcEvent.DiedEvent,INpcEvent.InitEvent,INpcEvent.InteractEvent,INpcEvent.MeleeAttackEvent,INpcEvent.RangedLaunchedEvent,INpcEvent.SwingEvent,INpcEvent.TargetEvent,INpcEvent.TargetLostEvent,INpcEvent.TimerEvent,INpcEvent.UpdateEvent
public interface INpcEvent extends ICustomNPCsEvent
Events fired for CustomNPC entities during their lifecycle and interactions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceINpcEvent.CollideEventFired when an entity collides with the NPC.static interfaceINpcEvent.DamagedEventFired when the NPC takes damage.static interfaceINpcEvent.DialogClosedEventFired when a dialog with the NPC is closed.static interfaceINpcEvent.DialogEventFired when a dialog opens with the NPC.static interfaceINpcEvent.DiedEventFired when the NPC dies.static interfaceINpcEvent.InitEventFired when the NPC is initialized.static interfaceINpcEvent.InteractEventFired when a player interacts with the NPC.static interfaceINpcEvent.KilledEntityEventFired when the NPC kills an entity.static interfaceINpcEvent.MeleeAttackEventFired when the NPC performs a melee attack.static interfaceINpcEvent.RangedLaunchedEventFired when the NPC launches a ranged attack.static interfaceINpcEvent.SwingEventFired when the NPC swings its weapon.static interfaceINpcEvent.TargetEventFired when the NPC acquires a new target.static interfaceINpcEvent.TargetLostEventFired when the NPC loses its current target.static interfaceINpcEvent.TimerEventFired when an NPC timer triggers.static interfaceINpcEvent.UpdateEventFired each tick for the NPC.-
Nested classes/interfaces inherited from interface noppes.npcs.api.event.ICustomNPCsEvent
ICustomNPCsEvent.CNPCNaturalSpawnEvent, ICustomNPCsEvent.ScriptedCommandEvent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ICustomNpcgetNpc()-
Methods inherited from interface noppes.npcs.api.event.ICustomNPCsEvent
getHookName
-
-
-
-
Method Detail
-
getNpc
ICustomNpc getNpc()
- Returns:
- the NPC associated with this event.
-
-