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
- Mappings:
Namespace Name official eiyintermediary net/minecraft/class_813named net/minecraft/client/render/model/json/ModelVariant
-
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 rotation, boolean uvLock, int weight) -
Method Summary
Modifier and Type Method Description booleanequals(Object o)IdentifiergetLocation()AffineTransformationgetRotation()intgetWeight()inthashCode()booleanisUvLocked()StringtoString()
-
Field Details
-
location
- Mappings:
Namespace Name Mixin selector official aLeiy;a:Lwb;intermediary field_4326Lnet/minecraft/class_813;field_4326:Lnet/minecraft/class_2960;named locationLnet/minecraft/client/render/model/json/ModelVariant;location:Lnet/minecraft/util/Identifier;
-
rotation
- Mappings:
Namespace Name Mixin selector official bLeiy;b:Lf;intermediary field_4328Lnet/minecraft/class_813;field_4328:Lnet/minecraft/class_4590;named rotationLnet/minecraft/client/render/model/json/ModelVariant;rotation:Lnet/minecraft/client/util/math/AffineTransformation;
-
uvLock
private final boolean uvLock- Mappings:
Namespace Name Mixin selector official cLeiy;c:Zintermediary field_4327Lnet/minecraft/class_813;field_4327:Znamed uvLockLnet/minecraft/client/render/model/json/ModelVariant;uvLock:Z
-
weight
private final int weight- Mappings:
Namespace Name Mixin selector official dLeiy;d:Iintermediary field_4325Lnet/minecraft/class_813;field_4325:Inamed weightLnet/minecraft/client/render/model/json/ModelVariant;weight:I
-
-
Constructor Details
-
ModelVariant
public ModelVariant(Identifier location, AffineTransformation rotation, boolean uvLock, int weight)- Mappings:
Namespace Name Mixin selector official <init>Leiy;<init>(Lwb;Lf;ZI)Vintermediary <init>Lnet/minecraft/class_813;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_4590;ZI)Vnamed <init>Lnet/minecraft/client/render/model/json/ModelVariant;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/client/util/math/AffineTransformation;ZI)V
-
-
Method Details
-
getLocation
- Mappings:
Namespace Name Mixin selector official aLeiy;a()Lwb;intermediary method_3510Lnet/minecraft/class_813;method_3510()Lnet/minecraft/class_2960;named getLocationLnet/minecraft/client/render/model/json/ModelVariant;getLocation()Lnet/minecraft/util/Identifier;
-
getRotation
- Specified by:
getRotationin interfaceModelBakeSettings- Mappings:
Namespace Name Mixin selector official bLetn;b()Lf;intermediary method_3509Lnet/minecraft/class_3665;method_3509()Lnet/minecraft/class_4590;named getRotationLnet/minecraft/client/render/model/ModelBakeSettings;getRotation()Lnet/minecraft/client/util/math/AffineTransformation;
-
isUvLocked
public boolean isUvLocked()- Specified by:
isUvLockedin interfaceModelBakeSettings- Mappings:
Namespace Name Mixin selector official cLetn;c()Zintermediary method_3512Lnet/minecraft/class_3665;method_3512()Znamed isUvLockedLnet/minecraft/client/render/model/ModelBakeSettings;isUvLocked()Z
-
getWeight
public int getWeight()- Mappings:
Namespace Name Mixin selector official dLeiy;d()Iintermediary method_3511Lnet/minecraft/class_813;method_3511()Inamed getWeightLnet/minecraft/client/render/model/json/ModelVariant;getWeight()I
-
toString
- Overrides:
toStringin classObject- Mappings:
Namespace Name Mixin selector official toStringLeiy;toString()Ljava/lang/String;intermediary toStringLnet/minecraft/class_813;toString()Ljava/lang/String;named toStringLnet/minecraft/client/render/model/json/ModelVariant;toString()Ljava/lang/String;
-
equals
-
hashCode
public int hashCode()
-