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 net.minecraft.client.resources.model.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.org.joml.Matrix4fcfaceTransformation(Direction p_405486_) final inthashCode()Returns a hash code value for this object.org.joml.Matrix4fcinverseFaceTransformation(Direction p_404754_) parent()Returns the value of theparentrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.client.extensions.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
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. 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
-