Package net.minecraft.client.gui.fonts
Class Font
- java.lang.Object
-
- net.minecraft.client.gui.fonts.Font
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class Font extends java.lang.Object implements java.lang.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description private it.unimi.dsi.fastutil.ints.Int2ObjectMap<IGlyph>glyphInfosprivate it.unimi.dsi.fastutil.ints.Int2ObjectMap<TexturedGlyph>glyphsprivate it.unimi.dsi.fastutil.ints.Int2ObjectMap<it.unimi.dsi.fastutil.ints.IntList>glyphsByWidthprivate TexturedGlyphmissingGlyphprivate ResourceLocationnameprivate java.util.List<IGlyphProvider>providersprivate static java.util.RandomRANDOMprivate static EmptyGlyphSPACE_GLYPHprivate static IGlyphSPACE_INFOprivate TextureManagertextureManagerprivate java.util.List<FontTexture>texturesprivate TexturedGlyphwhiteGlyph
-
Constructor Summary
Constructors Constructor Description Font(TextureManager p_i49771_1_, ResourceLocation p_i49771_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()private voidcloseProviders()private voidcloseTextures()TexturedGlyphgetGlyph(int p_238559_1_)IGlyphgetGlyphInfo(int p_238557_1_)TexturedGlyphgetRandomGlyph(IGlyph p_211188_1_)private IGlyphInfogetRaw(int p_212455_1_)voidreload(java.util.List<IGlyphProvider> p_211570_1_)private TexturedGlyphstitch(IGlyphInfo p_211185_1_)TexturedGlyphwhiteGlyph()
-
-
-
Field Detail
-
SPACE_GLYPH
private static final EmptyGlyph SPACE_GLYPH
-
SPACE_INFO
private static final IGlyph SPACE_INFO
-
RANDOM
private static final java.util.Random RANDOM
-
textureManager
private final TextureManager textureManager
-
name
private final ResourceLocation name
-
missingGlyph
private TexturedGlyph missingGlyph
-
whiteGlyph
private TexturedGlyph whiteGlyph
-
providers
private final java.util.List<IGlyphProvider> providers
-
glyphs
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<TexturedGlyph> glyphs
-
glyphInfos
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<IGlyph> glyphInfos
-
glyphsByWidth
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<it.unimi.dsi.fastutil.ints.IntList> glyphsByWidth
-
textures
private final java.util.List<FontTexture> textures
-
-
Constructor Detail
-
Font
public Font(TextureManager p_i49771_1_, ResourceLocation p_i49771_2_)
-
-
Method Detail
-
reload
public void reload(java.util.List<IGlyphProvider> p_211570_1_)
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
closeProviders
private void closeProviders()
-
closeTextures
private void closeTextures()
-
getGlyphInfo
public IGlyph getGlyphInfo(int p_238557_1_)
-
getRaw
private IGlyphInfo getRaw(int p_212455_1_)
-
getGlyph
public TexturedGlyph getGlyph(int p_238559_1_)
-
stitch
private TexturedGlyph stitch(IGlyphInfo p_211185_1_)
-
getRandomGlyph
public TexturedGlyph getRandomGlyph(IGlyph p_211188_1_)
-
whiteGlyph
public TexturedGlyph whiteGlyph()
-
-