Package noppes.npcs.api.event
Interface IAbilityEvent.TickEvent
-
- All Superinterfaces:
IAbilityEvent,ICustomNPCsEvent,INpcEvent
- Enclosing interface:
- IAbilityEvent
public static interface IAbilityEvent.TickEvent extends IAbilityEvent
Fired every tick while an ability is executing. Provides the current phase and tick count.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface noppes.npcs.api.event.IAbilityEvent
IAbilityEvent.CompleteEvent, IAbilityEvent.DefendEvent, IAbilityEvent.ExecuteEvent, IAbilityEvent.HitEvent, IAbilityEvent.InterruptEvent, IAbilityEvent.StartEvent, IAbilityEvent.TickEvent, IAbilityEvent.ToggleEvent, IAbilityEvent.ToggleUpdateEvent
-
Nested classes/interfaces inherited from interface noppes.npcs.api.event.ICustomNPCsEvent
ICustomNPCsEvent.CNPCNaturalSpawnEvent, ICustomNPCsEvent.ScriptedCommandEvent
-
Nested classes/interfaces inherited from interface noppes.npcs.api.event.INpcEvent
INpcEvent.CollideEvent, INpcEvent.DamagedEvent, INpcEvent.DialogClosedEvent, INpcEvent.DialogEvent, INpcEvent.DiedEvent, INpcEvent.InitEvent, INpcEvent.InteractEvent, INpcEvent.KilledEntityEvent, INpcEvent.MeleeAttackEvent, INpcEvent.RangedLaunchedEvent, INpcEvent.SwingEvent, INpcEvent.TargetEvent, INpcEvent.TargetLostEvent, INpcEvent.TimerEvent, INpcEvent.UpdateEvent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetAbilityPhase()Get the current phase of the ability.intgetTick()Get the current tick count within the phase.-
Methods inherited from interface noppes.npcs.api.event.IAbilityEvent
getAbility, getEntity, getPlayer, getTarget, isNPC
-
Methods inherited from interface noppes.npcs.api.event.ICustomNPCsEvent
getHookName
-
-
-
-
Method Detail
-
getAbilityPhase
int getAbilityPhase()
Get the current phase of the ability. 0 = IDLE, 1 = WINDUP, 2 = ACTIVE, 3 = DAZED, 4 = BURST_DELAY- Returns:
- the current ability phase (0=IDLE, 1=WINDUP, 2=ACTIVE, 3=DAZED, 4=BURST_DELAY)
-
getTick
int getTick()
Get the current tick count within the phase.- Returns:
- the current tick within the phase
-
-