Record Class GlyphEffectRenderState

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

public record GlyphEffectRenderState(org.joml.Matrix3x2f pose, BakedGlyph whiteGlyph, BakedGlyph.Effect effect, @Nullable ScreenRectangle scissorArea) extends Record implements GuiElementRenderState
  • Field Details

    • pose

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

      private final BakedGlyph whiteGlyph
      The field for the whiteGlyph record component.
    • effect

      private final BakedGlyph.Effect effect
      The field for the effect record component.
    • scissorArea

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

    • GlyphEffectRenderState

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

    • buildVertices

      public void buildVertices(VertexConsumer p_425740_, float p_425813_)
      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
    • whiteGlyph

      public BakedGlyph whiteGlyph()
      Returns the value of the whiteGlyph record component.
      Returns:
      the value of the whiteGlyph record component
    • effect

      public BakedGlyph.Effect effect()
      Returns the value of the effect record component.
      Returns:
      the value of the effect 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