Record Class GlyphRenderState

java.lang.Object
java.lang.Record
net.minecraft.client.gui.render.state.GlyphRenderState
All Implemented Interfaces:
GuiElementRenderState, ScreenArea

public record GlyphRenderState(org.joml.Matrix3x2f pose, BakedGlyph.GlyphInstance instance, @Nullable ScreenRectangle scissorArea) extends Record implements GuiElementRenderState
  • Field Details

    • pose

      private final org.joml.Matrix3x2f pose
      The field for the pose record component.
    • instance

      private final BakedGlyph.GlyphInstance instance
      The field for the instance record component.
    • scissorArea

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

    • GlyphRenderState

      public GlyphRenderState(org.joml.Matrix3x2f pose, BakedGlyph.GlyphInstance instance, @Nullable ScreenRectangle scissorArea)
      Creates an instance of a GlyphRenderState record class.
      Parameters:
      pose - the value for the pose record component
      instance - the value for the instance record component
      scissorArea - the value for the scissorArea record component
  • Method Details

    • buildVertices

      public void buildVertices(VertexConsumer p_415880_, float p_418251_)
      Specified by:
      buildVertices in interface GuiElementRenderState
    • pipeline

      public RenderPipeline pipeline()
      Specified by:
      pipeline in interface GuiElementRenderState
    • textureSetup

      public TextureSetup textureSetup()
      Specified by:
      textureSetup in interface GuiElementRenderState
    • bounds

      @Nullable public ScreenRectangle bounds()
      Specified by:
      bounds in interface ScreenArea
    • 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.
    • pose

      public org.joml.Matrix3x2f pose()
      Returns the value of the pose record component.
      Returns:
      the value of the pose record component
    • instance

      public BakedGlyph.GlyphInstance instance()
      Returns the value of the instance record component.
      Returns:
      the value of the instance record component
    • scissorArea

      @Nullable public ScreenRectangle scissorArea()
      Returns the value of the scissorArea record component.
      Specified by:
      scissorArea in interface GuiElementRenderState
      Returns:
      the value of the scissorArea record component