Record Class BlockModelRotation.WithUvLock
java.lang.Object
java.lang.Record
net.minecraft.client.resources.model.BlockModelRotation.WithUvLock
- All Implemented Interfaces:
ModelState, ModelStateExtension
- Enclosing class:
BlockModelRotation
public static record BlockModelRotation.WithUvLock(BlockModelRotation parent)
extends Record
implements ModelState
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockModelRotationThe field for theparentrecord component.Fields inherited from interface ModelState
NO_TRANSFORM -
Constructor Summary
ConstructorsConstructorDescriptionWithUvLock(BlockModelRotation parent) Creates an instance of aWithUvLockrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.faceTransformation(Direction face) final inthashCode()Returns a hash code value for this object.parent()Returns the value of theparentrecord component.toString()Returns a string representation of this record class.Methods inherited from interface ModelStateExtension
mayApplyArbitraryRotation
-
Field Details
-
parent
The field for theparentrecord component.
-
-
Constructor Details
-
WithUvLock
Creates an instance of aWithUvLockrecord class.- Parameters:
parent- the value for theparentrecord component
-
-
Method Details
-
transformation
- Specified by:
transformationin interfaceModelState
-
faceTransformation
- Specified by:
faceTransformationin interfaceModelState
-
inverseFaceTransformation
- Specified by:
inverseFaceTransformationin interfaceModelState
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
parent
Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-