Class ActionWithDelay
java.lang.Object
com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
com.hypixel.hytale.server.npc.corecomponents.ActionBase
com.hypixel.hytale.server.npc.corecomponents.ActionWithDelay
- All Implemented Interfaces:
Action,RoleStateChange,IAnnotatedComponent,IComponentExecutionControl
- Direct Known Subclasses:
ActionDropItem,ActionPickUpItem,ActionTimeout
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate final double[]private booleanFields inherited from class com.hypixel.hytale.server.npc.corecomponents.ActionBase
active, once, triggeredFields inherited from class com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
index, parentFields inherited from interface com.hypixel.hytale.server.npc.instructions.Action
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected booleanprotected booleanprotected voidbooleanprocessDelay(float dt) protected voidstartDelay(EntitySupport support) Methods inherited from class com.hypixel.hytale.server.npc.corecomponents.ActionBase
activate, canExecute, clearOnce, deactivate, execute, isActivated, isTriggered, setOnceMethods inherited from class com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
getIndex, getInfo, getParent, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.server.npc.util.IAnnotatedComponent
getBreadCrumbs, getBreadCrumbs, getIndex, getInfo, getLabel, getParent, setContextMethods inherited from interface com.hypixel.hytale.server.npc.instructions.RoleStateChange
loaded, motionControllerChanged, registerWithSupport, removed, spawned, teleported, unloaded
-
Field Details
-
delayRange
private final double[] delayRange -
delay
private double delay -
isDelaying
private boolean isDelaying
-
-
Constructor Details
-
ActionWithDelay
-
-
Method Details
-
processDelay
public boolean processDelay(float dt) - Specified by:
processDelayin interfaceIComponentExecutionControl- Overrides:
processDelayin classActionBase
-
isDelaying
protected boolean isDelaying() -
isDelayPrepared
protected boolean isDelayPrepared() -
prepareDelay
protected void prepareDelay() -
clearDelay
protected void clearDelay() -
startDelay
-