@Environment(value=CLIENT) public class FontManager extends Object implements AutoCloseable
Modifier and Type | Field and Description |
---|---|
private Map<Identifier,FontStorage> |
fontStorages |
private Map<Identifier,Identifier> |
idOverrides |
private static Logger |
LOGGER |
static Identifier |
MISSING_STORAGE_ID |
private FontStorage |
missingStorage |
private ResourceReloadListener |
resourceReloadListener |
private TextureManager |
textureManager |
Constructor and Description |
---|
FontManager(TextureManager manager) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
TextRenderer |
createTextRenderer() |
ResourceReloadListener |
getResourceReloadListener() |
void |
setIdOverrides(Map<Identifier,Identifier> overrides) |
private static final Logger LOGGER
public static final Identifier MISSING_STORAGE_ID
private final FontStorage missingStorage
private final Map<Identifier,FontStorage> fontStorages
private final TextureManager textureManager
private Map<Identifier,Identifier> idOverrides
private final ResourceReloadListener resourceReloadListener
public FontManager(TextureManager manager)
public void setIdOverrides(Map<Identifier,Identifier> overrides)
public TextRenderer createTextRenderer()
public ResourceReloadListener getResourceReloadListener()
public void close()
close
in interface AutoCloseable