public enum BlockMirror extends Enum<BlockMirror>
Enum Constant and Description |
---|
FRONT_BACK |
LEFT_RIGHT |
NONE |
Modifier and Type | Field and Description |
---|---|
private DirectionTransformation |
directionTransformation |
Modifier and Type | Method and Description |
---|---|
Direction |
apply(Direction direction) |
DirectionTransformation |
getDirectionTransformation() |
BlockRotation |
getRotation(Direction direction) |
int |
mirror(int rotation,
int fullTurn) |
static BlockMirror |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BlockMirror[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlockMirror NONE
public static final BlockMirror LEFT_RIGHT
public static final BlockMirror FRONT_BACK
private final DirectionTransformation directionTransformation
public static BlockMirror[] values()
for (BlockMirror c : BlockMirror.values()) System.out.println(c);
public static BlockMirror 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 int mirror(int rotation, int fullTurn)
public BlockRotation getRotation(Direction direction)
public DirectionTransformation getDirectionTransformation()