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 dth
intermediary net/minecraft/class_377
named net/minecraft/client/font/FontStorage
-
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
- Mappings:
Namespace Name Mixin selector official a
Ldth;a:Ldtl;
intermediary field_2250
Lnet/minecraft/class_377;field_2250:Lnet/minecraft/class_384;
named EMPTY_GLYPH_RENDERER
Lnet/minecraft/client/font/FontStorage;EMPTY_GLYPH_RENDERER:Lnet/minecraft/client/font/EmptyGlyphRenderer;
-
SPACE
- Mappings:
Namespace Name Mixin selector official b
Ldth;b:Ldkf;
intermediary field_2251
Lnet/minecraft/class_377;field_2251:Lnet/minecraft/class_379;
named SPACE
Lnet/minecraft/client/font/FontStorage;SPACE:Lnet/minecraft/client/font/Glyph;
-
RANDOM
- Mappings:
Namespace Name Mixin selector official c
Ldth;c:Ljava/util/Random;
intermediary field_2252
Lnet/minecraft/class_377;field_2252:Ljava/util/Random;
named RANDOM
Lnet/minecraft/client/font/FontStorage;RANDOM:Ljava/util/Random;
-
textureManager
- Mappings:
Namespace Name Mixin selector official d
Ldth;d:Lerv;
intermediary field_2248
Lnet/minecraft/class_377;field_2248:Lnet/minecraft/class_1060;
named textureManager
Lnet/minecraft/client/font/FontStorage;textureManager:Lnet/minecraft/client/texture/TextureManager;
-
id
- Mappings:
Namespace Name Mixin selector official e
Ldth;e:Lwb;
intermediary field_2246
Lnet/minecraft/class_377;field_2246:Lnet/minecraft/class_2960;
named id
Lnet/minecraft/client/font/FontStorage;id:Lnet/minecraft/util/Identifier;
-
blankGlyphRenderer
- Mappings:
Namespace Name Mixin selector official f
Ldth;f:Ldtk;
intermediary field_2256
Lnet/minecraft/class_377;field_2256:Lnet/minecraft/class_382;
named blankGlyphRenderer
Lnet/minecraft/client/font/FontStorage;blankGlyphRenderer:Lnet/minecraft/client/font/GlyphRenderer;
-
whiteRectangleGlyphRenderer
- Mappings:
Namespace Name Mixin selector official g
Ldth;g:Ldtk;
intermediary field_20910
Lnet/minecraft/class_377;field_20910:Lnet/minecraft/class_382;
named whiteRectangleGlyphRenderer
Lnet/minecraft/client/font/FontStorage;whiteRectangleGlyphRenderer:Lnet/minecraft/client/font/GlyphRenderer;
-
fonts
- Mappings:
Namespace Name Mixin selector official h
Ldth;h:Ljava/util/List;
intermediary field_2247
Lnet/minecraft/class_377;field_2247:Ljava/util/List;
named fonts
Lnet/minecraft/client/font/FontStorage;fonts:Ljava/util/List;
-
glyphRendererCache
- Mappings:
Namespace Name Mixin selector official i
Ldth;i:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
intermediary field_2253
Lnet/minecraft/class_377;field_2253:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
named glyphRendererCache
Lnet/minecraft/client/font/FontStorage;glyphRendererCache:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
glyphCache
- Mappings:
Namespace Name Mixin selector official j
Ldth;j:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
intermediary field_2257
Lnet/minecraft/class_377;field_2257:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
named glyphCache
Lnet/minecraft/client/font/FontStorage;glyphCache:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
charactersByWidth
- Mappings:
Namespace Name Mixin selector official k
Ldth;k:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
intermediary field_2249
Lnet/minecraft/class_377;field_2249:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
named charactersByWidth
Lnet/minecraft/client/font/FontStorage;charactersByWidth:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
glyphAtlases
- Mappings:
Namespace Name Mixin selector official l
Ldth;l:Ljava/util/List;
intermediary field_2254
Lnet/minecraft/class_377;field_2254:Ljava/util/List;
named glyphAtlases
Lnet/minecraft/client/font/FontStorage;glyphAtlases:Ljava/util/List;
-
-
Constructor Details
-
FontStorage
- Mappings:
Namespace Name Mixin selector official <init>
Ldth;<init>(Lerv;Lwb;)V
intermediary <init>
Lnet/minecraft/class_377;<init>(Lnet/minecraft/class_1060;Lnet/minecraft/class_2960;)V
named <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 a
Ldth;a(Ljava/util/List;)V
intermediary method_2004
Lnet/minecraft/class_377;method_2004(Ljava/util/List;)V
named setFonts
Lnet/minecraft/client/font/FontStorage;setFonts(Ljava/util/List;)V
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Mappings:
Namespace Name Mixin selector official close
Ldth;close()V
intermediary close
Lnet/minecraft/class_377;close()V
named close
Lnet/minecraft/client/font/FontStorage;close()V
-
closeFonts
private void closeFonts()- Mappings:
Namespace Name Mixin selector official b
Ldth;b()V
intermediary method_24290
Lnet/minecraft/class_377;method_24290()V
named closeFonts
Lnet/minecraft/client/font/FontStorage;closeFonts()V
-
closeGlyphAtlases
private void closeGlyphAtlases()- Mappings:
Namespace Name Mixin selector official c
Ldth;c()V
intermediary method_2010
Lnet/minecraft/class_377;method_2010()V
named closeGlyphAtlases
Lnet/minecraft/client/font/FontStorage;closeGlyphAtlases()V
-
getGlyph
- Mappings:
Namespace Name Mixin selector official a
Ldth;a(I)Ldkf;
intermediary method_2011
Lnet/minecraft/class_377;method_2011(I)Lnet/minecraft/class_379;
named getGlyph
Lnet/minecraft/client/font/FontStorage;getGlyph(I)Lnet/minecraft/client/font/Glyph;
-
getRenderableGlyph
- Mappings:
Namespace Name Mixin selector official c
Ldth;c(I)Ldkh;
intermediary method_2008
Lnet/minecraft/class_377;method_2008(I)Lnet/minecraft/class_383;
named getRenderableGlyph
Lnet/minecraft/client/font/FontStorage;getRenderableGlyph(I)Lnet/minecraft/client/font/RenderableGlyph;
-
getGlyphRenderer
- Mappings:
Namespace Name Mixin selector official b
Ldth;b(I)Ldtk;
intermediary method_2014
Lnet/minecraft/class_377;method_2014(I)Lnet/minecraft/class_382;
named getGlyphRenderer
Lnet/minecraft/client/font/FontStorage;getGlyphRenderer(I)Lnet/minecraft/client/font/GlyphRenderer;
-
getGlyphRenderer
- Mappings:
Namespace Name Mixin selector official a
Ldth;a(Ldkh;)Ldtk;
intermediary method_2012
Lnet/minecraft/class_377;method_2012(Lnet/minecraft/class_383;)Lnet/minecraft/class_382;
named getGlyphRenderer
Lnet/minecraft/client/font/FontStorage;getGlyphRenderer(Lnet/minecraft/client/font/RenderableGlyph;)Lnet/minecraft/client/font/GlyphRenderer;
-
getObfuscatedGlyphRenderer
- Mappings:
Namespace Name Mixin selector official a
Ldth;a(Ldkf;)Ldtk;
intermediary method_2013
Lnet/minecraft/class_377;method_2013(Lnet/minecraft/class_379;)Lnet/minecraft/class_382;
named getObfuscatedGlyphRenderer
Lnet/minecraft/client/font/FontStorage;getObfuscatedGlyphRenderer(Lnet/minecraft/client/font/Glyph;)Lnet/minecraft/client/font/GlyphRenderer;
-
getRectangleRenderer
- Mappings:
Namespace Name Mixin selector official a
Ldth;a()Ldtk;
intermediary method_22943
Lnet/minecraft/class_377;method_22943()Lnet/minecraft/class_382;
named getRectangleRenderer
Lnet/minecraft/client/font/FontStorage;getRectangleRenderer()Lnet/minecraft/client/font/GlyphRenderer;
-