Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- registerWithSupport(ExecutionSupport)
- motionControllerChanged(Ref, NPCEntity, MotionController, ComponentAccessor)
- loaded(ExecutionSupport)
- spawned(ExecutionSupport)
- unloaded(ExecutionSupport)
- removed(ExecutionSupport)
- teleported(ExecutionSupport, World, World)
- clearOnce()
- initiateStateTransition(int, int)
- isRunningTransitionActions()
- runTransitionActions(Ref, ExecutionSupport, double, Store)
- registerFactories(BuilderManager)
- indexStateTransitionEdge(int, int)
Class StateTransitionController
java.lang.Object
com.hypixel.hytale.server.npc.statetransition.StateTransitionController
-
Constructor Summary
ConstructorsConstructorDescriptionStateTransitionController(BuilderStateTransitionController builder, BuilderSupport support) -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic intindexStateTransitionEdge(int from, int to) voidinitiateStateTransition(int fromState, int toState) booleanvoidloaded(ExecutionSupport executionSupport) voidmotionControllerChanged(Ref<EntityStore> ref, NPCEntity npcComponent, MotionController motionController, ComponentAccessor<EntityStore> componentAccessor) static voidregisterFactories(BuilderManager builderManager) voidregisterWithSupport(ExecutionSupport executionSupport) voidremoved(ExecutionSupport executionSupport) booleanrunTransitionActions(Ref<EntityStore> ref, ExecutionSupport executionSupport, double dt, Store<EntityStore> store) voidspawned(ExecutionSupport executionSupport) voidteleported(ExecutionSupport executionSupport, World from, World to) voidunloaded(ExecutionSupport executionSupport)
-
Constructor Details
-
StateTransitionController
public StateTransitionController(@Nonnull BuilderStateTransitionController builder, @Nonnull BuilderSupport support)
-
-
Method Details
-
registerWithSupport
-
motionControllerChanged
public void motionControllerChanged(@Nullable Ref<EntityStore> ref, @Nonnull NPCEntity npcComponent, @Nullable MotionController motionController, @Nullable ComponentAccessor<EntityStore> componentAccessor) -
loaded
-
spawned
-
unloaded
-
removed
-
teleported
-
clearOnce
public void clearOnce() -
initiateStateTransition
public void initiateStateTransition(int fromState, int toState) -
isRunningTransitionActions
public boolean isRunningTransitionActions() -
runTransitionActions
public boolean runTransitionActions(Ref<EntityStore> ref, ExecutionSupport executionSupport, double dt, Store<EntityStore> store) -
registerFactories
-
indexStateTransitionEdge
public static int indexStateTransitionEdge(int from, int to)
-