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
- Mappings:
Namespace Name official dthintermediary net/minecraft/class_377named net/minecraft/client/font/FontStorage
-
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
- Mappings:
Namespace Name Mixin selector official aLdth;a:Ldtl;intermediary field_2250Lnet/minecraft/class_377;field_2250:Lnet/minecraft/class_384;named EMPTY_GLYPH_RENDERERLnet/minecraft/client/font/FontStorage;EMPTY_GLYPH_RENDERER:Lnet/minecraft/client/font/EmptyGlyphRenderer;
-
SPACE
- Mappings:
Namespace Name Mixin selector official bLdth;b:Ldkf;intermediary field_2251Lnet/minecraft/class_377;field_2251:Lnet/minecraft/class_379;named SPACELnet/minecraft/client/font/FontStorage;SPACE:Lnet/minecraft/client/font/Glyph;
-
RANDOM
- Mappings:
Namespace Name Mixin selector official cLdth;c:Ljava/util/Random;intermediary field_2252Lnet/minecraft/class_377;field_2252:Ljava/util/Random;named RANDOMLnet/minecraft/client/font/FontStorage;RANDOM:Ljava/util/Random;
-
textureManager
- Mappings:
Namespace Name Mixin selector official dLdth;d:Lerv;intermediary field_2248Lnet/minecraft/class_377;field_2248:Lnet/minecraft/class_1060;named textureManagerLnet/minecraft/client/font/FontStorage;textureManager:Lnet/minecraft/client/texture/TextureManager;
-
id
- Mappings:
Namespace Name Mixin selector official eLdth;e:Lwb;intermediary field_2246Lnet/minecraft/class_377;field_2246:Lnet/minecraft/class_2960;named idLnet/minecraft/client/font/FontStorage;id:Lnet/minecraft/util/Identifier;
-
blankGlyphRenderer
- Mappings:
Namespace Name Mixin selector official fLdth;f:Ldtk;intermediary field_2256Lnet/minecraft/class_377;field_2256:Lnet/minecraft/class_382;named blankGlyphRendererLnet/minecraft/client/font/FontStorage;blankGlyphRenderer:Lnet/minecraft/client/font/GlyphRenderer;
-
whiteRectangleGlyphRenderer
- Mappings:
Namespace Name Mixin selector official gLdth;g:Ldtk;intermediary field_20910Lnet/minecraft/class_377;field_20910:Lnet/minecraft/class_382;named whiteRectangleGlyphRendererLnet/minecraft/client/font/FontStorage;whiteRectangleGlyphRenderer:Lnet/minecraft/client/font/GlyphRenderer;
-
fonts
- Mappings:
Namespace Name Mixin selector official hLdth;h:Ljava/util/List;intermediary field_2247Lnet/minecraft/class_377;field_2247:Ljava/util/List;named fontsLnet/minecraft/client/font/FontStorage;fonts:Ljava/util/List;
-
glyphRendererCache
- Mappings:
Namespace Name Mixin selector official iLdth;i:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;intermediary field_2253Lnet/minecraft/class_377;field_2253:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;named glyphRendererCacheLnet/minecraft/client/font/FontStorage;glyphRendererCache:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
glyphCache
- Mappings:
Namespace Name Mixin selector official jLdth;j:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;intermediary field_2257Lnet/minecraft/class_377;field_2257:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;named glyphCacheLnet/minecraft/client/font/FontStorage;glyphCache:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
charactersByWidth
- Mappings:
Namespace Name Mixin selector official kLdth;k:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;intermediary field_2249Lnet/minecraft/class_377;field_2249:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;named charactersByWidthLnet/minecraft/client/font/FontStorage;charactersByWidth:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
glyphAtlases
- Mappings:
Namespace Name Mixin selector official lLdth;l:Ljava/util/List;intermediary field_2254Lnet/minecraft/class_377;field_2254:Ljava/util/List;named glyphAtlasesLnet/minecraft/client/font/FontStorage;glyphAtlases:Ljava/util/List;
-
-
Constructor Details
-
FontStorage
- Mappings:
Namespace Name Mixin selector official <init>Ldth;<init>(Lerv;Lwb;)Vintermediary <init>Lnet/minecraft/class_377;<init>(Lnet/minecraft/class_1060;Lnet/minecraft/class_2960;)Vnamed <init>Lnet/minecraft/client/font/FontStorage;<init>(Lnet/minecraft/client/texture/TextureManager;Lnet/minecraft/util/Identifier;)V
-
-
Method Details
-
setFonts
- Mappings:
Namespace Name Mixin selector official aLdth;a(Ljava/util/List;)Vintermediary method_2004Lnet/minecraft/class_377;method_2004(Ljava/util/List;)Vnamed setFontsLnet/minecraft/client/font/FontStorage;setFonts(Ljava/util/List;)V
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Mappings:
Namespace Name Mixin selector official closeLdth;close()Vintermediary closeLnet/minecraft/class_377;close()Vnamed closeLnet/minecraft/client/font/FontStorage;close()V
-
closeFonts
private void closeFonts()- Mappings:
Namespace Name Mixin selector official bLdth;b()Vintermediary method_24290Lnet/minecraft/class_377;method_24290()Vnamed closeFontsLnet/minecraft/client/font/FontStorage;closeFonts()V
-
closeGlyphAtlases
private void closeGlyphAtlases()- Mappings:
Namespace Name Mixin selector official cLdth;c()Vintermediary method_2010Lnet/minecraft/class_377;method_2010()Vnamed closeGlyphAtlasesLnet/minecraft/client/font/FontStorage;closeGlyphAtlases()V
-
getGlyph
- Mappings:
Namespace Name Mixin selector official aLdth;a(I)Ldkf;intermediary method_2011Lnet/minecraft/class_377;method_2011(I)Lnet/minecraft/class_379;named getGlyphLnet/minecraft/client/font/FontStorage;getGlyph(I)Lnet/minecraft/client/font/Glyph;
-
getRenderableGlyph
- Mappings:
Namespace Name Mixin selector official cLdth;c(I)Ldkh;intermediary method_2008Lnet/minecraft/class_377;method_2008(I)Lnet/minecraft/class_383;named getRenderableGlyphLnet/minecraft/client/font/FontStorage;getRenderableGlyph(I)Lnet/minecraft/client/font/RenderableGlyph;
-
getGlyphRenderer
- Mappings:
Namespace Name Mixin selector official bLdth;b(I)Ldtk;intermediary method_2014Lnet/minecraft/class_377;method_2014(I)Lnet/minecraft/class_382;named getGlyphRendererLnet/minecraft/client/font/FontStorage;getGlyphRenderer(I)Lnet/minecraft/client/font/GlyphRenderer;
-
getGlyphRenderer
- Mappings:
Namespace Name Mixin selector official aLdth;a(Ldkh;)Ldtk;intermediary method_2012Lnet/minecraft/class_377;method_2012(Lnet/minecraft/class_383;)Lnet/minecraft/class_382;named getGlyphRendererLnet/minecraft/client/font/FontStorage;getGlyphRenderer(Lnet/minecraft/client/font/RenderableGlyph;)Lnet/minecraft/client/font/GlyphRenderer;
-
getObfuscatedGlyphRenderer
- Mappings:
Namespace Name Mixin selector official aLdth;a(Ldkf;)Ldtk;intermediary method_2013Lnet/minecraft/class_377;method_2013(Lnet/minecraft/class_379;)Lnet/minecraft/class_382;named getObfuscatedGlyphRendererLnet/minecraft/client/font/FontStorage;getObfuscatedGlyphRenderer(Lnet/minecraft/client/font/Glyph;)Lnet/minecraft/client/font/GlyphRenderer;
-
getRectangleRenderer
- Mappings:
Namespace Name Mixin selector official aLdth;a()Ldtk;intermediary method_22943Lnet/minecraft/class_377;method_22943()Lnet/minecraft/class_382;named getRectangleRendererLnet/minecraft/client/font/FontStorage;getRectangleRenderer()Lnet/minecraft/client/font/GlyphRenderer;
-