Class FontManager

java.lang.Object
net.minecraft.client.font.FontManager
All Implemented Interfaces:
AutoCloseable, ResourceReloader

@Environment(CLIENT) public class FontManager extends Object implements ResourceReloader, AutoCloseable
Mappings:
Namespace Name
official eqv
intermediary net/minecraft/class_378
named net/minecraft/client/font/FontManager
  • Field Details

    • LOGGER

      static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Leqv;b:Lorg/slf4j/Logger;
      intermediary field_2261 Lnet/minecraft/class_378;field_2261:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/client/font/FontManager;LOGGER:Lorg/slf4j/Logger;
    • FONTS_JSON

      private static final String FONTS_JSON
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Leqv;c:Ljava/lang/String;
      intermediary field_32226 Lnet/minecraft/class_378;field_32226:Ljava/lang/String;
      named FONTS_JSON Lnet/minecraft/client/font/FontManager;FONTS_JSON:Ljava/lang/String;
    • MISSING_STORAGE_ID

      public static final Identifier MISSING_STORAGE_ID
      Mappings:
      Namespace Name Mixin selector
      official a Leqv;a:Lacq;
      intermediary field_24254 Lnet/minecraft/class_378;field_24254:Lnet/minecraft/class_2960;
      named MISSING_STORAGE_ID Lnet/minecraft/client/font/FontManager;MISSING_STORAGE_ID:Lnet/minecraft/util/Identifier;
    • FINDER

      private static final ResourceFinder FINDER
      Mappings:
      Namespace Name Mixin selector
      official d Leqv;d:Lacj;
      intermediary field_40409 Lnet/minecraft/class_378;field_40409:Lnet/minecraft/class_7654;
      named FINDER Lnet/minecraft/client/font/FontManager;FINDER:Lnet/minecraft/resource/ResourceFinder;
    • field_44757

      private static final Gson field_44757
      Mappings:
      Namespace Name Mixin selector
      official e Leqv;e:Lcom/google/gson/Gson;
      intermediary field_44757 Lnet/minecraft/class_378;field_44757:Lcom/google/gson/Gson;
      named field_44757 Lnet/minecraft/client/font/FontManager;field_44757:Lcom/google/gson/Gson;
    • missingStorage

      private final FontStorage missingStorage
      Mappings:
      Namespace Name Mixin selector
      official f Leqv;f:Leqw;
      intermediary field_24255 Lnet/minecraft/class_378;field_24255:Lnet/minecraft/class_377;
      named missingStorage Lnet/minecraft/client/font/FontManager;missingStorage:Lnet/minecraft/client/font/FontStorage;
    • field_44758

      private final List<Font> field_44758
      Mappings:
      Namespace Name Mixin selector
      official g Leqv;g:Ljava/util/List;
      intermediary field_44758 Lnet/minecraft/class_378;field_44758:Ljava/util/List;
      named field_44758 Lnet/minecraft/client/font/FontManager;field_44758:Ljava/util/List;
    • fontStorages

      private final Map<Identifier,FontStorage> fontStorages
      Mappings:
      Namespace Name Mixin selector
      official h Leqv;h:Ljava/util/Map;
      intermediary field_2259 Lnet/minecraft/class_378;field_2259:Ljava/util/Map;
      named fontStorages Lnet/minecraft/client/font/FontManager;fontStorages:Ljava/util/Map;
    • textureManager

      private final TextureManager textureManager
      Mappings:
      Namespace Name Mixin selector
      official i Leqv;i:Lfuc;
      intermediary field_2260 Lnet/minecraft/class_378;field_2260:Lnet/minecraft/class_1060;
      named textureManager Lnet/minecraft/client/font/FontManager;textureManager:Lnet/minecraft/client/texture/TextureManager;
    • idOverrides

      private Map<Identifier,Identifier> idOverrides
      Mappings:
      Namespace Name Mixin selector
      official j Leqv;j:Ljava/util/Map;
      intermediary field_24256 Lnet/minecraft/class_378;field_24256:Ljava/util/Map;
      named idOverrides Lnet/minecraft/client/font/FontManager;idOverrides:Ljava/util/Map;
  • Constructor Details

    • FontManager

      public FontManager(TextureManager manager)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leqv;<init>(Lfuc;)V
      intermediary <init> Lnet/minecraft/class_378;<init>(Lnet/minecraft/class_1060;)V
      named <init> Lnet/minecraft/client/font/FontManager;<init>(Lnet/minecraft/client/texture/TextureManager;)V
  • Method Details

    • reload

      public CompletableFuture<Void> reload(ResourceReloader.Synchronizer synchronizer, ResourceManager manager, Profiler prepareProfiler, Profiler applyProfiler, Executor prepareExecutor, Executor applyExecutor)
      Performs a reload. Returns a future that is completed when the reload is completed.

      In a reload, there is a prepare stage and an apply stage. For the prepare stage, you should create completable futures with CompletableFuture.supplyAsync(..., prepareExecutor) to ensure the prepare actions are done with the prepare executor. Then, you should have a completable future for all the prepared actions, and call combinedPrepare.thenCompose(synchronizer::waitFor) to notify the synchronizer. Finally, you should run CompletableFuture.thenAcceptAsync(..., applyExecutor) for apply actions. In the end, returns the result of thenAcceptAsync.

      Specified by:
      reload in interface ResourceReloader
      Parameters:
      synchronizer - the synchronizer
      manager - the resource manager
      prepareProfiler - the profiler for prepare stage
      applyProfiler - the profiler for apply stage
      prepareExecutor - the executor for prepare stage
      applyExecutor - the executor for apply stage
      Returns:
      a future for the reload
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lakp;a(Lakp$a;Lakv;Lbak;Lbak;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_25931 Lnet/minecraft/class_3302;method_25931(Lnet/minecraft/class_3302$class_4045;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;Lnet/minecraft/class_3695;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      named reload Lnet/minecraft/resource/ResourceReloader;reload(Lnet/minecraft/resource/ResourceReloader$Synchronizer;Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;Lnet/minecraft/util/profiler/Profiler;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
    • method_51608

      private CompletableFuture<FontManager.class_8536> method_51608(ResourceManager resourceManager, Executor executor)
      Mappings:
      Namespace Name Mixin selector
      official a Leqv;a(Lakv;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_51608 Lnet/minecraft/class_378;method_51608(Lnet/minecraft/class_3300;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      named method_51608 Lnet/minecraft/client/font/FontManager;method_51608(Lnet/minecraft/resource/ResourceManager;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
    • method_51613

      private CompletableFuture<Optional<Font>> method_51613(FontManager.class_8534 class_8534, FontLoader.class_8539 class_8539, ResourceManager resourceManager, Executor executor)
      Mappings:
      Namespace Name Mixin selector
      official a Leqv;a(Leqv$a;Lerg$a;Lakv;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_51613 Lnet/minecraft/class_378;method_51613(Lnet/minecraft/class_378$class_8534;Lnet/minecraft/class_389$class_8539;Lnet/minecraft/class_3300;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
      named method_51613 Lnet/minecraft/client/font/FontManager;method_51613(Lnet/minecraft/client/font/FontManager$class_8534;Lnet/minecraft/client/font/FontLoader$class_8539;Lnet/minecraft/resource/ResourceManager;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
    • method_51617

      private Map<Identifier,List<Font>> method_51617(List<FontManager.class_8537> list)
      Mappings:
      Namespace Name Mixin selector
      official a Leqv;a(Ljava/util/List;)Ljava/util/Map;
      intermediary method_51617 Lnet/minecraft/class_378;method_51617(Ljava/util/List;)Ljava/util/Map;
      named method_51617 Lnet/minecraft/client/font/FontManager;method_51617(Ljava/util/List;)Ljava/util/Map;
    • method_51620

      private void method_51620(List<Font> list, Font font)
      Mappings:
      Namespace Name Mixin selector
      official a Leqv;a(Ljava/util/List;Lefw;)V
      intermediary method_51620 Lnet/minecraft/class_378;method_51620(Ljava/util/List;Lnet/minecraft/class_390;)V
      named method_51620 Lnet/minecraft/client/font/FontManager;method_51620(Ljava/util/List;Lnet/minecraft/client/font/Font;)V
    • method_51614

      private void method_51614(FontManager.class_8536 class_8536, Profiler profiler)
      Mappings:
      Namespace Name Mixin selector
      official a Leqv;a(Leqv$c;Lbak;)V
      intermediary method_51614 Lnet/minecraft/class_378;method_51614(Lnet/minecraft/class_378$class_8536;Lnet/minecraft/class_3695;)V
      named method_51614 Lnet/minecraft/client/font/FontManager;method_51614(Lnet/minecraft/client/font/FontManager$class_8536;Lnet/minecraft/util/profiler/Profiler;)V
    • method_51619

      private static List<com.mojang.datafixers.util.Pair<FontManager.class_8534,FontLoader>> method_51619(List<Resource> list, Identifier identifier)
      Mappings:
      Namespace Name Mixin selector
      official a Leqv;a(Ljava/util/List;Lacq;)Ljava/util/List;
      intermediary method_51619 Lnet/minecraft/class_378;method_51619(Ljava/util/List;Lnet/minecraft/class_2960;)Ljava/util/List;
      named method_51619 Lnet/minecraft/client/font/FontManager;method_51619(Ljava/util/List;Lnet/minecraft/util/Identifier;)Ljava/util/List;
    • setIdOverrides

      public void setIdOverrides(Map<Identifier,Identifier> idOverrides)
      Mappings:
      Namespace Name Mixin selector
      official a Leqv;a(Ljava/util/Map;)V
      intermediary method_27541 Lnet/minecraft/class_378;method_27541(Ljava/util/Map;)V
      named setIdOverrides Lnet/minecraft/client/font/FontManager;setIdOverrides(Ljava/util/Map;)V
    • method_51606

      private Identifier method_51606(Identifier identifier)
      Mappings:
      Namespace Name Mixin selector
      official a Leqv;a(Lacq;)Lacq;
      intermediary method_51606 Lnet/minecraft/class_378;method_51606(Lnet/minecraft/class_2960;)Lnet/minecraft/class_2960;
      named method_51606 Lnet/minecraft/client/font/FontManager;method_51606(Lnet/minecraft/util/Identifier;)Lnet/minecraft/util/Identifier;
    • createTextRenderer

      public TextRenderer createTextRenderer()
      Mappings:
      Namespace Name Mixin selector
      official a Leqv;a()Leof;
      intermediary method_27539 Lnet/minecraft/class_378;method_27539()Lnet/minecraft/class_327;
      named createTextRenderer Lnet/minecraft/client/font/FontManager;createTextRenderer()Lnet/minecraft/client/font/TextRenderer;
    • createAdvanceValidatingTextRenderer

      public TextRenderer createAdvanceValidatingTextRenderer()
      Mappings:
      Namespace Name Mixin selector
      official b Leqv;b()Leof;
      intermediary method_45078 Lnet/minecraft/class_378;method_45078()Lnet/minecraft/class_327;
      named createAdvanceValidatingTextRenderer Lnet/minecraft/client/font/FontManager;createAdvanceValidatingTextRenderer()Lnet/minecraft/client/font/TextRenderer;
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable