Record Class BakedGlyph.DrawnGlyph

java.lang.Object
java.lang.Record
net.minecraft.client.font.BakedGlyph.DrawnGlyph
Record Components:
x -
y -
color -
glyph -
style -
boldOffset -
Enclosing class:
BakedGlyph

@Environment(CLIENT) public static record BakedGlyph.DrawnGlyph(float x, float y, int color, BakedGlyph glyph, Style style, float boldOffset) extends Record
Mappings:
Namespace Name
named net/minecraft/client/font/BakedGlyph$DrawnGlyph
intermediary net/minecraft/class_382$class_10364
official frb$b
named x
intermediary comp_3313
official a
named y
intermediary comp_3314
official b
named color
intermediary comp_3315
official c
named glyph
intermediary comp_3316
official d
named style
intermediary comp_3317
official e
named boldOffset
intermediary comp_3318
official f
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final float
    The field for the boldOffset record component.
    private final int
    The field for the color record component.
    private final BakedGlyph
    The field for the glyph record component.
    private final Style
    The field for the style record component.
    private final float
    The field for the x record component.
    private final float
    The field for the y record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DrawnGlyph(float float2, float float3, int int2, BakedGlyph bakedGlyph, Style style, float float4)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Returns the value of the boldOffset record component.
    int
    Returns the value of the color record component.
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    Returns the value of the glyph record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the style record component.
    final String
    Returns a string representation of this record class.
    float
    x()
    Returns the value of the x record component.
    float
    y()
    Returns the value of the y record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • x

      private final float x
      The field for the x record component.
    • y

      private final float y
      The field for the y record component.
    • color

      private final int color
      The field for the color record component.
    • glyph

      private final BakedGlyph glyph
      The field for the glyph record component.
    • style

      private final Style style
      The field for the style record component.
    • boldOffset

      private final float boldOffset
      The field for the boldOffset record component.
  • Constructor Details

    • DrawnGlyph

      public DrawnGlyph(float float2, float float3, int int2, BakedGlyph bakedGlyph, Style style, float float4)
  • 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.
    • x

      public float x()
      Returns the value of the x record component.
      Returns:
      the value of the x record component
    • y

      public float y()
      Returns the value of the y record component.
      Returns:
      the value of the y record component
    • color

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

      public BakedGlyph glyph()
      Returns the value of the glyph record component.
      Returns:
      the value of the glyph record component
    • style

      public Style style()
      Returns the value of the style record component.
      Returns:
      the value of the style record component
    • boldOffset

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