Contents
Class DeferrableAction
java.lang.Object
com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
com.hypixel.hytale.server.npc.corecomponents.ActionBase
com.hypixel.hytale.server.npc.corecomponents.DeferrableAction
- All Implemented Interfaces:
Action, Deferrable, RoleStateChange, IAnnotatedComponent, IComponentExecutionControl
- Direct Known Subclasses:
ActionPlaySound, ActionSpawnInteraction, ActionSpawnParticles
Base for actions that fire after a configured
Delay by capturing their sensor-derived inputs at execute time
and completing via the deferred-action queue (a self-contained continuation per fire), rather than by being
re-executed in place. Because each fire's countdown and captured position live on the continuation
concurrent fires are independent, so these are safe inside a ForEach without IsolatePerTarget.-
Field Summary
Fields inherited from interface Action
EMPTY_ARRAY -
Method Summary
Methods inherited from class ActionBase
activate, canExecute, clearOnce, deactivate, execute, isActivated, isTriggered, processDelay, setOnceMethods inherited from class AnnotatedComponentBase
getIndex, getInfo, getParent, setContextMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IAnnotatedComponent
getBreadCrumbs, getBreadCrumbs, getIndex, getInfo, getLabel, getParent, setContextMethods inherited from interface RoleStateChange
loaded, motionControllerChanged, registerWithSupport, removed, spawned, teleported, unloaded
-
Method Details
-
isDeferred
public boolean isDeferred()- Specified by:
isDeferredin interfaceDeferrable- Returns:
- true when this instance is configured to defer (its delay is greater than zero).
-