Record Class BlockModelRotation.WithUvLock
java.lang.Object
java.lang.Record
net.minecraft.client.resources.model.BlockModelRotation.WithUvLock
- All Implemented Interfaces:
ModelState
- Enclosing class:
BlockModelRotation
static record BlockModelRotation.WithUvLock(BlockModelRotation parent)
extends Record
implements ModelState
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockModelRotation
The field for theparent
record component.Fields inherited from interface net.minecraft.client.resources.model.ModelState
NO_TRANSFORM
-
Constructor Summary
ConstructorsConstructorDescriptionWithUvLock
(BlockModelRotation parent) Creates an instance of aWithUvLock
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.org.joml.Matrix4fc
faceTransformation
(Direction p_405486_) final int
hashCode()
Returns a hash code value for this object.org.joml.Matrix4fc
inverseFaceTransformation
(Direction p_404754_) parent()
Returns the value of theparent
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
parent
The field for theparent
record component.
-
-
Constructor Details
-
WithUvLock
WithUvLock(BlockModelRotation parent) Creates an instance of aWithUvLock
record class.- Parameters:
parent
- the value for theparent
record component
-
-
Method Details
-
transformation
- Specified by:
transformation
in interfaceModelState
-
faceTransformation
- Specified by:
faceTransformation
in interfaceModelState
-
inverseFaceTransformation
- Specified by:
inverseFaceTransformation
in 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 theparent
record component.- Returns:
- the value of the
parent
record component
-