Record Class ModelVariant
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.ModelVariant
- Record Components:
 location-rotation-uvLock-weight-
- All Implemented Interfaces:
 ModelBakeSettings
@Environment(CLIENT)
public record ModelVariant(Identifier location, AffineTransformation rotation, boolean uvLock, int weight)
extends Record
implements ModelBakeSettings
- Mappings:
 Namespace Name named net/minecraft/client/render/model/json/ModelVariantintermediary net/minecraft/class_813official gnunamed locationintermediary comp_3379official anamed rotationintermediary comp_3380official bnamed uvLockintermediary comp_3381official cnamed weightintermediary comp_3382official d
- 
Nested Class Summary
Nested Classes - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for thelocationrecord component.private final AffineTransformationThe field for therotationrecord component.private final booleanThe field for theuvLockrecord component.private final intThe field for theweightrecord component. - 
Constructor Summary
ConstructorsConstructorDescriptionModelVariant(Identifier location, AffineTransformation rotation, boolean uvLock, int weight) Creates an instance of aModelVariantrecord class. - 
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanlocation()Returns the value of thelocationrecord component.rotation()Returns the value of therotationrecord component.final StringtoString()Returns a string representation of this record class.booleanuvLock()Returns the value of theuvLockrecord component.intweight()Returns the value of theweightrecord component. 
- 
Field Details
 - 
Constructor Details
 - 
Method Details
- 
getRotation
- Specified by:
 getRotationin interfaceModelBakeSettings- Mappings:
 Namespace Name Mixin selector named getRotationLnet/minecraft/client/render/model/ModelBakeSettings;getRotation()Lnet/minecraft/util/math/AffineTransformation;intermediary method_3509Lnet/minecraft/class_3665;method_3509()Lnet/minecraft/class_4590;official aLhhj;a()Lj;
 - 
isUvLocked
public boolean isUvLocked()- Specified by:
 isUvLockedin interfaceModelBakeSettings- Mappings:
 Namespace Name Mixin selector named isUvLockedLnet/minecraft/client/render/model/ModelBakeSettings;isUvLocked()Zintermediary method_3512Lnet/minecraft/class_3665;method_3512()Zofficial bLhhj;b()Z
 - 
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. - 
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. - 
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. - 
location
Returns the value of thelocationrecord component.- Returns:
 - the value of the 
locationrecord component 
 - 
rotation
Returns the value of therotationrecord component.- Returns:
 - the value of the 
rotationrecord component 
 - 
uvLock
public boolean uvLock()Returns the value of theuvLockrecord component.- Returns:
 - the value of the 
uvLockrecord component 
 - 
weight
public int weight()Returns the value of theweightrecord component.- Returns:
 - the value of the 
weightrecord component 
 
 -