Contents
Class MotionContextSupport
java.lang.Object
com.hypixel.hytale.server.npc.role.support.MotionContextSupport
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
ECS component bundling motion-controller context.
-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclone()static ComponentType<EntityStore, MotionContextSupport> voidsetActiveMotionController(MotionController activeMotionController) booleanLatch the next body motion step.booleanLatch the next head motion step.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
MotionContextSupport
public MotionContextSupport()
-
-
Method Details
-
getComponentType
-
setActiveMotionController
-
getActiveMotionController
-
getNextBodyMotionStep
-
setNextBodyMotionStep
Latch the next body motion step. Only the first call per tick wins. -
clearNextBodyMotionStep
public void clearNextBodyMotionStep() -
getNextHeadMotionStep
-
setNextHeadMotionStep
Latch the next head motion step. Only the first call per tick wins. -
clearNextHeadMotionStep
public void clearNextHeadMotionStep() -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Returns:
- a clone instance of the original component instance.
-