Record Class BitmapFont.Loader

java.lang.Object
java.lang.Record
net.minecraft.client.font.BitmapFont.Loader
Record Components:
file -
height -
ascent -
codepointGrid -
All Implemented Interfaces:
FontLoader
Enclosing class:
BitmapFont

@Environment(CLIENT) public static record BitmapFont.Loader(Identifier file, int height, int ascent, int[][] codepointGrid) extends Record implements FontLoader
Mappings:
Namespace Name
named net/minecraft/client/font/BitmapFont$Loader
intermediary net/minecraft/class_386$class_387
official frv$a
named file
intermediary comp_1519
official c
named height
intermediary comp_1520
official d
named ascent
intermediary comp_1521
official e
named codepointGrid
intermediary comp_1522
official f
  • Field Details Link icon

    • file Link icon

      private final Identifier file
      The field for the file record component.
    • height Link icon

      private final int height
      The field for the height record component.
    • ascent Link icon

      private final int ascent
      The field for the ascent record component.
    • codepointGrid Link icon

      private final int[][] codepointGrid
      The field for the codepointGrid record component.
    • CODE_POINT_GRID_CODEC Link icon

      private static final com.mojang.serialization.Codec<int[][]> CODE_POINT_GRID_CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODE_POINT_GRID_CODEC Lnet/minecraft/client/font/BitmapFont$Loader;CODE_POINT_GRID_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_44800 Lnet/minecraft/class_386$class_387;field_44800:Lcom/mojang/serialization/Codec;
      official g Lfrv$a;g:Lcom/mojang/serialization/Codec;
    • CODEC Link icon

      public static final com.mojang.serialization.MapCodec<BitmapFont.Loader> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/font/BitmapFont$Loader;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_44799 Lnet/minecraft/class_386$class_387;field_44799:Lcom/mojang/serialization/MapCodec;
      official a Lfrv$a;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details Link icon

    • Loader Link icon

      public Loader(Identifier id, int height, int ascent, int[][] int2)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/font/BitmapFont$Loader;<init>(Lnet/minecraft/util/Identifier;II[[I)V
      intermediary <init> Lnet/minecraft/class_386$class_387;<init>(Lnet/minecraft/class_2960;II[[I)V
      official <init> Lfrv$a;<init>(Lakv;II[[I)V
  • Method Details Link icon

    • validateCodePointGrid Link icon

      private static com.mojang.serialization.DataResult<int[][]> validateCodePointGrid(int[][] codePointGrid)
      Mappings:
      Namespace Name Mixin selector
      named validateCodePointGrid Lnet/minecraft/client/font/BitmapFont$Loader;validateCodePointGrid([[I)Lcom/mojang/serialization/DataResult;
      intermediary method_51752 Lnet/minecraft/class_386$class_387;method_51752([[I)Lcom/mojang/serialization/DataResult;
      official a Lfrv$a;a([[I)Lcom/mojang/serialization/DataResult;
    • validate Link icon

      private static com.mojang.serialization.DataResult<BitmapFont.Loader> validate(BitmapFont.Loader fontLoader)
      Mappings:
      Namespace Name Mixin selector
      named validate Lnet/minecraft/client/font/BitmapFont$Loader;validate(Lnet/minecraft/client/font/BitmapFont$Loader;)Lcom/mojang/serialization/DataResult;
      intermediary method_51749 Lnet/minecraft/class_386$class_387;method_51749(Lnet/minecraft/class_386$class_387;)Lcom/mojang/serialization/DataResult;
      official a Lfrv$a;a(Lfrv$a;)Lcom/mojang/serialization/DataResult;
    • getType Link icon

      public FontType getType()
      Specified by:
      getType in interface FontLoader
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/client/font/FontLoader;getType()Lnet/minecraft/client/font/FontType;
      intermediary method_51731 Lnet/minecraft/class_389;method_51731()Lnet/minecraft/class_394;
      official a Lfrx;a()Lfry;
    • build Link icon

      public com.mojang.datafixers.util.Either<FontLoader.Loadable,FontLoader.Reference> build()
      Specified by:
      build in interface FontLoader
      Mappings:
      Namespace Name Mixin selector
      named build Lnet/minecraft/client/font/FontLoader;build()Lcom/mojang/datafixers/util/Either;
      intermediary method_51734 Lnet/minecraft/class_389;method_51734()Lcom/mojang/datafixers/util/Either;
      official b Lfrx;b()Lcom/mojang/datafixers/util/Either;
    • load Link icon

      private Font load(ResourceManager resourceManager) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named load Lnet/minecraft/client/font/BitmapFont$Loader;load(Lnet/minecraft/resource/ResourceManager;)Lnet/minecraft/client/font/Font;
      intermediary method_2039 Lnet/minecraft/class_386$class_387;method_2039(Lnet/minecraft/class_3300;)Lnet/minecraft/class_390;
      official a Lfrv$a;a(Laup;)Lfdu;
    • findCharacterStartX Link icon

      private int findCharacterStartX(NativeImage image, int characterWidth, int characterHeight, int charPosX, int charPosY)
      Mappings:
      Namespace Name Mixin selector
      named findCharacterStartX Lnet/minecraft/client/font/BitmapFont$Loader;findCharacterStartX(Lnet/minecraft/client/texture/NativeImage;IIII)I
      intermediary method_2038 Lnet/minecraft/class_386$class_387;method_2038(Lnet/minecraft/class_1011;IIII)I
      official a Lfrv$a;a(Lfev;IIII)I
    • toString Link icon

      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 Link icon

      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 Link icon

      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.
    • file Link icon

      public Identifier file()
      Returns the value of the file record component.
      Returns:
      the value of the file record component
    • height Link icon

      public int height()
      Returns the value of the height record component.
      Returns:
      the value of the height record component
    • ascent Link icon

      public int ascent()
      Returns the value of the ascent record component.
      Returns:
      the value of the ascent record component
    • codepointGrid Link icon

      public int[][] codepointGrid()
      Returns the value of the codepointGrid record component.
      Returns:
      the value of the codepointGrid record component