Record Class ItemGuiElementRenderState

java.lang.Object
java.lang.Record
net.minecraft.client.gui.render.state.ItemGuiElementRenderState
Record Components:
name -
pose -
itemStackRenderState -
x -
y -
scissorArea -

@Environment(CLIENT) public record ItemGuiElementRenderState(String name, Matrix3x2f pose, ItemRenderState itemStackRenderState, int x, int y, @Nullable ScreenRect scissorArea) extends Record
Mappings:
Namespace Name
named net/minecraft/client/gui/render/state/ItemGuiElementRenderState
intermediary net/minecraft/class_11245
official fzs
named name
intermediary comp_4090
official a
named pose
intermediary comp_4091
official b
named itemStackRenderState
intermediary comp_4092
official c
named x
intermediary comp_4093
official d
named y
intermediary comp_4094
official e
named scissorArea
intermediary comp_4097
official f
  • Field Details

    • name

      private final String name
      The field for the name record component.
    • pose

      private final Matrix3x2f pose
      The field for the pose record component.
    • itemStackRenderState

      private final ItemRenderState itemStackRenderState
      The field for the itemStackRenderState record component.
    • x

      private final int x
      The field for the x record component.
    • y

      private final int y
      The field for the y record component.
    • scissorArea

      @Nullable private final @Nullable ScreenRect scissorArea
      The field for the scissorArea record component.
  • Constructor Details

  • Method Details

    • 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 object)
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • pose

      public Matrix3x2f pose()
      Returns the value of the pose record component.
      Returns:
      the value of the pose record component
    • itemStackRenderState

      public ItemRenderState itemStackRenderState()
      Returns the value of the itemStackRenderState record component.
      Returns:
      the value of the itemStackRenderState record component
    • x

      public int x()
      Returns the value of the x record component.
      Returns:
      the value of the x record component
    • y

      public int y()
      Returns the value of the y record component.
      Returns:
      the value of the y record component
    • scissorArea

      @Nullable public @Nullable ScreenRect scissorArea()
      Returns the value of the scissorArea record component.
      Returns:
      the value of the scissorArea record component