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 Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Identifier
The field for thelocation
record component.private final AffineTransformation
The field for therotation
record component.private final boolean
The field for theuvLock
record component.private final int
The field for theweight
record component. -
Constructor Summary
ConstructorsConstructorDescriptionModelVariant
(Identifier location, AffineTransformation rotation, boolean uvLock, int weight) Creates an instance of aModelVariant
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
location()
Returns the value of thelocation
record component.rotation()
Returns the value of therotation
record component.final String
toString()
Returns a string representation of this record class.boolean
uvLock()
Returns the value of theuvLock
record component.int
weight()
Returns the value of theweight
record component.
-
Field Details
-
Constructor Details
-
Method Details
-
getRotation
- Specified by:
getRotation
in interfaceModelBakeSettings
- 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;
-
isUvLocked
public boolean isUvLocked()- Specified by:
isUvLocked
in interfaceModelBakeSettings
- 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
-
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 thelocation
record component.- Returns:
- the value of the
location
record component
-
rotation
Returns the value of therotation
record component.- Returns:
- the value of the
rotation
record component
-
uvLock
public boolean uvLock()Returns the value of theuvLock
record component.- Returns:
- the value of the
uvLock
record component
-
weight
public int weight()Returns the value of theweight
record component.- Returns:
- the value of the
weight
record component
-