public static enum Direction.Plane extends java.lang.Enum<Direction.Plane> implements java.lang.Iterable<Direction>, java.util.function.Predicate<Direction>
Enum Constant and Description |
---|
HORIZONTAL |
VERTICAL |
Modifier and Type | Field and Description |
---|---|
private Direction.Axis[] |
axisValues |
private Direction[] |
facingValues |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Direction> |
iterator() |
Direction |
random(java.util.Random rand) |
boolean |
test(Direction p_test_1_) |
static Direction.Plane |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Direction.Plane[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Direction.Plane HORIZONTAL
public static final Direction.Plane VERTICAL
private final Direction[] facingValues
private final Direction.Axis[] axisValues
public static Direction.Plane[] values()
for (Direction.Plane c : Direction.Plane.values()) System.out.println(c);
public static Direction.Plane 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 Direction random(java.util.Random rand)
public boolean test(@Nullable Direction p_test_1_)
test
in interface java.util.function.Predicate<Direction>