Package net.kyori.adventure.text
Enum BlockNBTComponent.WorldPos.Coordinate.Type
- java.lang.Object
-
- java.lang.Enum<BlockNBTComponent.WorldPos.Coordinate.Type>
-
- net.kyori.adventure.text.BlockNBTComponent.WorldPos.Coordinate.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<BlockNBTComponent.WorldPos.Coordinate.Type>
- Enclosing interface:
- BlockNBTComponent.WorldPos.Coordinate
public static enum BlockNBTComponent.WorldPos.Coordinate.Type extends Enum<BlockNBTComponent.WorldPos.Coordinate.Type>
The type of a coordinate.- Since:
- 4.0.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BlockNBTComponent.WorldPos.Coordinate.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static BlockNBTComponent.WorldPos.Coordinate.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ABSOLUTE
public static final BlockNBTComponent.WorldPos.Coordinate.Type ABSOLUTE
An absolute coordinate.- Since:
- 4.0.0
-
RELATIVE
public static final BlockNBTComponent.WorldPos.Coordinate.Type RELATIVE
A relative coordinate.- Since:
- 4.0.0
-
-
Method Detail
-
values
public static BlockNBTComponent.WorldPos.Coordinate.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BlockNBTComponent.WorldPos.Coordinate.Type c : BlockNBTComponent.WorldPos.Coordinate.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BlockNBTComponent.WorldPos.Coordinate.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-