Record Class TextRenderState

java.lang.Object
java.lang.Record
net.minecraft.client.gui.render.state.TextRenderState
Record Components:
drawShadow -
color -
backgroundColor -
mode -
packedLightCoords -
glyphInstances -
effects -
lineHeight -
whiteGlyph -
endX -

@Environment(CLIENT) public record TextRenderState(boolean drawShadow, int color, int backgroundColor, TextRenderer.TextLayerType mode, int packedLightCoords, List<BakedGlyph.DrawnGlyph> glyphInstances, @Nullable List<BakedGlyph.Rectangle> effects, int lineHeight, BakedGlyph whiteGlyph, float endX) extends Record
Mappings:
Namespace Name
named net/minecraft/client/gui/render/state/TextRenderState
intermediary net/minecraft/class_11248
official gav
named drawShadow
intermediary comp_4109
official a
named color
intermediary comp_4110
official b
named backgroundColor
intermediary comp_4111
official c
named mode
intermediary comp_4112
official d
named packedLightCoords
intermediary comp_4113
official e
named glyphInstances
intermediary comp_4114
official f
named effects
intermediary comp_4115
official g
named lineHeight
intermediary comp_4116
official h
named whiteGlyph
intermediary comp_4117
official i
named endX
intermediary comp_4118
official j
  • Field Details

  • 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.
    • drawShadow

      public boolean drawShadow()
      Returns the value of the drawShadow record component.
      Returns:
      the value of the drawShadow record component
    • color

      public int color()
      Returns the value of the color record component.
      Returns:
      the value of the color record component
    • backgroundColor

      public int backgroundColor()
      Returns the value of the backgroundColor record component.
      Returns:
      the value of the backgroundColor record component
    • mode

      Returns the value of the mode record component.
      Returns:
      the value of the mode record component
    • packedLightCoords

      public int packedLightCoords()
      Returns the value of the packedLightCoords record component.
      Returns:
      the value of the packedLightCoords record component
    • glyphInstances

      public List<BakedGlyph.DrawnGlyph> glyphInstances()
      Returns the value of the glyphInstances record component.
      Returns:
      the value of the glyphInstances record component
    • effects

      Returns the value of the effects record component.
      Returns:
      the value of the effects record component
    • lineHeight

      public int lineHeight()
      Returns the value of the lineHeight record component.
      Returns:
      the value of the lineHeight record component
    • whiteGlyph

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

      public float endX()
      Returns the value of the endX record component.
      Returns:
      the value of the endX record component