Class ActionList
java.lang.Object
com.hypixel.hytale.server.npc.instructions.ActionList
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected final Action[]protected booleanprotected booleanstatic final ActionList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleancanExecute(Ref<EntityStore> ref, Role role, InfoProvider sensorInfo, double dt, Store<EntityStore> store) voidbooleanexecute(Ref<EntityStore> ref, Role role, InfoProvider sensorInfo, double dt, Store<EntityStore> store) getComponent(int index) booleanvoidvoidmotionControllerChanged(Ref<EntityStore> ref, NPCEntity npcComponent, com.hypixel.hytale.server.npc.movement.controllers.MotionController motionController, ComponentAccessor<EntityStore> componentAccessor) voidvoidregisterWithSupport(Role role) voidvoidsetAtomic(boolean atomic) voidsetBlocking(boolean blocking) voidsetContext(IAnnotatedComponent parent) voidsetOnce()voidvoidteleported(Role role, World from, World to) void
-
Field Details
-
EMPTY_ACTION_LIST
-
actions
-
blocking
protected boolean blocking -
atomic
protected boolean atomic -
actionIndex
protected int actionIndex
-
-
Constructor Details
-
ActionList
-
-
Method Details
-
setBlocking
public void setBlocking(boolean blocking) -
setAtomic
public void setAtomic(boolean atomic) -
canExecute
public boolean canExecute(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, InfoProvider sensorInfo, double dt, @Nonnull Store<EntityStore> store) -
execute
public boolean execute(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, InfoProvider sensorInfo, double dt, @Nonnull Store<EntityStore> store) -
hasCompletedRun
public boolean hasCompletedRun() -
setContext
-
registerWithSupport
-
motionControllerChanged
public void motionControllerChanged(@Nullable Ref<EntityStore> ref, @Nonnull NPCEntity npcComponent, com.hypixel.hytale.server.npc.movement.controllers.MotionController motionController, @Nullable ComponentAccessor<EntityStore> componentAccessor) -
loaded
-
spawned
-
unloaded
-
removed
-
teleported
-
clearOnce
public void clearOnce() -
onEndMotion
public void onEndMotion() -
setOnce
public void setOnce() -
actionCount
public int actionCount() -
getComponent
-