Record Class UnihexFont.UnicodeTextureGlyph

java.lang.Object
java.lang.Record
net.minecraft.client.font.UnihexFont.UnicodeTextureGlyph
Record Components:
contents -
left -
right -
All Implemented Interfaces:
Glyph
Enclosing class:
UnihexFont

@Environment(CLIENT) private static record UnihexFont.UnicodeTextureGlyph(UnihexFont.BitmapGlyph contents, int left, int right) extends Record implements Glyph
Mappings:
Namespace Name
named net/minecraft/client/font/UnihexFont$UnicodeTextureGlyph
intermediary net/minecraft/class_391$class_393
official fkm$d
named contents
intermediary comp_1508
official a
named left
intermediary comp_1509
official b
named right
intermediary comp_1510
official c
  • Field Details

    • contents

      private final UnihexFont.BitmapGlyph contents
      The field for the contents record component.
    • left

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

  • Method Details

    • width

      public int width()
      Mappings:
      Namespace Name Mixin selector
      named width Lnet/minecraft/client/font/UnihexFont$UnicodeTextureGlyph;width()I
      intermediary method_51675 Lnet/minecraft/class_391$class_393;method_51675()I
      official c Lfkm$d;c()I
    • 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
      named getShadowOffset Lnet/minecraft/client/font/Glyph;getShadowOffset()F
      intermediary method_16800 Lnet/minecraft/class_379;method_16800()F
      official b Leyc;b()F
    • getBoldOffset

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

      public GlyphRenderer bake(Function<RenderableGlyph,GlyphRenderer> 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/GlyphRenderer;
      intermediary bake Lnet/minecraft/class_379;bake(Ljava/util/function/Function;)Lnet/minecraft/class_382;
      official bake Leyc;bake(Ljava/util/function/Function;)Lfkb;
    • 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.
    • contents

      public UnihexFont.BitmapGlyph contents()
      Returns the value of the contents record component.
      Returns:
      the value of the contents record component
    • left

      public int left()
      Returns the value of the left record component.
      Returns:
      the value of the left record component
    • right

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