Class NPCMountComponent

java.lang.Object
com.hypixel.hytale.builtin.mounts.NPCMountComponent
All Implemented Interfaces:
Component<EntityStore>, Cloneable

public class NPCMountComponent extends Object implements Component<EntityStore>
  • Field Details

    • CODEC

      public static final BuilderCodec<NPCMountComponent> CODEC
    • originalRoleIndex

      private int originalRoleIndex
    • ownerPlayerRef

      @Nullable private PlayerRef ownerPlayerRef
    • anchorX

      private float anchorX
    • anchorY

      private float anchorY
    • anchorZ

      private float anchorZ
  • Constructor Details

    • NPCMountComponent

      public NPCMountComponent()
  • Method Details

    • getComponentType

      public static ComponentType<EntityStore,NPCMountComponent> getComponentType()
    • getOriginalRoleIndex

      public int getOriginalRoleIndex()
    • setOriginalRoleIndex

      public void setOriginalRoleIndex(int originalRoleIndex)
    • getOwnerPlayerRef

      @Nullable public PlayerRef getOwnerPlayerRef()
    • setOwnerPlayerRef

      public void setOwnerPlayerRef(PlayerRef ownerPlayerRef)
    • getAnchorX

      public float getAnchorX()
    • getAnchorY

      public float getAnchorY()
    • getAnchorZ

      public float getAnchorZ()
    • setAnchor

      public void setAnchor(float x, float y, float z)
    • clone

      @Nonnull public Component<EntityStore> clone()
      Specified by:
      clone in interface Component<EntityStore>
      Overrides:
      clone in class Object