@Environment(value=CLIENT) public class FontManager extends Object implements AutoCloseable
Modifier and Type | Field and Description |
---|---|
private boolean |
forceUnicodeFont |
private static Logger |
LOGGER |
private ResourceReloadListener |
resourceReloadListener |
private Map<Identifier,TextRenderer> |
textRenderers |
private TextureManager |
textureManager |
Constructor and Description |
---|
FontManager(TextureManager manager,
boolean bool) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ResourceReloadListener |
getResourceReloadListener() |
TextRenderer |
getTextRenderer(Identifier identifier) |
void |
setForceUnicodeFont(boolean forceUnicodeFont,
Executor prepareExecutor,
Executor applyExecutor) |
private static final Logger LOGGER
private final Map<Identifier,TextRenderer> textRenderers
private final TextureManager textureManager
private boolean forceUnicodeFont
private final ResourceReloadListener resourceReloadListener
public FontManager(TextureManager manager, boolean bool)
@Nullable public TextRenderer getTextRenderer(Identifier identifier)
public void setForceUnicodeFont(boolean forceUnicodeFont, Executor prepareExecutor, Executor applyExecutor)
public ResourceReloadListener getResourceReloadListener()
public void close()
close
in interface AutoCloseable