Record Class UnicodeTextureFont.UnicodeTextureGlyph

java.lang.Object
java.lang.Record
net.minecraft.client.font.UnicodeTextureFont.UnicodeTextureGlyph
Record Components:
unpackSkipPixels -
unpackSkipRows -
width -
height -
image -
All Implemented Interfaces:
Glyph
Enclosing class:
UnicodeTextureFont

@Environment(CLIENT) private static record UnicodeTextureFont.UnicodeTextureGlyph(int unpackSkipPixels, int unpackSkipRows, int width, int height, NativeImage image) extends Record implements Glyph
Mappings:
Namespace Name
official enf$b
intermediary net/minecraft/class_391$class_393
named net/minecraft/client/font/UnicodeTextureFont$UnicodeTextureGlyph
official a
intermediary comp_611
named unpackSkipPixels
official b
intermediary comp_612
named unpackSkipRows
official c
intermediary comp_613
named width
official d
intermediary comp_614
named height
official e
intermediary comp_615
named image
  • Field Details

    • unpackSkipPixels

      private final int unpackSkipPixels
      The field for the unpackSkipPixels record component.
    • unpackSkipRows

      private final int unpackSkipRows
      The field for the unpackSkipRows 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.
    • image

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

    • UnicodeTextureGlyph

      UnicodeTextureGlyph(int int2, int int3, int int4, int int5, NativeImage image)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lenf$b;<init>(IIIILede;)V
      intermediary <init> Lnet/minecraft/class_391$class_393;<init>(IIIILnet/minecraft/class_1011;)V
      named <init> Lnet/minecraft/client/font/UnicodeTextureFont$UnicodeTextureGlyph;<init>(IIIILnet/minecraft/client/texture/NativeImage;)V
  • Method Details

    • getAdvance

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

      public float getShadowOffset()
      Specified by:
      getShadowOffset in interface Glyph
      Mappings:
      Namespace Name Mixin selector
      official b Lecg;b()F
      intermediary method_16800 Lnet/minecraft/class_379;method_16800()F
      named getShadowOffset Lnet/minecraft/client/font/Glyph;getShadowOffset()F
    • getBoldOffset

      public float getBoldOffset()
      Specified by:
      getBoldOffset in interface Glyph
      Mappings:
      Namespace Name Mixin selector
      official a Lecg;a()F
      intermediary method_16799 Lnet/minecraft/class_379;method_16799()F
      named getBoldOffset Lnet/minecraft/client/font/Glyph;getBoldOffset()F
    • bake

      public GlyphRenderer bake(Function<RenderableGlyph,GlyphRenderer> glyphRendererGetter)
      Specified by:
      bake in interface Glyph
      Mappings:
      Namespace Name Mixin selector
      official bake Lecg;bake(Ljava/util/function/Function;)Lemx;
      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.
    • unpackSkipPixels

      public int unpackSkipPixels()
      Returns the value of the unpackSkipPixels record component.
      Returns:
      the value of the unpackSkipPixels record component
    • unpackSkipRows

      public int unpackSkipRows()
      Returns the value of the unpackSkipRows record component.
      Returns:
      the value of the unpackSkipRows 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
    • image

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