public static enum Direction.Axis extends java.lang.Enum<Direction.Axis> implements IStringSerializable, java.util.function.Predicate<Direction>
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name |
private static java.util.Map<java.lang.String,Direction.Axis> |
NAME_LOOKUP |
Modifier and Type | Method and Description |
---|---|
static Direction.Axis |
byName(java.lang.String name) |
abstract double |
getCoordinate(double x,
double y,
double z) |
abstract int |
getCoordinate(int x,
int y,
int z) |
java.lang.String |
getName() |
java.lang.String |
getName2() |
Direction.Plane |
getPlane() |
boolean |
isHorizontal() |
boolean |
isVertical() |
static Direction.Axis |
random(java.util.Random randomIn) |
boolean |
test(Direction p_test_1_) |
java.lang.String |
toString() |
static Direction.Axis |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Direction.Axis[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Direction.Axis X
public static final Direction.Axis Y
public static final Direction.Axis Z
private static final java.util.Map<java.lang.String,Direction.Axis> NAME_LOOKUP
private final java.lang.String name
public static Direction.Axis[] values()
for (Direction.Axis c : Direction.Axis.values()) System.out.println(c);
public static Direction.Axis 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 null@Nullable public static Direction.Axis byName(java.lang.String name)
public java.lang.String getName2()
public boolean isVertical()
public boolean isHorizontal()
public java.lang.String toString()
toString
in class java.lang.Enum<Direction.Axis>
public static Direction.Axis random(java.util.Random randomIn)
public boolean test(@Nullable Direction p_test_1_)
test
in interface java.util.function.Predicate<Direction>
public Direction.Plane getPlane()
public java.lang.String getName()
getName
in interface IStringSerializable
public abstract int getCoordinate(int x, int y, int z)
public abstract double getCoordinate(double x, double y, double z)