public enum ModelRotation extends java.lang.Enum<ModelRotation> implements IModelState, ITransformation
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 int |
combinedXY |
private static java.util.Map<java.lang.Integer,ModelRotation> |
MAP_ROTATIONS |
private org.lwjgl.util.vector.Matrix4f |
matrix4d |
private int |
quartersX |
private int |
quartersY |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<TRSRTransformation> |
apply(java.util.Optional<? extends IModelPart> part) |
private static int |
combineXY(int p_177521_0_,
int p_177521_1_) |
javax.vecmath.Matrix4f |
getMatrix() |
org.lwjgl.util.vector.Matrix4f |
getMatrix4d() |
static ModelRotation |
getModelRotation(int x,
int y) |
EnumFacing |
rotate(EnumFacing facing) |
int |
rotate(EnumFacing facing,
int vertexIndex) |
EnumFacing |
rotateFace(EnumFacing facing) |
int |
rotateVertex(EnumFacing facing,
int vertexIndex) |
static ModelRotation |
valueOf(java.lang.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.
|
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 java.util.Map<java.lang.Integer,ModelRotation> MAP_ROTATIONS
private final int combinedXY
private final org.lwjgl.util.vector.Matrix4f matrix4d
private final int quartersX
private final int quartersY
public static ModelRotation[] values()
for (ModelRotation c : ModelRotation.values()) System.out.println(c);
public static ModelRotation 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 nullprivate static int combineXY(int p_177521_0_, int p_177521_1_)
public org.lwjgl.util.vector.Matrix4f getMatrix4d()
public EnumFacing rotateFace(EnumFacing facing)
public int rotateVertex(EnumFacing facing, int vertexIndex)
public static ModelRotation getModelRotation(int x, int y)
public java.util.Optional<TRSRTransformation> apply(java.util.Optional<? extends IModelPart> part)
apply
in interface IModelState
public javax.vecmath.Matrix4f getMatrix()
getMatrix
in interface ITransformation
public EnumFacing rotate(EnumFacing facing)
rotate
in interface ITransformation
public int rotate(EnumFacing facing, int vertexIndex)
rotate
in interface ITransformation