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
(package private) static final org.slf4j.Logger
static final ResourceLocation
private final FontSet
private final List<GlyphProvider>
private Map<ResourceLocation,
ResourceLocation> private final TextureManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
apply
(FontManager.Preparation p_284939_, ProfilerFiller p_285407_) void
close()
private void
finalizeProviderLoading
(List<GlyphProvider> p_285520_, GlyphProvider p_285397_) private ResourceLocation
getActualId
(ResourceLocation p_285141_) private static List<com.mojang.datafixers.util.Pair<FontManager.BuilderId,
GlyphProviderDefinition>> 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>> 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
setRenames
(Map<ResourceLocation, ResourceLocation> p_95012_) 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
-
renames
-
-
Constructor Details
-
FontManager
-
-
Method Details
-
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>> resolveProviders(List<FontManager.UnresolvedBuilderBundle> p_285282_) -
finalizeProviderLoading
-
apply
-
loadResourceStack
private static List<com.mojang.datafixers.util.Pair<FontManager.BuilderId,GlyphProviderDefinition>> loadResourceStack(List<Resource> p_284976_, ResourceLocation p_285272_) -
setRenames
-
getActualId
-
createFont
-
createFontFilterFishy
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-