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