Record Class BitmapFont.BitmapFontGlyph

java.lang.Object
java.lang.Record
net.minecraft.client.font.BitmapFont.BitmapFontGlyph
Record Components:
scaleFactor -
image -
x -
y -
width -
height -
advance -
ascent -
All Implemented Interfaces:
Glyph
Enclosing class:
BitmapFont

@Environment(CLIENT) private static record BitmapFont.BitmapFontGlyph(float scaleFactor, NativeImage image, int x, int y, int width, int height, int advance, int ascent) extends Record implements Glyph
Mappings:
Namespace Name
official erh$b
intermediary net/minecraft/class_386$class_388
named net/minecraft/client/font/BitmapFont$BitmapFontGlyph
official a
intermediary comp_603
named scaleFactor
official b
intermediary comp_604
named image
official c
intermediary comp_605
named x
official d
intermediary comp_606
named y
official e
intermediary comp_607
named width
official f
intermediary comp_608
named height
official g
intermediary comp_609
named advance
official h
intermediary comp_610
named ascent
  • Field Details

    • scaleFactor

      private final float scaleFactor
      The field for the scaleFactor record component.
    • image

      private final NativeImage image
      The field for the image record component.
    • x

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

      private final int y
      The field for the y record component.
    • width

      private final int width
      The field for the width record component.
    • height

      private final int height
      The field for the height record component.
    • advance

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

      private final int ascent
      The field for the ascent record component.
  • Constructor Details

    • BitmapFontGlyph

      BitmapFontGlyph(float scaleFactor, NativeImage image, int x, int y, int width, int height, int advance, int ascent)
      Creates an instance of a BitmapFontGlyph record class.
      Parameters:
      scaleFactor - the value for the scaleFactor record component
      image - the value for the image record component
      x - the value for the x record component
      y - the value for the y record component
      width - the value for the width record component
      height - the value for the height record component
      advance - the value for the advance record component
      ascent - the value for the ascent record component
  • Method Details

    • getAdvance

      public float getAdvance()
      Specified by:
      getAdvance in interface Glyph
    • bake

      public GlyphRenderer bake(Function<RenderableGlyph,GlyphRenderer> glyphRendererGetter)
      Specified by:
      bake in interface Glyph
      Mappings:
      Namespace Name Mixin selector
      official bake Lefx;bake(Ljava/util/function/Function;)Lerc;
      intermediary bake Lnet/minecraft/class_379;bake(Ljava/util/function/Function;)Lnet/minecraft/class_382;
      named bake Lnet/minecraft/client/font/Glyph;bake(Ljava/util/function/Function;)Lnet/minecraft/client/font/GlyphRenderer;
    • 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.
    • scaleFactor

      public float scaleFactor()
      Returns the value of the scaleFactor record component.
      Returns:
      the value of the scaleFactor record component
    • image

      public NativeImage image()
      Returns the value of the image record component.
      Returns:
      the value of the image record component
    • x

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

      public int y()
      Returns the value of the y record component.
      Returns:
      the value of the y record component
    • width

      public int width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component
    • height

      public int height()
      Returns the value of the height record component.
      Returns:
      the value of the height record component
    • advance

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

      public int ascent()
      Returns the value of the ascent record component.
      Returns:
      the value of the ascent record component