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 ItemTransform
private final org.joml.Vector3fc
The field for therightRotation
record component.private final org.joml.Vector3fc
The field for therotation
record component.private final org.joml.Vector3fc
The field for thescale
record component.private final org.joml.Vector3fc
The field for thetranslation
record 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 aItemTransform
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(boolean p_111764_, PoseStack.Pose p_405188_) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.org.joml.Vector3fc
Returns the value of therightRotation
record component.org.joml.Vector3fc
rotation()
Returns the value of therotation
record component.org.joml.Vector3fc
scale()
Returns the value of thescale
record component.final String
toString()
Returns a string representation of this record class.org.joml.Vector3fc
Returns the value of thetranslation
record component.
-
Field Details
-
rotation
private final org.joml.Vector3fc rotationThe field for therotation
record component. -
translation
private final org.joml.Vector3fc translationThe field for thetranslation
record component. -
scale
private final org.joml.Vector3fc scaleThe field for thescale
record component. -
rightRotation
private final org.joml.Vector3fc rightRotationThe field for therightRotation
record 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 aItemTransform
record class.- Parameters:
rotation
- the value for therotation
record componenttranslation
- the value for thetranslation
record componentscale
- the value for thescale
record componentrightRotation
- the value for therightRotation
record 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 therotation
record component.- Returns:
- the value of the
rotation
record component
-
translation
public org.joml.Vector3fc translation()Returns the value of thetranslation
record component.- Returns:
- the value of the
translation
record component
-
scale
public org.joml.Vector3fc scale()Returns the value of thescale
record component.- Returns:
- the value of the
scale
record component
-
rightRotation
public org.joml.Vector3fc rightRotation()Returns the value of therightRotation
record component.- Returns:
- the value of the
rightRotation
record component
-