Class ActionTimer
java.lang.Object
com.hypixel.hytale.server.npc.corecomponents.AnnotatedComponentBase
com.hypixel.hytale.server.npc.corecomponents.ActionBase
com.hypixel.hytale.server.npc.corecomponents.timer.ActionTimer
- All Implemented Interfaces:
Action,RoleStateChange,IAnnotatedComponent,IComponentExecutionControl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Timer.TimerActionprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected booleanprotected doubleprotected booleanprotected final TimerFields 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
ConstructorsConstructorDescriptionActionTimer(BuilderActionTimerContinue builderActionTimerContinue, BuilderSupport builderSupport) ActionTimer(BuilderActionTimerModify builderActionTimerModify, BuilderSupport builderSupport) ActionTimer(BuilderActionTimerPause builderActionTimerPause, BuilderSupport builderSupport) ActionTimer(BuilderActionTimer builderActionTimer, BuilderSupport builderSupport) ActionTimer(BuilderActionTimerRestart builderActionTimerRestart, BuilderSupport builderSupport) ActionTimer(BuilderActionTimerStart builderActionTimerStart, BuilderSupport builderSupport) ActionTimer(BuilderActionTimerStop builderActionTimerStop, BuilderSupport builderSupport) -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(Ref<EntityStore> ref, Role role, InfoProvider sensorInfo, double dt, Store<EntityStore> store) protected voidprotected voidprotected voidprotected voidprotected voidprotected voidMethods inherited from class com.hypixel.hytale.server.npc.corecomponents.ActionBase
activate, canExecute, clearOnce, deactivate, isActivated, isTriggered, processDelay, 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
-
timer
-
action
-
minStartValue
protected double minStartValue -
maxStartValue
protected double maxStartValue -
minRestartValue
protected double minRestartValue -
maxValue
protected double maxValue -
rate
protected double rate -
increaseValue
protected double increaseValue -
modifyRepeating
protected boolean modifyRepeating -
repeating
protected boolean repeating
-
-
Constructor Details
-
ActionTimer
public ActionTimer(@Nonnull BuilderActionTimer builderActionTimer, @Nonnull BuilderSupport builderSupport) -
ActionTimer
public ActionTimer(@Nonnull BuilderActionTimerStart builderActionTimerStart, @Nonnull BuilderSupport builderSupport) -
ActionTimer
public ActionTimer(@Nonnull BuilderActionTimerModify builderActionTimerModify, @Nonnull BuilderSupport builderSupport) -
ActionTimer
public ActionTimer(BuilderActionTimerPause builderActionTimerPause, @Nonnull BuilderSupport builderSupport) -
ActionTimer
public ActionTimer(BuilderActionTimerStop builderActionTimerStop, @Nonnull BuilderSupport builderSupport) -
ActionTimer
public ActionTimer(BuilderActionTimerContinue builderActionTimerContinue, @Nonnull BuilderSupport builderSupport) -
ActionTimer
public ActionTimer(BuilderActionTimerRestart builderActionTimerRestart, @Nonnull BuilderSupport builderSupport)
-
-
Method Details
-
execute
public boolean execute(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, InfoProvider sensorInfo, double dt, @Nonnull Store<EntityStore> store) - Specified by:
executein interfaceAction- Overrides:
executein classActionBase
-
executeRestartAction
protected void executeRestartAction() -
executeModifyAction
protected void executeModifyAction() -
executeContinueAction
protected void executeContinueAction() -
executePauseAction
protected void executePauseAction() -
executeStopAction
protected void executeStopAction() -
executeStartAction
protected void executeStartAction()
-