Package net.minecraft.client.gui.font
Class FontManager
java.lang.Object
net.minecraft.client.gui.font.FontManager
- All Implemented Interfaces:
AutoCloseable
,PreparableReloadListener
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final record
(package private) static final record
(package private) static final record
(package private) static final record
(package private) static final record
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final FileToIdConverter
private static final String
private final Map
<ResourceLocation, FontSet> private static final com.google.gson.Gson
private FontSet
(package private) static final org.slf4j.Logger
static final ResourceLocation
private final FontSet
private final List
<GlyphProvider> private final TextureManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
apply
(FontManager.Preparation p_284939_, ProfilerFiller p_285407_) void
close()
private static GlyphProvider.Conditional
private void
finalizeProviderLoading
(List<GlyphProvider.Conditional> p_285520_, GlyphProvider.Conditional p_328834_) private static Set
<FontOption> getFontOptions
(Options p_331588_) private FontSet
getFontSetCached
(ResourceLocation p_332431_) private FontSet
getFontSetRaw
(ResourceLocation p_333296_) private static List
<com.mojang.datafixers.util.Pair<FontManager.BuilderId, GlyphProviderDefinition.Conditional>> loadResourceStack
(List<Resource> p_284976_, ResourceLocation p_285272_) private CompletableFuture
<FontManager.Preparation> prepare
(ResourceManager p_285252_, Executor p_284969_) reload
(PreparableReloadListener.PreparationBarrier p_285160_, ResourceManager p_285231_, ProfilerFiller p_285232_, ProfilerFiller p_285262_, Executor p_284975_, Executor p_285218_) private Map
<ResourceLocation, List<GlyphProvider.Conditional>> resolveProviders
(List<FontManager.UnresolvedBuilderBundle> p_285282_) private CompletableFuture
<Optional<GlyphProvider>> safeLoad
(FontManager.BuilderId p_285113_, GlyphProviderDefinition.Loader p_286561_, ResourceManager p_285424_, Executor p_285371_) void
updateOptions
(Options p_335215_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getName
-
Field Details
-
LOGGER
static final org.slf4j.Logger LOGGER -
FONTS_PATH
- See Also:
-
MISSING_FONT
-
FONT_DEFINITIONS
-
GSON
private static final com.google.gson.Gson GSON -
missingFontSet
-
providersToClose
-
fontSets
-
textureManager
-
lastFontSetCache
-
-
Constructor Details
-
FontManager
-
-
Method Details
-
createFallbackProvider
-
reload
public CompletableFuture<Void> reload(PreparableReloadListener.PreparationBarrier p_285160_, ResourceManager p_285231_, ProfilerFiller p_285232_, ProfilerFiller p_285262_, Executor p_284975_, Executor p_285218_) - Specified by:
reload
in interfacePreparableReloadListener
-
prepare
private CompletableFuture<FontManager.Preparation> prepare(ResourceManager p_285252_, Executor p_284969_) -
safeLoad
private CompletableFuture<Optional<GlyphProvider>> safeLoad(FontManager.BuilderId p_285113_, GlyphProviderDefinition.Loader p_286561_, ResourceManager p_285424_, Executor p_285371_) -
resolveProviders
private Map<ResourceLocation,List<GlyphProvider.Conditional>> resolveProviders(List<FontManager.UnresolvedBuilderBundle> p_285282_) -
finalizeProviderLoading
private void finalizeProviderLoading(List<GlyphProvider.Conditional> p_285520_, GlyphProvider.Conditional p_328834_) -
getFontOptions
-
apply
-
updateOptions
-
loadResourceStack
private static List<com.mojang.datafixers.util.Pair<FontManager.BuilderId,GlyphProviderDefinition.Conditional>> loadResourceStack(List<Resource> p_284976_, ResourceLocation p_285272_) -
createFont
-
createFontFilterFishy
-
getFontSetRaw
-
getFontSetCached
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-