Enum ModelRotation
- java.lang.Object
-
- java.lang.Enum<ModelRotation>
-
- net.minecraft.client.renderer.model.ModelRotation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ModelRotation>
,IModelTransform
,IForgeModelTransform
public enum ModelRotation extends java.lang.Enum<ModelRotation> implements IModelTransform
-
-
Field Summary
Fields Modifier and Type Field Description private Orientation
actualRotation
private static java.util.Map<java.lang.Integer,ModelRotation>
BY_INDEX
private int
index
private TransformationMatrix
transformation
-
Constructor Summary
Constructors Modifier Constructor Description private
ModelRotation(int p_i46087_3_, int p_i46087_4_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModelRotation
by(int p_177524_0_, int p_177524_1_)
private static int
getIndex(int p_177521_0_, int p_177521_1_)
TransformationMatrix
getRotation()
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.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface net.minecraftforge.client.extensions.IForgeModelTransform
getPartTransformation
-
Methods inherited from interface net.minecraft.client.renderer.model.IModelTransform
isUvLocked
-
-
-
-
Enum Constant Detail
-
X0_Y0
public static final ModelRotation X0_Y0
-
X0_Y90
public static final ModelRotation X0_Y90
-
X0_Y180
public static final ModelRotation X0_Y180
-
X0_Y270
public static final ModelRotation X0_Y270
-
X90_Y0
public static final ModelRotation X90_Y0
-
X90_Y90
public static final ModelRotation X90_Y90
-
X90_Y180
public static final ModelRotation X90_Y180
-
X90_Y270
public static final ModelRotation X90_Y270
-
X180_Y0
public static final ModelRotation X180_Y0
-
X180_Y90
public static final ModelRotation X180_Y90
-
X180_Y180
public static final ModelRotation X180_Y180
-
X180_Y270
public static final ModelRotation X180_Y270
-
X270_Y0
public static final ModelRotation X270_Y0
-
X270_Y90
public static final ModelRotation X270_Y90
-
X270_Y180
public static final ModelRotation X270_Y180
-
X270_Y270
public static final ModelRotation X270_Y270
-
-
Field Detail
-
BY_INDEX
private static final java.util.Map<java.lang.Integer,ModelRotation> BY_INDEX
-
transformation
private final TransformationMatrix transformation
-
actualRotation
private final Orientation actualRotation
-
index
private final int index
-
-
Method Detail
-
values
public static ModelRotation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ModelRotation c : ModelRotation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ModelRotation valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getIndex
private static int getIndex(int p_177521_0_, int p_177521_1_)
-
getRotation
public TransformationMatrix getRotation()
- Specified by:
getRotation
in interfaceIModelTransform
-
by
public static ModelRotation by(int p_177524_0_, int p_177524_1_)
-
-