Package org.spongepowered.api.util
Enum RelativePositions
- java.lang.Object
-
- java.lang.Enum<RelativePositions>
-
- org.spongepowered.api.util.RelativePositions
-
- All Implemented Interfaces:
Serializable
,Comparable<RelativePositions>
public enum RelativePositions extends Enum<RelativePositions>
Represents the possible ways entity positions can be modified.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RelativePositions
valueOf(String name)
Returns the enum constant of this type with the specified name.static RelativePositions[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
X
public static final RelativePositions X
-
Y
public static final RelativePositions Y
-
Z
public static final RelativePositions Z
-
PITCH
public static final RelativePositions PITCH
-
YAW
public static final RelativePositions YAW
-
-
Method Detail
-
values
public static RelativePositions[] 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 (RelativePositions c : RelativePositions.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RelativePositions 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
-
-