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/ModelVariant- intermediary - net/minecraft/class_813- official - gnu- named - location- intermediary - comp_3379- official - a- named - rotation- intermediary - comp_3380- official - b- named - uvLock- intermediary - comp_3381- official - c- named - weight- intermediary - comp_3382- official - d
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionModelVariant(Identifier location, AffineTransformation rotation, boolean uvLock, int weight) Creates an instance of aModelVariantrecord class.
- 
Method SummaryModifier 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 interface- ModelBakeSettings
- Mappings:
- Namespace - Name - Mixin selector - named - getRotation- Lnet/minecraft/client/render/model/ModelBakeSettings;getRotation()Lnet/minecraft/util/math/AffineTransformation;- intermediary - method_3509- Lnet/minecraft/class_3665;method_3509()Lnet/minecraft/class_4590;- official - a- Lhhj;a()Lj;
 
- 
isUvLockedpublic boolean isUvLocked()- Specified by:
- isUvLockedin interface- ModelBakeSettings
- Mappings:
- Namespace - Name - Mixin selector - named - isUvLocked- Lnet/minecraft/client/render/model/ModelBakeSettings;isUvLocked()Z- intermediary - method_3512- Lnet/minecraft/class_3665;method_3512()Z- official - b- Lhhj;b()Z
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
locationReturns the value of thelocationrecord component.- Returns:
- the value of the locationrecord component
 
- 
rotationReturns the value of therotationrecord component.- Returns:
- the value of the rotationrecord component
 
- 
uvLockpublic boolean uvLock()Returns the value of theuvLockrecord component.- Returns:
- the value of the uvLockrecord component
 
- 
weightpublic int weight()Returns the value of theweightrecord component.- Returns:
- the value of the weightrecord component
 
 
-