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 GlyphRendererblankGlyphRendererprivate Int2ObjectMap<IntList>charactersByWidthprivate static EmptyGlyphRendererEMPTY_GLYPH_RENDERERprivate List<Font>fontsprivate List<GlyphAtlasTexture>glyphAtlasesprivate Int2ObjectMap<Glyph>glyphCacheprivate Int2ObjectMap<GlyphRenderer>glyphRendererCacheprivate Identifieridprivate static RandomRANDOMprivate static GlyphSPACEprivate TextureManagertextureManagerprivate GlyphRendererwhiteRectangleGlyphRenderer -
Constructor Summary
Constructors Constructor Description FontStorage(TextureManager textureManager, Identifier id) -
Method Summary
Modifier and Type Method Description voidclose()private voidcloseFonts()private voidcloseGlyphAtlases()GlyphgetGlyph(int int2)GlyphRenderergetGlyphRenderer(int int2)private GlyphRenderergetGlyphRenderer(RenderableGlyph c)GlyphRenderergetObfuscatedGlyphRenderer(Glyph glyph)GlyphRenderergetRectangleRenderer()private RenderableGlyphgetRenderableGlyph(int int2)voidsetFonts(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:
closein interfaceAutoCloseable
-
closeFonts
private void closeFonts() -
closeGlyphAtlases
private void closeGlyphAtlases() -
getGlyph
-
getRenderableGlyph
-
getGlyphRenderer
-
getGlyphRenderer
-
getObfuscatedGlyphRenderer
-
getRectangleRenderer
-