Record Class ModelVariant.ModelState
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.ModelVariant.ModelState
- Record Components:
x
-y
-uvLock
-
- Enclosing class:
ModelVariant
@Environment(CLIENT)
public static record ModelVariant.ModelState(AxisRotation x, AxisRotation y, boolean uvLock)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/ModelVariant$ModelState
intermediary net/minecraft/class_813$class_10803
official gtj$a
named x
intermediary comp_3755
official c
named y
intermediary comp_3756
official d
named uvLock
intermediary comp_3757
official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<ModelVariant.ModelState> static final ModelVariant.ModelState
private final boolean
The field for theuvLock
record component.private final AxisRotation
The field for thex
record component.private final AxisRotation
The field for they
record component. -
Constructor Summary
ConstructorsConstructorDescriptionModelState
(AxisRotation axisRotation, AxisRotation axisRotation2, boolean bool) -
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.setRotationX
(AxisRotation amount) setRotationY
(AxisRotation amount) setUVLock
(boolean uvLock) final String
toString()
Returns a string representation of this record class.boolean
uvLock()
Returns the value of theuvLock
record component.x()
Returns the value of thex
record component.y()
Returns the value of they
record component.
-
Field Details
-
x
The field for thex
record component. -
y
The field for they
record component. -
uvLock
private final boolean uvLockThe field for theuvLock
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/client/render/model/json/ModelVariant$ModelState;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_56934
Lnet/minecraft/class_813$class_10803;field_56934:Lcom/mojang/serialization/MapCodec;
official a
Lgtj$a;a:Lcom/mojang/serialization/MapCodec;
-
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULT
Lnet/minecraft/client/render/model/json/ModelVariant$ModelState;DEFAULT:Lnet/minecraft/client/render/model/json/ModelVariant$ModelState;
intermediary field_56935
Lnet/minecraft/class_813$class_10803;field_56935:Lnet/minecraft/class_813$class_10803;
official b
Lgtj$a;b:Lgtj$a;
-
-
Constructor Details
-
Method Details
-
asModelBakeSettings
- Mappings:
Namespace Name Mixin selector named asModelBakeSettings
Lnet/minecraft/client/render/model/json/ModelVariant$ModelState;asModelBakeSettings()Lnet/minecraft/client/render/model/ModelBakeSettings;
intermediary method_67943
Lnet/minecraft/class_813$class_10803;method_67943()Lnet/minecraft/class_3665;
official a
Lgtj$a;a()Lhnf;
-
setRotationX
- Mappings:
Namespace Name Mixin selector named setRotationX
Lnet/minecraft/client/render/model/json/ModelVariant$ModelState;setRotationX(Lnet/minecraft/util/math/AxisRotation;)Lnet/minecraft/client/render/model/json/ModelVariant$ModelState;
intermediary method_67945
Lnet/minecraft/class_813$class_10803;method_67945(Lnet/minecraft/class_10821;)Lnet/minecraft/class_813$class_10803;
official a
Lgtj$a;a(Li;)Lgtj$a;
-
setRotationY
- Mappings:
Namespace Name Mixin selector named setRotationY
Lnet/minecraft/client/render/model/json/ModelVariant$ModelState;setRotationY(Lnet/minecraft/util/math/AxisRotation;)Lnet/minecraft/client/render/model/json/ModelVariant$ModelState;
intermediary method_67947
Lnet/minecraft/class_813$class_10803;method_67947(Lnet/minecraft/class_10821;)Lnet/minecraft/class_813$class_10803;
official b
Lgtj$a;b(Li;)Lgtj$a;
-
setUVLock
- Mappings:
Namespace Name Mixin selector named setUVLock
Lnet/minecraft/client/render/model/json/ModelVariant$ModelState;setUVLock(Z)Lnet/minecraft/client/render/model/json/ModelVariant$ModelState;
intermediary method_67946
Lnet/minecraft/class_813$class_10803;method_67946(Z)Lnet/minecraft/class_813$class_10803;
official a
Lgtj$a;a(Z)Lgtj$a;
-
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 '=='. -
x
Returns the value of thex
record component.- Returns:
- the value of the
x
record component
-
y
Returns the value of they
record component.- Returns:
- the value of the
y
record component
-
uvLock
public boolean uvLock()Returns the value of theuvLock
record component.- Returns:
- the value of the
uvLock
record component
-