Class ModelVariant
java.lang.Object
net.minecraft.client.render.model.json.ModelVariant
- All Implemented Interfaces:
ModelBakeSettings
@Environment(CLIENT) public class ModelVariant extends Object implements ModelBakeSettings
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModelVariant.Deserializer -
Field Summary
Fields Modifier and Type Field Description private Identifierlocationprivate AffineTransformationrotationprivate booleanuvLockprivate intweight -
Constructor Summary
Constructors Constructor Description ModelVariant(Identifier location, AffineTransformation affineTransformation, boolean uvLock, int weight) -
Method Summary
Modifier and Type Method Description booleanequals(Object o)IdentifiergetLocation()AffineTransformationgetRotation()intgetWeight()inthashCode()booleanisUvLocked()StringtoString()
-
Field Details
-
location
-
rotation
-
uvLock
private final boolean uvLock -
weight
private final int weight
-
-
Constructor Details
-
ModelVariant
public ModelVariant(Identifier location, AffineTransformation affineTransformation, boolean uvLock, int weight)
-
-
Method Details
-
getLocation
-
getRotation
- Specified by:
getRotationin interfaceModelBakeSettings
-
isUvLocked
public boolean isUvLocked()- Specified by:
isUvLockedin interfaceModelBakeSettings
-
getWeight
public int getWeight() -
toString
-
equals
-
hashCode
public int hashCode()
-