|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ForgeDirection>
net.minecraftforge.common.ForgeDirection
public enum ForgeDirection
Enum Constant Summary | |
---|---|
DOWN
-Y |
|
EAST
+X |
|
NORTH
-Z |
|
SOUTH
+Z |
|
UNKNOWN
Used only by getOrientation, for invalid inputs |
|
UP
+Y |
|
WEST
-X |
Field Summary | |
---|---|
int |
flag
|
int |
offsetX
|
int |
offsetY
|
int |
offsetZ
|
static int[] |
opposite
|
Method Summary | |
---|---|
ForgeDirection |
getOpposite()
|
static ForgeDirection |
getOrientation(int id)
|
static ForgeDirection |
valueOf(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. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Field Detail |
---|
public final int offsetX
public final int offsetY
public final int offsetZ
public final int flag
public static final int[] opposite
Method Detail |
---|
public static ForgeDirection[] values()
for (ForgeDirection c : ForgeDirection.values()) System.out.println(c);
public static ForgeDirection valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static ForgeDirection getOrientation(int id)
public ForgeDirection getOpposite()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |