Enum Class Teleporter.ValidationResult

java.lang.Object
java.lang.Enum<Teleporter.ValidationResult>
com.hypixel.hytale.builtin.adventure.teleporter.component.Teleporter.ValidationResult
All Implemented Interfaces:
Serializable, Comparable<Teleporter.ValidationResult>, Constable
Enclosing class:
Teleporter

public static enum Teleporter.ValidationResult extends Enum<Teleporter.ValidationResult>
  • Enum Constant Details

    • VALID

      public static final Teleporter.ValidationResult VALID
      Indicates that a Teleporter's "owned" Warp is valid. This is the Warp to the Teleporter's location, NOT the destination that the Teleporter transports a player to.
    • NAME_INVALID

      public static final Teleporter.ValidationResult NAME_INVALID
      Indicates the Teleporter's own name is not a valid Warp name.
    • WARP_INVALID

      public static final Teleporter.ValidationResult WARP_INVALID
      Indicates that the Warp to the Teleporter is missing or invalid.
    • CREATOR_INVALID

      public static final Teleporter.ValidationResult CREATOR_INVALID
      Indicates that the Warp was not created by a Teleporter. A user may have removed or reused the Warp name via commands becoming its creator.
    • POSITION_INVALID

      public static final Teleporter.ValidationResult POSITION_INVALID
      Indicates that the Warp is no longer at the same position as the Teleporter block. A user may have moved the Warp or given it to a different Teleporter.
  • Method Details

    • values

      public static Teleporter.ValidationResult[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Teleporter.ValidationResult valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null