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, com.google.common.collect.ImmutableMap<ItemDisplayContext,ItemTransform> moddedTransforms)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ItemTransform
The field for thefirstPersonLeftHand
record component.private final ItemTransform
The field for thefirstPersonRightHand
record component.private final ItemTransform
The field for thefixed
record component.private final ItemTransform
The field for theground
record component.private final ItemTransform
The field for thegui
record component.private final ItemTransform
The field for thehead
record component.private final com.google.common.collect.ImmutableMap
<ItemDisplayContext, ItemTransform> The field for themoddedTransforms
record component.static final ItemTransforms
private final ItemTransform
The field for thethirdPersonLeftHand
record component.private final ItemTransform
The field for thethirdPersonRightHand
record component. -
Constructor Summary
ConstructorsConstructorDescriptionItemTransforms
(ItemTransform thirdPersonLeftHand, ItemTransform thirdPersonRightHand, ItemTransform firstPersonLeftHand, ItemTransform firstPersonRightHand, ItemTransform head, ItemTransform gui, ItemTransform ground, ItemTransform fixed) Deprecated.ItemTransforms
(ItemTransform thirdPersonLeftHand, ItemTransform thirdPersonRightHand, ItemTransform firstPersonLeftHand, ItemTransform firstPersonRightHand, ItemTransform head, ItemTransform gui, ItemTransform ground, ItemTransform fixed, com.google.common.collect.ImmutableMap<ItemDisplayContext, ItemTransform> moddedTransforms) Creates an instance of aItemTransforms
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefirstPersonLeftHand
record component.Returns the value of thefirstPersonRightHand
record component.fixed()
Returns the value of thefixed
record component.getTransform
(ItemDisplayContext p_270619_) ground()
Returns the value of theground
record component.gui()
Returns the value of thegui
record component.final int
hashCode()
Returns a hash code value for this object.head()
Returns the value of thehead
record component.com.google.common.collect.ImmutableMap
<ItemDisplayContext, ItemTransform> Returns the value of themoddedTransforms
record component.Returns the value of thethirdPersonLeftHand
record component.Returns the value of thethirdPersonRightHand
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
thirdPersonLeftHand
The field for thethirdPersonLeftHand
record component. -
thirdPersonRightHand
The field for thethirdPersonRightHand
record component. -
firstPersonLeftHand
The field for thefirstPersonLeftHand
record component. -
firstPersonRightHand
The field for thefirstPersonRightHand
record component. -
head
The field for thehead
record component. -
gui
The field for thegui
record component. -
ground
The field for theground
record component. -
fixed
The field for thefixed
record component. -
moddedTransforms
private final com.google.common.collect.ImmutableMap<ItemDisplayContext,ItemTransform> moddedTransformsThe field for themoddedTransforms
record 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) Deprecated. -
ItemTransforms
public ItemTransforms(ItemTransform thirdPersonLeftHand, ItemTransform thirdPersonRightHand, ItemTransform firstPersonLeftHand, ItemTransform firstPersonRightHand, ItemTransform head, ItemTransform gui, ItemTransform ground, ItemTransform fixed, com.google.common.collect.ImmutableMap<ItemDisplayContext, ItemTransform> moddedTransforms) Creates an instance of aItemTransforms
record class.- Parameters:
thirdPersonLeftHand
- the value for thethirdPersonLeftHand
record componentthirdPersonRightHand
- the value for thethirdPersonRightHand
record componentfirstPersonLeftHand
- the value for thefirstPersonLeftHand
record componentfirstPersonRightHand
- the value for thefirstPersonRightHand
record componenthead
- the value for thehead
record componentgui
- the value for thegui
record componentground
- the value for theground
record componentfixed
- the value for thefixed
record componentmoddedTransforms
- the value for themoddedTransforms
record 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 thethirdPersonLeftHand
record component.- Returns:
- the value of the
thirdPersonLeftHand
record component
-
thirdPersonRightHand
Returns the value of thethirdPersonRightHand
record component.- Returns:
- the value of the
thirdPersonRightHand
record component
-
firstPersonLeftHand
Returns the value of thefirstPersonLeftHand
record component.- Returns:
- the value of the
firstPersonLeftHand
record component
-
firstPersonRightHand
Returns the value of thefirstPersonRightHand
record component.- Returns:
- the value of the
firstPersonRightHand
record component
-
head
Returns the value of thehead
record component.- Returns:
- the value of the
head
record component
-
gui
Returns the value of thegui
record component.- Returns:
- the value of the
gui
record component
-
ground
Returns the value of theground
record component.- Returns:
- the value of the
ground
record component
-
fixed
Returns the value of thefixed
record component.- Returns:
- the value of the
fixed
record component
-
moddedTransforms
Returns the value of themoddedTransforms
record component.- Returns:
- the value of the
moddedTransforms
record component
-