Class StateTransitionController.CompositeActionList
java.lang.Object
com.hypixel.hytale.server.npc.statetransition.StateTransitionController.CompositeActionList
- All Implemented Interfaces:
RoleStateChange,StateTransitionController.IActionListHolder
- Enclosing class:
StateTransitionController
private static class StateTransitionController.CompositeActionList
extends Object
implements StateTransitionController.IActionListHolder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<StateTransitionController.PrioritisedActionList> private int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCompositeActionList(StateTransitionController.PrioritisedActionList initialActionList) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddActionList(int priority, ActionList actionList) booleancanExecute(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) booleanvoidvoidmotionControllerChanged(Ref<EntityStore> ref, NPCEntity npcComponent, com.hypixel.hytale.server.npc.movement.controllers.MotionController motionController, ComponentAccessor<EntityStore> componentAccessor) voidregisterWithSupport(Role role) voidvoidvoidteleported(Role role, World from, World to) void
-
Field Details
-
actionLists
-
currentIndex
private int currentIndex
-
-
Constructor Details
-
CompositeActionList
-
-
Method Details
-
addActionList
-
canExecute
public boolean canExecute(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, InfoProvider sensorInfo, double dt, @Nonnull Store<EntityStore> store) - Specified by:
canExecutein interfaceStateTransitionController.IActionListHolder
-
execute
public boolean execute(@Nonnull Ref<EntityStore> ref, @Nonnull Role role, InfoProvider sensorInfo, double dt, @Nonnull Store<EntityStore> store) - Specified by:
executein interfaceStateTransitionController.IActionListHolder
-
hasCompletedRun
public boolean hasCompletedRun()- Specified by:
hasCompletedRunin interfaceStateTransitionController.IActionListHolder
-
registerWithSupport
- Specified by:
registerWithSupportin interfaceRoleStateChange
-
motionControllerChanged
public void motionControllerChanged(@Nullable Ref<EntityStore> ref, @Nonnull NPCEntity npcComponent, com.hypixel.hytale.server.npc.movement.controllers.MotionController motionController, @Nullable ComponentAccessor<EntityStore> componentAccessor) - Specified by:
motionControllerChangedin interfaceRoleStateChange
-
loaded
- Specified by:
loadedin interfaceRoleStateChange
-
spawned
- Specified by:
spawnedin interfaceRoleStateChange
-
unloaded
- Specified by:
unloadedin interfaceRoleStateChange
-
removed
- Specified by:
removedin interfaceRoleStateChange
-
teleported
- Specified by:
teleportedin interfaceRoleStateChange
-
clearOnce
public void clearOnce()- Specified by:
clearOncein interfaceStateTransitionController.IActionListHolder
-