Class MountedComponent

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

public class MountedComponent extends Object implements Component<EntityStore>
  • Constructor Details

    • MountedComponent

      public MountedComponent(Ref<EntityStore> mountedToEntity, org.joml.Vector3f attachmentOffset, MountController controller)
    • MountedComponent

      public MountedComponent(Ref<ChunkStore> mountedToBlock, org.joml.Vector3f attachmentOffset, BlockMountType blockMountType)
  • Method Details

    • getComponentType

      public static ComponentType<EntityStore, MountedComponent> getComponentType()
    • getMountedToEntity

      @Nullable public Ref<EntityStore> getMountedToEntity()
    • getMountedToBlock

      @Nullable public Ref<ChunkStore> getMountedToBlock()
    • getAttachmentOffset

      public org.joml.Vector3fc getAttachmentOffset()
    • getControllerType

      public MountController getControllerType()
    • getBlockMountType

      public BlockMountType getBlockMountType()
    • getMountedDurationMs

      public long getMountedDurationMs()
    • consumeNetworkOutdated

      public boolean consumeNetworkOutdated()
    • clone

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