Nested Class Summary
Nested Classes
static enum
static enum
static enum
Enum Constant Summary
Enum Constants
Field Summary
Fields
All facings in D-U-N-S-W-E order
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
int
Returns a offset that addresses the block in front of this facing.
int
int
Returns a offset that addresses the block in front of this facing.
Same as getName, but does not override the method from Enum.
Get the opposite Facing (e.g.
Choose a random Facing using the given Random
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Field Details
VALUES
All facings in D-U-N-S-W-E order
Method Details
values
Returns an array containing the constants of this enum class, in
the order they are declared.
Returns:
an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (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:
IllegalArgumentException - if this enum class has no constant with the specified name
NullPointerException - if the argument is null
random
Choose a random Facing using the given Random
getOpposite
Get the opposite Facing (e.g. DOWN => UP)
getFrontOffsetX
public int getFrontOffsetX ()
Returns a offset that addresses the block in front of this facing.
getFrontOffsetY
public int getFrontOffsetY ()
getFrontOffsetZ
public int getFrontOffsetZ ()
Returns a offset that addresses the block in front of this facing.
getName2
Same as getName, but does not override the method from Enum.