Class ConfigurableInstanceBlock

java.lang.Object
com.hypixel.hytale.builtin.instances.blocks.ConfigurableInstanceBlock
All Implemented Interfaces:
Component<ChunkStore>, Cloneable

public class ConfigurableInstanceBlock extends Object implements Component<ChunkStore>
  • Field Details

  • Constructor Details

    • ConfigurableInstanceBlock

      public ConfigurableInstanceBlock()
    • ConfigurableInstanceBlock

      public ConfigurableInstanceBlock(UUID worldUUID, boolean closeOnRemove, String instanceName, String instanceKey, @Nullable org.joml.Vector3d positionOffset, @Nullable Rotation3f rotation, boolean personalReturnPoint, double removeBlockAfter)
  • Method Details

    • getComponentType

      @Nonnull public static ComponentType<ChunkStore, ConfigurableInstanceBlock> getComponentType()
    • getWorldUUID

      public UUID getWorldUUID()
    • setWorldUUID

      public void setWorldUUID(UUID worldUUID)
    • getWorldFuture

      public CompletableFuture<World> getWorldFuture()
    • setWorldFuture

      public void setWorldFuture(CompletableFuture<World> worldFuture)
    • isCloseOnRemove

      public boolean isCloseOnRemove()
    • setCloseOnRemove

      public void setCloseOnRemove(boolean closeOnRemove)
    • getInstanceName

      public String getInstanceName()
      Returns:
      the name of the instance.
    • setInstanceName

      public void setInstanceName(@Nonnull String instanceName)
      Called to set the name of the instance.
      Parameters:
      instanceName - The given name to set.
    • getInstanceKey

      public String getInstanceKey()
      Returns:
      the key of this instance block state.
    • setInstanceKey

      public void setInstanceKey(@Nonnull String instanceKey)
      Called to set the key of this instance block state.
      Parameters:
      instanceKey - The given key to set.
    • getPositionOffset

      @Nullable public org.joml.Vector3d getPositionOffset()
      Returns:
      the position offset of this instance block state.
    • setPositionOffset

      public void setPositionOffset(@Nullable org.joml.Vector3d positionOffset)
      Called to set the position offset of this instance block state.
      Parameters:
      positionOffset - The given position offset to set.
    • getRotation

      @Nullable public Rotation3f getRotation()
      Returns:
      the rotation of this instance block state.
    • setRotation

      public void setRotation(@Nullable Rotation3f rotation)
      Called to set the rotation of this instance block state.
      Parameters:
      rotation - The given rotation to set.
    • isPersonalReturnPoint

      public boolean isPersonalReturnPoint()
      Determines whether this instance block state is a personal return point.
      Returns:
      true if it's a personal return point, false otherwise.
    • setPersonalReturnPoint

      public void setPersonalReturnPoint(boolean personalReturnPoint)
      Called to set whether this instance block state is a personal return point.
      Parameters:
      personalReturnPoint - Determines whether it's a personal return point.
    • getRemoveBlockAfter

      public double getRemoveBlockAfter()
      Returns:
      true if the block should be removed after, false otherwise.
    • setRemoveBlockAfter

      public void setRemoveBlockAfter(double removeBlockAfter)
      Called to set whether the block should be removed after.
      Parameters:
      removeBlockAfter - Determines whether the block should be removed after.
    • clone

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