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
named net/minecraft/client/font/BitmapFont$BitmapFontGlyph
intermediary net/minecraft/class_386$class_388
official frg$b
named scaleFactor
intermediary comp_603
official a
named image
intermediary comp_604
official b
named x
intermediary comp_605
official c
named y
intermediary comp_606
official d
named width
intermediary comp_607
official e
named height
intermediary comp_608
official f
named advance
intermediary comp_609
official g
named ascent
intermediary comp_610
official h
  • 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 BakedGlyph bake(Function<RenderableGlyph,BakedGlyph> glyphRendererGetter)
      Specified by:
      bake in interface Glyph
      Mappings:
      Namespace Name Mixin selector
      named bake Lnet/minecraft/client/font/Glyph;bake(Ljava/util/function/Function;)Lnet/minecraft/client/font/BakedGlyph;
      intermediary bake Lnet/minecraft/class_379;bake(Ljava/util/function/Function;)Lnet/minecraft/class_382;
      official bake Lfep;bake(Ljava/util/function/Function;)Lfrb;
    • 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