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
  • Field Details

    • thirdPersonLeftHand

      private final ItemTransform thirdPersonLeftHand
      The field for the thirdPersonLeftHand record component.
    • thirdPersonRightHand

      private final ItemTransform thirdPersonRightHand
      The field for the thirdPersonRightHand record component.
    • firstPersonLeftHand

      private final ItemTransform firstPersonLeftHand
      The field for the firstPersonLeftHand record component.
    • firstPersonRightHand

      private final ItemTransform firstPersonRightHand
      The field for the firstPersonRightHand record component.
    • gui

      private final ItemTransform gui
      The field for the gui record component.
    • ground

      private final ItemTransform ground
      The field for the ground record component.
    • fixed

      private final ItemTransform fixed
      The field for the fixed record component.
    • moddedTransforms

      private final com.google.common.collect.ImmutableMap<ItemDisplayContext,ItemTransform> moddedTransforms
      The field for the moddedTransforms record component.
    • NO_TRANSFORMS

      public static final ItemTransforms 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 a ItemTransforms record class.
      Parameters:
      thirdPersonLeftHand - the value for the thirdPersonLeftHand record component
      thirdPersonRightHand - the value for the thirdPersonRightHand record component
      firstPersonLeftHand - the value for the firstPersonLeftHand record component
      firstPersonRightHand - the value for the firstPersonRightHand record component
      head - the value for the head record component
      gui - the value for the gui record component
      ground - the value for the ground record component
      fixed - the value for the fixed record component
      moddedTransforms - the value for the moddedTransforms record component
  • Method Details

    • getTransform

      public ItemTransform getTransform(ItemDisplayContext p_270619_)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • thirdPersonLeftHand

      public ItemTransform thirdPersonLeftHand()
      Returns the value of the thirdPersonLeftHand record component.
      Returns:
      the value of the thirdPersonLeftHand record component
    • thirdPersonRightHand

      public ItemTransform thirdPersonRightHand()
      Returns the value of the thirdPersonRightHand record component.
      Returns:
      the value of the thirdPersonRightHand record component
    • firstPersonLeftHand

      public ItemTransform firstPersonLeftHand()
      Returns the value of the firstPersonLeftHand record component.
      Returns:
      the value of the firstPersonLeftHand record component
    • firstPersonRightHand

      public ItemTransform firstPersonRightHand()
      Returns the value of the firstPersonRightHand record component.
      Returns:
      the value of the firstPersonRightHand record component
    • head

      public ItemTransform head()
      Returns the value of the head record component.
      Returns:
      the value of the head record component
    • gui

      public ItemTransform gui()
      Returns the value of the gui record component.
      Returns:
      the value of the gui record component
    • ground

      public ItemTransform ground()
      Returns the value of the ground record component.
      Returns:
      the value of the ground record component
    • fixed

      public ItemTransform fixed()
      Returns the value of the fixed record component.
      Returns:
      the value of the fixed record component
    • moddedTransforms

      public com.google.common.collect.ImmutableMap<ItemDisplayContext,ItemTransform> moddedTransforms()
      Returns the value of the moddedTransforms record component.
      Returns:
      the value of the moddedTransforms record component