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
official erm$d
intermediary net/minecraft/class_391$class_393
named net/minecraft/client/font/UnihexFont$UnicodeTextureGlyph
official a
intermediary comp_1508
named contents
official b
intermediary comp_1509
named left
official c
intermediary comp_1510
named right
  • 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
      official c Lerm$d;c()I
      intermediary method_51675 Lnet/minecraft/class_391$class_393;method_51675()I
      named width Lnet/minecraft/client/font/UnihexFont$UnicodeTextureGlyph;width()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
      official b Lefx;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 Lefx;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 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.
    • 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