Package net.minecraft.client.font
Class FontStorage
java.lang.Object
net.minecraft.client.font.FontStorage
- All Implemented Interfaces:
AutoCloseable
@Environment(CLIENT) public class FontStorage extends Object implements AutoCloseable
-
Field Summary
Fields Modifier and Type Field Description private GlyphRenderer
blankGlyphRenderer
private Int2ObjectMap<IntList>
charactersByWidth
private static EmptyGlyphRenderer
EMPTY_GLYPH_RENDERER
private List<Font>
fonts
private List<GlyphAtlasTexture>
glyphAtlases
private Int2ObjectMap<Glyph>
glyphCache
private Int2ObjectMap<GlyphRenderer>
glyphRendererCache
private Identifier
id
private static Random
RANDOM
private static Glyph
SPACE
private TextureManager
textureManager
private GlyphRenderer
whiteRectangleGlyphRenderer
-
Constructor Summary
Constructors Constructor Description FontStorage(TextureManager textureManager, Identifier id)
-
Method Summary
Modifier and Type Method Description void
close()
private void
closeFonts()
private void
closeGlyphAtlases()
Glyph
getGlyph(int int2)
GlyphRenderer
getGlyphRenderer(int int2)
private GlyphRenderer
getGlyphRenderer(RenderableGlyph c)
GlyphRenderer
getObfuscatedGlyphRenderer(Glyph glyph)
GlyphRenderer
getRectangleRenderer()
private RenderableGlyph
getRenderableGlyph(int int2)
void
setFonts(List<Font> fonts)
-
Field Details
-
EMPTY_GLYPH_RENDERER
-
SPACE
-
RANDOM
-
textureManager
-
id
-
blankGlyphRenderer
-
whiteRectangleGlyphRenderer
-
fonts
-
glyphRendererCache
-
glyphCache
-
charactersByWidth
-
glyphAtlases
-
-
Constructor Details
-
FontStorage
-
-
Method Details
-
setFonts
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
closeFonts
private void closeFonts() -
closeGlyphAtlases
private void closeGlyphAtlases() -
getGlyph
-
getRenderableGlyph
-
getGlyphRenderer
-
getGlyphRenderer
-
getObfuscatedGlyphRenderer
-
getRectangleRenderer
-