Record Class GlyphRenderState

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

public record GlyphRenderState(Matrix3x2f pose, TextRenderable renderable, @Nullable ScreenRectangle scissorArea) extends Record implements GuiElementRenderState
  • Field Details

    • pose

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

      private final TextRenderable renderable
      The field for the renderable record component.
    • scissorArea

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

    • GlyphRenderState

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

    • buildVertices

      public void buildVertices(VertexConsumer p_415880_)
      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 Matrix3x2f pose()
      Returns the value of the pose record component.
      Returns:
      the value of the pose record component
    • renderable

      public TextRenderable renderable()
      Returns the value of the renderable record component.
      Returns:
      the value of the renderable 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