Record Class ItemGuiElementRenderState

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

@Environment(CLIENT) public record ItemGuiElementRenderState(String name, Matrix3x2f pose, ItemRenderState itemStackRenderState, int x, int y, @Nullable ScreenRect scissorArea, @Nullable ScreenRect bounds) extends Record implements ElementRenderState
Mappings:
Namespace Name
named net/minecraft/client/gui/render/state/ItemGuiElementRenderState
intermediary net/minecraft/class_11245
official gar
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
named bounds
intermediary comp_4274
official g
  • Field Details

  • Constructor Details

    • ItemGuiElementRenderState

      public ItemGuiElementRenderState(String name, Matrix3x2f pose, ItemRenderState itemStackRenderState, int x, int y, @Nullable @Nullable ScreenRect scissorArea)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/render/state/ItemGuiElementRenderState;<init>(Ljava/lang/String;Lorg/joml/Matrix3x2f;Lnet/minecraft/client/render/item/ItemRenderState;IILnet/minecraft/client/gui/ScreenRect;)V
      intermediary <init> Lnet/minecraft/class_11245;<init>(Ljava/lang/String;Lorg/joml/Matrix3x2f;Lnet/minecraft/class_10444;IILnet/minecraft/class_8030;)V
      official <init> Lgar;<init>(Ljava/lang/String;Lorg/joml/Matrix3x2f;Lhks;IILfzz;)V
    • ItemGuiElementRenderState

      public ItemGuiElementRenderState(String string, Matrix3x2f matrix3x2f, ItemRenderState itemRenderState, int int2, int int3, @Nullable @Nullable ScreenRect screenRect, @Nullable @Nullable ScreenRect screenRect2)
  • Method Details

    • createBounds

      @Nullable public static @Nullable ScreenRect createBounds(int x, int y, Matrix3x2f pose, @Nullable @Nullable ScreenRect scissorArea)
      Mappings:
      Namespace Name Mixin selector
      named createBounds Lnet/minecraft/client/gui/render/state/ItemGuiElementRenderState;createBounds(IILorg/joml/Matrix3x2f;Lnet/minecraft/client/gui/ScreenRect;)Lnet/minecraft/client/gui/ScreenRect;
      intermediary method_71528 Lnet/minecraft/class_11245;method_71528(IILorg/joml/Matrix3x2f;Lnet/minecraft/class_8030;)Lnet/minecraft/class_8030;
      official a Lgar;a(IILorg/joml/Matrix3x2f;Lfzz;)Lfzz;
    • 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
    • bounds

      @Nullable public @Nullable ScreenRect bounds()
      Returns the value of the bounds record component.
      Specified by:
      bounds in interface ElementRenderState
      Returns:
      the value of the bounds record component