Class MotionContextSupport

java.lang.Object
com.hypixel.hytale.server.npc.role.support.MotionContextSupport
All Implemented Interfaces:
Component<EntityStore>, Cloneable

public class MotionContextSupport extends Object implements Component<EntityStore>
ECS component bundling motion-controller context.
  • Constructor Details

    • MotionContextSupport

      public MotionContextSupport()
  • Method Details

    • getComponentType

      @Nonnull public static ComponentType<EntityStore, MotionContextSupport> getComponentType()
    • setActiveMotionController

      public void setActiveMotionController(@Nullable MotionController activeMotionController)
    • getActiveMotionController

      @Nullable public MotionController getActiveMotionController()
    • getNextBodyMotionStep

      @Nullable public Instruction getNextBodyMotionStep()
    • setNextBodyMotionStep

      public boolean setNextBodyMotionStep(@Nonnull Instruction step)
      Latch the next body motion step. Only the first call per tick wins.
    • clearNextBodyMotionStep

      public void clearNextBodyMotionStep()
    • getNextHeadMotionStep

      @Nullable public Instruction getNextHeadMotionStep()
    • setNextHeadMotionStep

      public boolean setNextHeadMotionStep(@Nonnull Instruction step)
      Latch the next head motion step. Only the first call per tick wins.
    • clearNextHeadMotionStep

      public void clearNextHeadMotionStep()
    • clone

      public Component<EntityStore> clone()
      Specified by:
      clone in interface Component<EntityStore>
      Returns:
      a clone instance of the original component instance.