Record Class UnihexFont.FontImage8x16

java.lang.Object
java.lang.Record
net.minecraft.client.font.UnihexFont.FontImage8x16
Record Components:
contents -
All Implemented Interfaces:
UnihexFont.BitmapGlyph
Enclosing class:
UnihexFont

@Environment(CLIENT) private static record UnihexFont.FontImage8x16(byte[] contents) extends Record implements UnihexFont.BitmapGlyph
Mappings:
Namespace Name
official evs$a
intermediary net/minecraft/class_391$class_7736
named net/minecraft/client/font/UnihexFont$FontImage8x16
official a
intermediary comp_1505
named contents
  • Field Details

    • contents

      private final byte[] contents
      The field for the contents record component.
  • Constructor Details

    • FontImage8x16

      private FontImage8x16(byte[] sizes)
      Mappings:
      Namespace Name Mixin selector
      official <init> Levs$a;<init>([B)V
      intermediary <init> Lnet/minecraft/class_391$class_7736;<init>([B)V
      named <init> Lnet/minecraft/client/font/UnihexFont$FontImage8x16;<init>([B)V
  • Method Details

    • getPixels

      public int getPixels(int y)
      Specified by:
      getPixels in interface UnihexFont.BitmapGlyph
      Mappings:
      Namespace Name Mixin selector
      official a Levs$f;a(I)I
      intermediary method_51668 Lnet/minecraft/class_391$class_8544;method_51668(I)I
      named getPixels Lnet/minecraft/client/font/UnihexFont$BitmapGlyph;getPixels(I)I
    • read

      static UnihexFont.BitmapGlyph read(int lineNum, ByteList data)
      Mappings:
      Namespace Name Mixin selector
      official a Levs$a;a(ILit/unimi/dsi/fastutil/bytes/ByteList;)Levs$f;
      intermediary method_51669 Lnet/minecraft/class_391$class_7736;method_51669(ILit/unimi/dsi/fastutil/bytes/ByteList;)Lnet/minecraft/class_391$class_8544;
      named read Lnet/minecraft/client/font/UnihexFont$FontImage8x16;read(ILit/unimi/dsi/fastutil/bytes/ByteList;)Lnet/minecraft/client/font/UnihexFont$BitmapGlyph;
    • bitWidth

      public int bitWidth()
      Specified by:
      bitWidth in interface UnihexFont.BitmapGlyph
      Mappings:
      Namespace Name Mixin selector
      official a Levs$f;a()I
      intermediary comp_1512 Lnet/minecraft/class_391$class_8544;comp_1512()I
      named bitWidth Lnet/minecraft/client/font/UnihexFont$BitmapGlyph;bitWidth()I
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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 byte[] contents()
      Returns the value of the contents record component.
      Returns:
      the value of the contents record component