public enum AxisCycleDirection extends Enum<AxisCycleDirection>
Modifier and Type | Field and Description |
---|---|
static Direction.Axis[] |
AXES |
static AxisCycleDirection[] |
VALUES |
Modifier and Type | Method and Description |
---|---|
static AxisCycleDirection |
between(Direction.Axis from,
Direction.Axis to) |
abstract int |
choose(int x,
int y,
int z,
Direction.Axis axis) |
abstract Direction.Axis |
cycle(Direction.Axis axis) |
abstract AxisCycleDirection |
opposite() |
static AxisCycleDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AxisCycleDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AxisCycleDirection NONE
public static final AxisCycleDirection FORWARD
public static final AxisCycleDirection BACKWARD
public static final Direction.Axis[] AXES
public static final AxisCycleDirection[] VALUES
public static AxisCycleDirection[] values()
for (AxisCycleDirection c : AxisCycleDirection.values()) System.out.println(c);
public static AxisCycleDirection valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract int choose(int x, int y, int z, Direction.Axis axis)
public abstract Direction.Axis cycle(Direction.Axis axis)
public abstract AxisCycleDirection opposite()
public static AxisCycleDirection between(Direction.Axis from, Direction.Axis to)