Contents
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
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the Warp was not created by a Teleporter.Indicates the Teleporter's own name is not a valid Warp name.Indicates that the Warp is no longer at the same position as the Teleporter block.Indicates that a Teleporter's "owned" Warp is valid.Indicates that the Warp to the Teleporter is missing or invalid. -
Method Summary
Modifier and TypeMethodDescriptionstatic Teleporter.ValidationResultReturns the enum constant of this class with the specified name.static Teleporter.ValidationResult[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
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
Indicates the Teleporter's own name is not a valid Warp name. -
WARP_INVALID
Indicates that the Warp to the Teleporter is missing or invalid. -
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
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
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
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 nameNullPointerException- if the argument is null
-