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>
glyphInfos
private it.unimi.dsi.fastutil.ints.Int2ObjectMap<TexturedGlyph>
glyphs
private it.unimi.dsi.fastutil.ints.Int2ObjectMap<it.unimi.dsi.fastutil.ints.IntList>
glyphsByWidth
private TexturedGlyph
missingGlyph
private ResourceLocation
name
private java.util.List<IGlyphProvider>
providers
private static java.util.Random
RANDOM
private static EmptyGlyph
SPACE_GLYPH
private static IGlyph
SPACE_INFO
private TextureManager
textureManager
private java.util.List<FontTexture>
textures
private TexturedGlyph
whiteGlyph
-
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 void
close()
private void
closeProviders()
private void
closeTextures()
TexturedGlyph
getGlyph(int p_238559_1_)
IGlyph
getGlyphInfo(int p_238557_1_)
TexturedGlyph
getRandomGlyph(IGlyph p_211188_1_)
private IGlyphInfo
getRaw(int p_212455_1_)
void
reload(java.util.List<IGlyphProvider> p_211570_1_)
private TexturedGlyph
stitch(IGlyphInfo p_211185_1_)
TexturedGlyph
whiteGlyph()
-
-
-
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:
close
in 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()
-
-