Class BitmapFont.Loader

java.lang.Object
net.minecraft.client.font.BitmapFont.Loader
All Implemented Interfaces:
FontLoader
Enclosing class:
BitmapFont

@Environment(CLIENT) public static class BitmapFont.Loader extends Object implements FontLoader
Mappings:
Namespace Name
official eca$a
intermediary net/minecraft/class_386$class_387
named net/minecraft/client/font/BitmapFont$Loader
  • Field Details

    • filename

      private final Identifier filename
      Mappings:
      Namespace Name Mixin selector
      official a Leca$a;a:Lyt;
      intermediary field_2289 Lnet/minecraft/class_386$class_387;field_2289:Lnet/minecraft/class_2960;
      named filename Lnet/minecraft/client/font/BitmapFont$Loader;filename:Lnet/minecraft/util/Identifier;
    • chars

      private final List<int[]> chars
      Mappings:
      Namespace Name Mixin selector
      official b Leca$a;b:Ljava/util/List;
      intermediary field_2290 Lnet/minecraft/class_386$class_387;field_2290:Ljava/util/List;
      named chars Lnet/minecraft/client/font/BitmapFont$Loader;chars:Ljava/util/List;
    • height

      private final int height
      Mappings:
      Namespace Name Mixin selector
      official c Leca$a;c:I
      intermediary field_2288 Lnet/minecraft/class_386$class_387;field_2288:I
      named height Lnet/minecraft/client/font/BitmapFont$Loader;height:I
    • ascent

      private final int ascent
      Mappings:
      Namespace Name Mixin selector
      official d Leca$a;d:I
      intermediary field_2287 Lnet/minecraft/class_386$class_387;field_2287:I
      named ascent Lnet/minecraft/client/font/BitmapFont$Loader;ascent:I
  • Constructor Details

    • Loader

      public Loader(Identifier id, int height, int ascent, List<int[]> chars)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leca$a;<init>(Lyt;IILjava/util/List;)V
      intermediary <init> Lnet/minecraft/class_386$class_387;<init>(Lnet/minecraft/class_2960;IILjava/util/List;)V
      named <init> Lnet/minecraft/client/font/BitmapFont$Loader;<init>(Lnet/minecraft/util/Identifier;IILjava/util/List;)V
  • Method Details

    • fromJson

      public static BitmapFont.Loader fromJson(JsonObject json)
      Mappings:
      Namespace Name Mixin selector
      official a Leca$a;a(Lcom/google/gson/JsonObject;)Leca$a;
      intermediary method_2037 Lnet/minecraft/class_386$class_387;method_2037(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_386$class_387;
      named fromJson Lnet/minecraft/client/font/BitmapFont$Loader;fromJson(Lcom/google/gson/JsonObject;)Lnet/minecraft/client/font/BitmapFont$Loader;
    • load

      @Nullable public @Nullable Font load(ResourceManager manager)
      Specified by:
      load in interface FontLoader
      Mappings:
      Namespace Name Mixin selector
      official a Lecb;a(Laga;)Ldrr;
      intermediary method_2039 Lnet/minecraft/class_389;method_2039(Lnet/minecraft/class_3300;)Lnet/minecraft/class_390;
      named load Lnet/minecraft/client/font/FontLoader;load(Lnet/minecraft/resource/ResourceManager;)Lnet/minecraft/client/font/Font;
    • findCharacterStartX

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