Enum Block.Face

java.lang.Object
  extended by java.lang.Enum<Block.Face>
      extended by Block.Face
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Block.Face>
Enclosing class:
Block

public static enum Block.Face
extends java.lang.Enum<Block.Face>

Face - Used for what face of the block was clicked


Enum Constant Summary
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
 
Method Summary
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

Top

public static final Block.Face Top
The top of the block


Bottom

public static final Block.Face Bottom
The bottom of the block


Left

public static final Block.Face Left
The left (Z-wise) of the block (Faces west)


Right

public static final Block.Face Right
The right (Z-wise) of the block (Faces east)


Front

public static final Block.Face Front
The front (X-wise) of the block (Faces south)


Back

public static final Block.Face Back
The back (X-wise) of the block (Faces north)

Method Detail

values

public static Block.Face[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Block.Face c : Block.Face.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Block.Face valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

fromId

public static Block.Face fromId(int id)
Returns a Face according to the specified ID

Parameters:
id - id of face
Returns:
face