public enum AxisRotation extends java.lang.Enum<AxisRotation>
Modifier and Type | Field and Description |
---|---|
static Direction.Axis[] |
AXES |
static AxisRotation[] |
AXIS_ROTATIONS |
Modifier and Type | Method and Description |
---|---|
static AxisRotation |
from(Direction.Axis axis1,
Direction.Axis axis2) |
abstract int |
getCoordinate(int x,
int y,
int z,
Direction.Axis axis) |
abstract AxisRotation |
reverse() |
abstract Direction.Axis |
rotate(Direction.Axis axisIn) |
static AxisRotation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AxisRotation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AxisRotation NONE
public static final AxisRotation FORWARD
public static final AxisRotation BACKWARD
public static final Direction.Axis[] AXES
public static final AxisRotation[] AXIS_ROTATIONS
public static AxisRotation[] values()
for (AxisRotation c : AxisRotation.values()) System.out.println(c);
public static AxisRotation valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract int getCoordinate(int x, int y, int z, Direction.Axis axis)
public abstract Direction.Axis rotate(Direction.Axis axisIn)
public abstract AxisRotation reverse()
public static AxisRotation from(Direction.Axis axis1, Direction.Axis axis2)