Record Class Variant.SimpleModelState
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.model.Variant.SimpleModelState
- Enclosing class:
Variant
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Variant.SimpleModelStatestatic final com.mojang.serialization.MapCodec<Variant.SimpleModelState> private final booleanThe field for theuvLockrecord component.private final QuadrantThe field for thexrecord component.private final QuadrantThe field for theyrecord component.private final QuadrantThe field for thezrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSimpleModelState(Quadrant x, Quadrant y, Quadrant z, boolean uvLock) Creates an instance of aSimpleModelStaterecord 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.final StringtoString()Returns a string representation of this record class.booleanuvLock()Returns the value of theuvLockrecord component.withUvLock(boolean uvLock) 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. -
MAP_CODEC
-
DEFAULT
-
-
Constructor Details
-
SimpleModelState
Creates an instance of aSimpleModelStaterecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord componentz- the value for thezrecord componentuvLock- the value for theuvLockrecord component
-
-
Method Details
-
asModelState
-
withX
-
withY
-
withZ
-
withUvLock
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
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
-