Record Class EmptyGlyphRect

java.lang.Object
java.lang.Record
net.minecraft.client.font.EmptyGlyphRect
Record Components:
x -
y -
advance -
ascent -
height -
style -
All Implemented Interfaces:
GlyphRect

@Environment(CLIENT) public record EmptyGlyphRect(float x, float y, float advance, float ascent, float height, Style style) extends Record implements GlyphRect
Mappings:
Namespace Name
named net/minecraft/client/font/EmptyGlyphRect
intermediary net/minecraft/class_12237
official gla
named x
intermediary comp_5154
official c
named y
intermediary comp_5155
official d
named advance
intermediary comp_5156
official e
named ascent
intermediary comp_5157
official f
named height
intermediary comp_5158
official g
named style
intermediary comp_3317
official h
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final float
    The field for the advance record component.
    private final float
    The field for the ascent record component.
    static final float
     
    static final float
     
    private final float
    The field for the height 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
    EmptyGlyphRect(float x, float y, float advance, float ascent, float height, Style style)
    Creates an instance of a EmptyGlyphRect record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Returns the value of the advance record component.
    float
    Returns the value of the ascent record component.
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    float
     
    float
     
    float
     
    float
     
    final int
    Returns a hash code value for this object.
    float
    Returns the value of the height record component.
    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.
    • advance

      private final float advance
      The field for the advance record component.
    • ascent

      private final float ascent
      The field for the ascent record component.
    • height

      private final float height
      The field for the height record component.
    • style

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

      public static final float DEFAULT_HEIGHT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_HEIGHT Lnet/minecraft/client/font/EmptyGlyphRect;DEFAULT_HEIGHT:F
      intermediary field_63886 Lnet/minecraft/class_12237;field_63886:F
      official a Lgla;a:F
    • DEFAULT_ASCENT

      public static final float DEFAULT_ASCENT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_ASCENT Lnet/minecraft/client/font/EmptyGlyphRect;DEFAULT_ASCENT:F
      intermediary field_63887 Lnet/minecraft/class_12237;field_63887:F
      official b Lgla;b:F
  • Constructor Details

    • EmptyGlyphRect

      public EmptyGlyphRect(float x, float y, float advance, float ascent, float height, Style style)
      Creates an instance of a EmptyGlyphRect record class.
      Parameters:
      x - the value for the x record component
      y - the value for the y record component
      advance - the value for the advance record component
      ascent - the value for the ascent record component
      height - the value for the height record component
      style - the value for the style record component
  • Method Details

    • getLeft

      public float getLeft()
      Specified by:
      getLeft in interface GlyphRect
      Mappings:
      Namespace Name Mixin selector
      named getLeft Lnet/minecraft/client/font/GlyphRect;getLeft()F
      intermediary method_75818 Lnet/minecraft/class_12236;method_75818()F
      official b Lgkw;b()F
    • getTop

      public float getTop()
      Specified by:
      getTop in interface GlyphRect
      Mappings:
      Namespace Name Mixin selector
      named getTop Lnet/minecraft/client/font/GlyphRect;getTop()F
      intermediary method_75819 Lnet/minecraft/class_12236;method_75819()F
      official c Lgkw;c()F
    • getRight

      public float getRight()
      Specified by:
      getRight in interface GlyphRect
      Mappings:
      Namespace Name Mixin selector
      named getRight Lnet/minecraft/client/font/GlyphRect;getRight()F
      intermediary method_75820 Lnet/minecraft/class_12236;method_75820()F
      official d Lgkw;d()F
    • getBottom

      public float getBottom()
      Specified by:
      getBottom in interface GlyphRect
      Mappings:
      Namespace Name Mixin selector
      named getBottom Lnet/minecraft/client/font/GlyphRect;getBottom()F
      intermediary method_75821 Lnet/minecraft/class_12236;method_75821()F
      official e Lgkw;e()F
    • 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
    • advance

      public float advance()
      Returns the value of the advance record component.
      Returns:
      the value of the advance record component
    • ascent

      public float ascent()
      Returns the value of the ascent record component.
      Returns:
      the value of the ascent record component
    • height

      public float height()
      Returns the value of the height record component.
      Returns:
      the value of the height record component
    • style

      public Style style()
      Returns the value of the style record component.
      Specified by:
      style in interface GlyphRect
      Returns:
      the value of the style record component