|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Block.Face>
Block.Face
public static enum Block.Face extends java.lang.Enum<Block.Face>
Face - Used for what face of the block was clicked
Enum Constant and Description |
---|
Back
The back (X-wise) of the block (Faces north) |
Bottom
The bottom of the block |
Front
The front (X-wise) of the block (Faces south) |
Left
The left (Z-wise) of the block (Faces west) |
Right
The right (Z-wise) of the block (Faces east) |
Top
The top of the block |
Modifier and Type | Method and Description |
---|---|
static Block.Face |
fromId(int id)
Returns a Face according to the specified ID |
static Block.Face |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Block.Face[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, 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 Block.Face Top
public static final Block.Face Bottom
public static final Block.Face Left
public static final Block.Face Right
public static final Block.Face Front
public static final Block.Face Back
Method Detail |
---|
public static Block.Face[] values()
for (Block.Face c : Block.Face.values()) System.out.println(c);
public static Block.Face 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 Block.Face fromId(int id)
id
- id of face
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |