Enum ModelRotation
- All Implemented Interfaces:
Serializable
,Comparable<ModelRotation>
,java.lang.constant.Constable
,ModelBakeSettings
@Environment(CLIENT) public enum ModelRotation extends Enum<ModelRotation> implements ModelBakeSettings
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description private static Map<Integer,ModelRotation>
BY_INDEX
private DirectionTransformation
directionTransformation
private int
index
private AffineTransformation
rotation
-
Constructor Summary
Constructors Modifier Constructor Description private
ModelRotation(int x, int y)
-
Method Summary
Modifier and Type Method 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.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface net.minecraft.client.render.model.ModelBakeSettings
isUvLocked
-
Enum Constant Details
-
X0_Y0
-
X0_Y90
-
X0_Y180
-
X0_Y270
-
X90_Y0
-
X90_Y90
-
X90_Y180
-
X90_Y270
-
X180_Y0
-
X180_Y90
-
X180_Y180
-
X180_Y270
-
X270_Y0
-
X270_Y90
-
X270_Y180
-
X270_Y270
-
-
Field Details
-
BY_INDEX
-
rotation
-
directionTransformation
-
index
private final int index
-
-
Constructor Details
-
ModelRotation
private ModelRotation(int x, int y)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getIndex
private static int getIndex(int x, int y) -
getRotation
- Specified by:
getRotation
in interfaceModelBakeSettings
-
get
-