public enum JigsawOrientation extends Enum<JigsawOrientation> implements StringIdentifiable
Enum Constant and Description |
---|
DOWN_EAST |
DOWN_NORTH |
DOWN_SOUTH |
DOWN_WEST |
EAST_UP |
NORTH_UP |
SOUTH_UP |
UP_EAST |
UP_NORTH |
UP_SOUTH |
UP_WEST |
WEST_UP |
Modifier and Type | Field and Description |
---|---|
private static it.unimi.dsi.fastutil.ints.Int2ObjectMap<JigsawOrientation> |
BY_INDEX |
private Direction |
facing |
private String |
name |
private Direction |
rotation |
Modifier and Type | Method and Description |
---|---|
String |
asString() |
static JigsawOrientation |
byDirections(Direction facing,
Direction rotation) |
Direction |
getFacing() |
private static int |
getIndex(Direction facing,
Direction rotation) |
Direction |
getRotation() |
static JigsawOrientation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JigsawOrientation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
createCodec, createCodec, method_28142
public static final JigsawOrientation DOWN_EAST
public static final JigsawOrientation DOWN_NORTH
public static final JigsawOrientation DOWN_SOUTH
public static final JigsawOrientation DOWN_WEST
public static final JigsawOrientation UP_EAST
public static final JigsawOrientation UP_NORTH
public static final JigsawOrientation UP_SOUTH
public static final JigsawOrientation UP_WEST
public static final JigsawOrientation WEST_UP
public static final JigsawOrientation EAST_UP
public static final JigsawOrientation NORTH_UP
public static final JigsawOrientation SOUTH_UP
private static final it.unimi.dsi.fastutil.ints.Int2ObjectMap<JigsawOrientation> BY_INDEX
private final String name
private final Direction rotation
private final Direction facing
public static JigsawOrientation[] values()
for (JigsawOrientation c : JigsawOrientation.values()) System.out.println(c);
public static JigsawOrientation 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 String asString()
asString
in interface StringIdentifiable
public static JigsawOrientation byDirections(Direction facing, Direction rotation)
public Direction getFacing()
public Direction getRotation()