Package noppes.npcs.api.event
Interface IChainEvent.InterruptEvent
-
- All Superinterfaces:
IChainEvent,ICustomNPCsEvent
- Enclosing interface:
- IChainEvent
public static interface IChainEvent.InterruptEvent extends IChainEvent
Fired when a chained ability is interrupted by damage.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface noppes.npcs.api.event.IChainEvent
IChainEvent.CompleteEvent, IChainEvent.InterruptEvent, IChainEvent.NextEvent, IChainEvent.StartEvent
-
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 floatgetDamage()Get the amount of damage that caused the interruption.IDamageSourcegetDamageSource()Get the damage source that caused the interruption.-
Methods inherited from interface noppes.npcs.api.event.IChainEvent
getChain, getEntity, getEntryIndex, getNpc, getPlayer, getTarget, isNPC
-
Methods inherited from interface noppes.npcs.api.event.ICustomNPCsEvent
getHookName
-
-
-
-
Method Detail
-
getDamageSource
IDamageSource getDamageSource()
Get the damage source that caused the interruption.- Returns:
- the damage source used for this hit
-
getDamage
float getDamage()
Get the amount of damage that caused the interruption.- Returns:
- the damage amount
-
-