Record Class ItemTransform
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.model.ItemTransform
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ItemTransformprivate final Vector3fcThe field for therightRotationrecord component.private final Vector3fcThe field for therotationrecord component.private final Vector3fcThe field for thescalerecord component.private final Vector3fcThe field for thetranslationrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionItemTransform(Vector3fc rotation, Vector3fc translation, Vector3fc scale) ItemTransform(Vector3fc rotation, Vector3fc translation, Vector3fc scale, Vector3fc rightRotation) Creates an instance of aItemTransformrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(boolean applyLeftHandFix, PoseStack.Pose pose) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therightRotationrecord component.rotation()Returns the value of therotationrecord component.scale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetranslationrecord component.
-
Field Details
-
rotation
The field for therotationrecord component. -
translation
The field for thetranslationrecord component. -
scale
The field for thescalerecord component. -
rightRotation
The field for therightRotationrecord component. -
NO_TRANSFORM
-
-
Constructor Details
-
ItemTransform
-
ItemTransform
public ItemTransform(Vector3fc rotation, Vector3fc translation, Vector3fc scale, Vector3fc rightRotation) Creates an instance of aItemTransformrecord class.- Parameters:
rotation- the value for therotationrecord componenttranslation- the value for thetranslationrecord componentscale- the value for thescalerecord componentrightRotation- the value for therightRotationrecord component
-
-
Method Details
-
apply
-
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). -
rotation
Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
translation
Returns the value of thetranslationrecord component.- Returns:
- the value of the
translationrecord component
-
scale
Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
rightRotation
Returns the value of therightRotationrecord component.- Returns:
- the value of the
rightRotationrecord component
-