public enum ForgeDirection extends java.lang.Enum<ForgeDirection>
Enum Constant and Description |
---|
DOWN
-Y
|
EAST
+X
|
NORTH
-Z
|
SOUTH
+Z
|
UNKNOWN
Used only by getOrientation, for invalid inputs
|
UP
+Y
|
WEST
-X
|
Modifier and Type | Field and Description |
---|---|
int |
flag |
int |
offsetX |
int |
offsetY |
int |
offsetZ |
static int[] |
OPPOSITES |
static int[][] |
ROTATION_MATRIX |
static ForgeDirection[] |
VALID_DIRECTIONS |
Modifier and Type | Method and Description |
---|---|
ForgeDirection |
getOpposite() |
static ForgeDirection |
getOrientation(int id) |
ForgeDirection |
getRotation(ForgeDirection axis) |
static ForgeDirection |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ForgeDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ForgeDirection DOWN
public static final ForgeDirection UP
public static final ForgeDirection NORTH
public static final ForgeDirection SOUTH
public static final ForgeDirection WEST
public static final ForgeDirection EAST
public static final ForgeDirection UNKNOWN
public final int offsetX
public final int offsetY
public final int offsetZ
public final int flag
public static final ForgeDirection[] VALID_DIRECTIONS
public static final int[] OPPOSITES
public static final int[][] ROTATION_MATRIX
public static ForgeDirection[] values()
for (ForgeDirection c : ForgeDirection.values()) System.out.println(c);
public static ForgeDirection 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 static ForgeDirection getOrientation(int id)
public ForgeDirection getOpposite()
public ForgeDirection getRotation(ForgeDirection axis)