public enum ModelRotation extends java.lang.Enum<ModelRotation> implements ISprite, 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 | Method and Description |
---|---|
java.util.Optional<TRSRTransformation> |
apply(java.util.Optional<? extends IModelPart> part) |
Quaternion |
func_217650_a() |
javax.vecmath.Matrix4f |
getMatrixVec() |
static ModelRotation |
getModelRotation(int x,
int y) |
ModelRotation |
getRotation() |
int |
rotate(Direction facing,
int vertexIndex) |
Direction |
rotateFace(Direction facing) |
Direction |
rotateTransform(Direction facing) |
int |
rotateVertex(Direction 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
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 nullpublic ModelRotation getRotation()
getRotation
in interface ISprite
public Quaternion func_217650_a()
public int rotateVertex(Direction 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
part
- Part of the model we are wanting to transform. An empty optional means
we want a transform for the entire model.public javax.vecmath.Matrix4f getMatrixVec()
getMatrixVec
in interface ITransformation
public Direction rotateTransform(Direction facing)
rotateTransform
in interface ITransformation
public int rotate(Direction facing, int vertexIndex)
rotate
in interface ITransformation