Class Teleporter

java.lang.Object
com.hypixel.hytale.builtin.adventure.teleporter.component.Teleporter
All Implemented Interfaces:
Component<ChunkStore>, Cloneable

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

  • Constructor Details

    • Teleporter

      public Teleporter()
  • Method Details

    • getComponentType

      public static ComponentType<ChunkStore, Teleporter> getComponentType()
    • getWorldUuid

      @Nullable public UUID getWorldUuid()
    • setWorldUuid

      public void setWorldUuid(@Nullable UUID worldUuid)
    • getTransform

      @Nullable public Transform getTransform()
    • setTransform

      public void setTransform(@Nullable Transform transform)
    • getRelativeMask

      public byte getRelativeMask()
    • setRelativeMask

      public void setRelativeMask(byte relativeMask)
    • getWarp

      @Nullable public String getWarp()
    • setWarp

      public void setWarp(@Nullable String warp)
    • getOwnedWarp

      @Nullable public String getOwnedWarp()
    • setOwnedWarp

      public void setOwnedWarp(@Nullable String ownedWarp)
    • hasOwnedWarp

      public boolean hasOwnedWarp()
    • setWarpNameWordListKey

      public void setWarpNameWordListKey(String warpNameWordListKey)
    • isCustomName

      public boolean isCustomName()
    • setIsCustomName

      public void setIsCustomName(boolean customName)
    • getWarpNameWordListKey

      @Nullable public String getWarpNameWordListKey()
    • getWarpNameWordList

      @Nullable public WordList getWarpNameWordList()
    • isValid

      public boolean isValid()
    • clone

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

    • toTeleport

      @Nullable public Teleport toTeleport(@Nonnull org.joml.Vector3d currentPosition, @Nonnull Rotation3f currentRotation, @Nonnull org.joml.Vector3i blockPosition)
    • validateWarp

      public static Teleporter.ValidationResult validateWarp(@Nonnull Store<ChunkStore> store, @Nonnull Teleporter teleporter, @Nonnull BlockModule.BlockStateInfo blockstate)