@Environment(value=CLIENT) public enum ModelRotation extends Enum<ModelRotation> implements ModelBakeSettings
Enum Constant and Description |
---|
X0_Y0 |
X0_Y180 |
X0_Y270 |
X0_Y90 |
X180_Y0 |
X180_Y180 |
X180_Y270 |
X180_Y90 |
X270_Y0 |
X270_Y180 |
X270_Y270 |
X270_Y90 |
X90_Y0 |
X90_Y180 |
X90_Y270 |
X90_Y90 |
Modifier and Type | Field and Description |
---|---|
private static Map<Integer,ModelRotation> |
BY_INDEX |
private DirectionTransformation |
directionTransformation |
private int |
index |
private AffineTransformation |
rotation |
Modifier and Type | Method and Description |
---|---|
static ModelRotation |
get(int x,
int y) |
private static int |
getIndex(int x,
int y) |
AffineTransformation |
getRotation() |
static ModelRotation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ModelRotation[] |
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
isShaded
public static final ModelRotation X0_Y0
public static final ModelRotation X0_Y90
public static final ModelRotation X0_Y180
public static final ModelRotation X0_Y270
public static final ModelRotation X90_Y0
public static final ModelRotation X90_Y90
public static final ModelRotation X90_Y180
public static final ModelRotation X90_Y270
public static final ModelRotation X180_Y0
public static final ModelRotation X180_Y90
public static final ModelRotation X180_Y180
public static final ModelRotation X180_Y270
public static final ModelRotation X270_Y0
public static final ModelRotation X270_Y90
public static final ModelRotation X270_Y180
public static final ModelRotation X270_Y270
private static final Map<Integer,ModelRotation> BY_INDEX
private final AffineTransformation rotation
private final DirectionTransformation directionTransformation
private final int index
public static ModelRotation[] values()
for (ModelRotation c : ModelRotation.values()) System.out.println(c);
public static ModelRotation 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 nullprivate static int getIndex(int x, int y)
public AffineTransformation getRotation()
getRotation
in interface ModelBakeSettings
public static ModelRotation get(int x, int y)