Enum Class Rotator.Axis
- All Implemented Interfaces:
Serializable
,Comparable<Rotator.Axis>
,Constable
Represents an axis around which to rotate.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAn arbitrary global axis, relative to the world as a whole.An arbitrary local axis, relative to the object being rotated.The local X axis, relative to the object being rotated.The local Y axis, relative to the object being rotated.The local Z axis, relative to the object being rotated.The global X axis, relative to the world as a whole.The global Y axis, relative to the world as a whole.The global Z axis, relative to the world as a whole. -
Method Summary
Modifier and TypeMethodDescriptionstatic Rotator.Axis
fromBukkit
(org.bukkit.Axis axis) A helper method for converting from BukkitAxis
.toString()
static Rotator.Axis
Returns the enum constant of this class with the specified name.static Rotator.Axis[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
X
The global X axis, relative to the world as a whole. -
LOCAL_X
The local X axis, relative to the object being rotated. -
Y
The global Y axis, relative to the world as a whole. -
LOCAL_Y
The local Y axis, relative to the object being rotated. -
Z
The global Z axis, relative to the world as a whole. -
LOCAL_Z
The local Z axis, relative to the object being rotated. -
ARBITRARY
An arbitrary global axis, relative to the world as a whole. -
LOCAL_ARBITRARY
An arbitrary local axis, relative to the object being rotated.
-
-
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
-
toString
- Overrides:
toString
in classEnum<Rotator.Axis>
-
fromBukkit
A helper method for converting from BukkitAxis
.- Parameters:
axis
- the axis to convert from- Returns:
- the converted axis
-