Enum Constant and Description |
---|
FRONT_BACK |
LEFT_RIGHT |
NONE |
Modifier and Type | Field and Description |
---|---|
private static java.lang.String[] |
mirrorNames |
private java.lang.String |
name |
Modifier and Type | Method and Description |
---|---|
EnumFacing |
mirror(EnumFacing facing) |
int |
mirrorRotation(int rotationIn,
int rotationCount) |
Rotation |
toRotation(EnumFacing facing) |
static Mirror |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Mirror[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Mirror NONE
public static final Mirror LEFT_RIGHT
public static final Mirror FRONT_BACK
private final java.lang.String name
private static final java.lang.String[] mirrorNames
public static Mirror[] values()
for (Mirror c : Mirror.values()) System.out.println(c);
public static Mirror 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 int mirrorRotation(int rotationIn, int rotationCount)
public Rotation toRotation(EnumFacing facing)
public EnumFacing mirror(EnumFacing facing)