Record Class ModelVariant.ModelState
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.ModelVariant.ModelState
- Record Components:
x-y-z-uvLock-
- Enclosing class:
ModelVariant
@Environment(CLIENT)
public static record ModelVariant.ModelState(AxisRotation x, AxisRotation y, AxisRotation z, boolean uvLock)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/json/ModelVariant$ModelStateintermediary net/minecraft/class_813$class_10803official hqq$anamed xintermediary comp_3755official cnamed yintermediary comp_3756official dnamed zintermediary comp_5252official enamed uvLockintermediary comp_3757official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ModelVariant.ModelState> static final ModelVariant.ModelStateprivate final booleanThe field for theuvLockrecord component.private final AxisRotationThe field for thexrecord component.private final AxisRotationThe field for theyrecord component.private final AxisRotationThe field for thezrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionModelState(AxisRotation x, AxisRotation y, AxisRotation z, boolean uvLock) Creates an instance of aModelStaterecord 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.setRotationX(AxisRotation amount) setRotationY(AxisRotation amount) setRotationZ(AxisRotation amount) setUVLock(boolean uvLock) final StringtoString()Returns a string representation of this record class.booleanuvLock()Returns the value of theuvLockrecord component.x()Returns the value of thexrecord component.y()Returns the value of theyrecord component.z()Returns the value of thezrecord component.
-
Field Details
-
x
The field for thexrecord component. -
y
The field for theyrecord component. -
z
The field for thezrecord component. -
uvLock
private final boolean uvLockThe field for theuvLockrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/render/model/json/ModelVariant$ModelState;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_56934Lnet/minecraft/class_813$class_10803;field_56934:Lcom/mojang/serialization/MapCodec;official aLhqq$a;a:Lcom/mojang/serialization/MapCodec;
-
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/client/render/model/json/ModelVariant$ModelState;DEFAULT:Lnet/minecraft/client/render/model/json/ModelVariant$ModelState;intermediary field_56935Lnet/minecraft/class_813$class_10803;field_56935:Lnet/minecraft/class_813$class_10803;official bLhqq$a;b:Lhqq$a;
-
-
Constructor Details
-
Method Details
-
asModelBakeSettings
- Mappings:
Namespace Name Mixin selector named asModelBakeSettingsLnet/minecraft/client/render/model/json/ModelVariant$ModelState;asModelBakeSettings()Lnet/minecraft/client/render/model/ModelBakeSettings;intermediary method_67943Lnet/minecraft/class_813$class_10803;method_67943()Lnet/minecraft/class_3665;official aLhqq$a;a()Lioc;
-
setRotationX
- Mappings:
Namespace Name Mixin selector named setRotationXLnet/minecraft/client/render/model/json/ModelVariant$ModelState;setRotationX(Lnet/minecraft/util/math/AxisRotation;)Lnet/minecraft/client/render/model/json/ModelVariant$ModelState;intermediary method_67945Lnet/minecraft/class_813$class_10803;method_67945(Lnet/minecraft/class_10821;)Lnet/minecraft/class_813$class_10803;official aLhqq$a;a(Lg;)Lhqq$a;
-
setRotationY
- Mappings:
Namespace Name Mixin selector named setRotationYLnet/minecraft/client/render/model/json/ModelVariant$ModelState;setRotationY(Lnet/minecraft/util/math/AxisRotation;)Lnet/minecraft/client/render/model/json/ModelVariant$ModelState;intermediary method_67947Lnet/minecraft/class_813$class_10803;method_67947(Lnet/minecraft/class_10821;)Lnet/minecraft/class_813$class_10803;official bLhqq$a;b(Lg;)Lhqq$a;
-
setRotationZ
- Mappings:
Namespace Name Mixin selector named setRotationZLnet/minecraft/client/render/model/json/ModelVariant$ModelState;setRotationZ(Lnet/minecraft/util/math/AxisRotation;)Lnet/minecraft/client/render/model/json/ModelVariant$ModelState;intermediary method_76658Lnet/minecraft/class_813$class_10803;method_76658(Lnet/minecraft/class_10821;)Lnet/minecraft/class_813$class_10803;official cLhqq$a;c(Lg;)Lhqq$a;
-
setUVLock
- Mappings:
Namespace Name Mixin selector named setUVLockLnet/minecraft/client/render/model/json/ModelVariant$ModelState;setUVLock(Z)Lnet/minecraft/client/render/model/json/ModelVariant$ModelState;intermediary method_67946Lnet/minecraft/class_813$class_10803;method_67946(Z)Lnet/minecraft/class_813$class_10803;official aLhqq$a;a(Z)Lhqq$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 thexrecord component.- Returns:
- the value of the
xrecord component
-
y
Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
uvLock
public boolean uvLock()Returns the value of theuvLockrecord component.- Returns:
- the value of the
uvLockrecord component
-