@Environment(value=CLIENT) public enum CubeFace extends Enum<CubeFace>
Modifier and Type | Class and Description |
---|---|
static class |
CubeFace.Corner |
static class |
CubeFace.DirectionIds |
Modifier and Type | Field and Description |
---|---|
private CubeFace.Corner[] |
corners |
private static CubeFace[] |
DIRECTION_LOOKUP |
Modifier and Type | Method and Description |
---|---|
CubeFace.Corner |
getCorner(int corner) |
static CubeFace |
getFace(Direction direction) |
static CubeFace |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CubeFace[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CubeFace DOWN
public static final CubeFace UP
public static final CubeFace NORTH
public static final CubeFace SOUTH
public static final CubeFace WEST
public static final CubeFace EAST
private static final CubeFace[] DIRECTION_LOOKUP
private final CubeFace.Corner[] corners
public static CubeFace[] values()
for (CubeFace c : CubeFace.values()) System.out.println(c);
public static CubeFace valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic CubeFace.Corner getCorner(int corner)