Record Class ItemTransforms
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.model.ItemTransforms
public record ItemTransforms(ItemTransform thirdPersonLeftHand, ItemTransform thirdPersonRightHand, ItemTransform firstPersonLeftHand, ItemTransform firstPersonRightHand, ItemTransform head, ItemTransform gui, ItemTransform ground, ItemTransform fixed, ItemTransform fixedFromBottom, ImmutableMap<ItemDisplayContext,ItemTransform> moddedTransforms)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ItemTransformThe field for thefirstPersonLeftHandrecord component.private final ItemTransformThe field for thefirstPersonRightHandrecord component.private final ItemTransformThe field for thefixedrecord component.private final ItemTransformThe field for thefixedFromBottomrecord component.private final ItemTransformThe field for thegroundrecord component.private final ItemTransformThe field for theguirecord component.private final ItemTransformThe field for theheadrecord component.private final ImmutableMap<ItemDisplayContext, ItemTransform> The field for themoddedTransformsrecord component.static final ItemTransformsprivate final ItemTransformThe field for thethirdPersonLeftHandrecord component.private final ItemTransformThe field for thethirdPersonRightHandrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionItemTransforms(ItemTransform thirdPersonLeftHand, ItemTransform thirdPersonRightHand, ItemTransform firstPersonLeftHand, ItemTransform firstPersonRightHand, ItemTransform head, ItemTransform gui, ItemTransform ground, ItemTransform fixed, ItemTransform fixedFromBottom) Deprecated.ItemTransforms(ItemTransform thirdPersonLeftHand, ItemTransform thirdPersonRightHand, ItemTransform firstPersonLeftHand, ItemTransform firstPersonRightHand, ItemTransform head, ItemTransform gui, ItemTransform ground, ItemTransform fixed, ItemTransform fixedFromBottom, ImmutableMap<ItemDisplayContext, ItemTransform> moddedTransforms) Creates an instance of aItemTransformsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirstPersonLeftHandrecord component.Returns the value of thefirstPersonRightHandrecord component.fixed()Returns the value of thefixedrecord component.Returns the value of thefixedFromBottomrecord component.getTransform(ItemDisplayContext pDisplayContext) ground()Returns the value of thegroundrecord component.gui()Returns the value of theguirecord component.final inthashCode()Returns a hash code value for this object.head()Returns the value of theheadrecord component.Returns the value of themoddedTransformsrecord component.Returns the value of thethirdPersonLeftHandrecord component.Returns the value of thethirdPersonRightHandrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
thirdPersonLeftHand
The field for thethirdPersonLeftHandrecord component. -
thirdPersonRightHand
The field for thethirdPersonRightHandrecord component. -
firstPersonLeftHand
The field for thefirstPersonLeftHandrecord component. -
firstPersonRightHand
The field for thefirstPersonRightHandrecord component. -
head
The field for theheadrecord component. -
gui
The field for theguirecord component. -
ground
The field for thegroundrecord component. -
fixed
The field for thefixedrecord component. -
fixedFromBottom
The field for thefixedFromBottomrecord component. -
moddedTransforms
The field for themoddedTransformsrecord component. -
NO_TRANSFORMS
-
-
Constructor Details
-
ItemTransforms
@Deprecated public ItemTransforms(ItemTransform thirdPersonLeftHand, ItemTransform thirdPersonRightHand, ItemTransform firstPersonLeftHand, ItemTransform firstPersonRightHand, ItemTransform head, ItemTransform gui, ItemTransform ground, ItemTransform fixed, ItemTransform fixedFromBottom) Deprecated. -
ItemTransforms
public ItemTransforms(ItemTransform thirdPersonLeftHand, ItemTransform thirdPersonRightHand, ItemTransform firstPersonLeftHand, ItemTransform firstPersonRightHand, ItemTransform head, ItemTransform gui, ItemTransform ground, ItemTransform fixed, ItemTransform fixedFromBottom, ImmutableMap<ItemDisplayContext, ItemTransform> moddedTransforms) Creates an instance of aItemTransformsrecord class.- Parameters:
thirdPersonLeftHand- the value for thethirdPersonLeftHandrecord componentthirdPersonRightHand- the value for thethirdPersonRightHandrecord componentfirstPersonLeftHand- the value for thefirstPersonLeftHandrecord componentfirstPersonRightHand- the value for thefirstPersonRightHandrecord componenthead- the value for theheadrecord componentgui- the value for theguirecord componentground- the value for thegroundrecord componentfixed- the value for thefixedrecord componentfixedFromBottom- the value for thefixedFromBottomrecord componentmoddedTransforms- the value for themoddedTransformsrecord component
-
-
Method Details
-
getTransform
-
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). -
thirdPersonLeftHand
Returns the value of thethirdPersonLeftHandrecord component.- Returns:
- the value of the
thirdPersonLeftHandrecord component
-
thirdPersonRightHand
Returns the value of thethirdPersonRightHandrecord component.- Returns:
- the value of the
thirdPersonRightHandrecord component
-
firstPersonLeftHand
Returns the value of thefirstPersonLeftHandrecord component.- Returns:
- the value of the
firstPersonLeftHandrecord component
-
firstPersonRightHand
Returns the value of thefirstPersonRightHandrecord component.- Returns:
- the value of the
firstPersonRightHandrecord component
-
head
Returns the value of theheadrecord component.- Returns:
- the value of the
headrecord component
-
gui
Returns the value of theguirecord component.- Returns:
- the value of the
guirecord component
-
ground
Returns the value of thegroundrecord component.- Returns:
- the value of the
groundrecord component
-
fixed
Returns the value of thefixedrecord component.- Returns:
- the value of the
fixedrecord component
-
fixedFromBottom
Returns the value of thefixedFromBottomrecord component.- Returns:
- the value of the
fixedFromBottomrecord component
-
moddedTransforms
Returns the value of themoddedTransformsrecord component.- Returns:
- the value of the
moddedTransformsrecord component
-