Class Warp

java.lang.Object
com.hypixel.hytale.builtin.teleport.Warp

@Deprecated public class Warp extends Object
Deprecated.
This class is deprecated and will be rewritten in the future.
Warp

Represents a warp point that can be used for teleportation.

  • Field Details

    • CODEC

      public static final Codec<Warp> CODEC
      Deprecated.
    • ARRAY_CODEC

      public static final ArrayCodec<Warp> ARRAY_CODEC
      Deprecated.
  • Constructor Details

    • Warp

      public Warp()
      Deprecated.
      Empty Constructor for a Warp instance.

      Used by the codec to instantiate Warp instances.

    • Warp

      public Warp(@Nonnull Transform transform, @Nonnull String id, @Nonnull World world, @Nonnull String creator, @Nonnull Instant creationDate)
      Deprecated.
      Default Constructor for a Warp instance.
      Parameters:
      transform - The transform of the warp.
      id - The unique identifier of the warp.
      world - The world in which the warp is located.
      creator - The username of the player who created the warp.
      creationDate - The date and time when the warp was created.
  • Method Details

    • getId

      public String getId()
      Deprecated.
    • getWorld

      public String getWorld()
      Deprecated.
    • getTransform

      @Nullable public Transform getTransform()
      Deprecated.
    • getCreator

      public String getCreator()
      Deprecated.
    • getCreationDate

      public Instant getCreationDate()
      Deprecated.
    • equals

      public boolean equals(@Nullable Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      @Nonnull public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • toTeleport

      @Nullable public Teleport toTeleport()
      Deprecated.
      Called to convert this warp to a Teleport instance.
      Returns:
      a new Teleport instance for this warp, or null if the world is not loaded.