public enum CubeFace extends java.lang.Enum<CubeFace>
Every face has an axis and
an orientation (positive or negative).
Note that the directions specified here are the same as the Minecraft ones.
| Enum Constant and Description |
|---|
DOWN
The down face.
|
EAST
The east face.
|
NORTH
The north face.
|
SOUTH
The south face.
|
UP
The up face.
|
WEST
The west face.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull Axis3D |
axis()
Returns the axis of this face.
|
int |
factor()
Returns the factor of this face direction.
|
static CubeFace |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CubeFace[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CubeFace WEST
public static final CubeFace EAST
public static final CubeFace DOWN
public static final CubeFace UP
public static final CubeFace NORTH
public static final CubeFace SOUTH
public static CubeFace[] values()
for (CubeFace c : CubeFace.values()) System.out.println(c);
public static CubeFace 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@NotNull public @NotNull Axis3D axis()
The axis is X for west and east, Y for down and up, and Z for north and south
public int factor()
The factor is 1 for positive directions and -1 for negative directions