Package net.minecraft.client.font
Class FontStorage
java.lang.Object
net.minecraft.client.font.FontStorage
- All Implemented Interfaces:
AutoCloseable
- Mappings:
Namespace Name intermediary net/minecraft/class_377official erenamed net/minecraft/client/font/FontStorage
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate GlyphRendererprivate final Int2ObjectMap<IntList>private final List<GlyphAtlasTexture>private final GlyphContainer<FontStorage.GlyphPair>private final GlyphContainer<GlyphRenderer>private final Identifierprivate static final floatprivate static final Randomprivate final TextureManagerprivate GlyphRenderer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private voidprivate voidprivate FontStorage.GlyphPairfindGlyph(int codePoint) Returns the glyph ofcodePoint.private GlyphRendererfindGlyphRenderer(int codePoint) getGlyph(int codePoint, boolean validateAdvance) Returns the glyph ofcodePoint.getGlyphRenderer(int codePoint) private GlyphRenderergetObfuscatedGlyphRenderer(Glyph glyph) private static booleanisAdvanceInvalid(Glyph glyph) void
-
Field Details
-
RANDOM
- Mappings:
Namespace Name Mixin selector intermediary field_2252Lnet/minecraft/class_377;field_2252:Lnet/minecraft/class_5819;official aLere;a:Lapf;named RANDOMLnet/minecraft/client/font/FontStorage;RANDOM:Lnet/minecraft/util/math/random/Random;
-
MAX_ADVANCE
private static final float MAX_ADVANCE- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_39934Lnet/minecraft/class_377;field_39934:Fofficial bLere;b:Fnamed MAX_ADVANCELnet/minecraft/client/font/FontStorage;MAX_ADVANCE:F
-
textureManager
- Mappings:
Namespace Name Mixin selector intermediary field_2248Lnet/minecraft/class_377;field_2248:Lnet/minecraft/class_1060;official cLere;c:Lful;named textureManagerLnet/minecraft/client/font/FontStorage;textureManager:Lnet/minecraft/client/texture/TextureManager;
-
id
- Mappings:
Namespace Name Mixin selector intermediary field_2246Lnet/minecraft/class_377;field_2246:Lnet/minecraft/class_2960;official dLere;d:Lacq;named idLnet/minecraft/client/font/FontStorage;id:Lnet/minecraft/util/Identifier;
-
blankGlyphRenderer
- Mappings:
Namespace Name Mixin selector intermediary field_2256Lnet/minecraft/class_377;field_2256:Lnet/minecraft/class_382;official eLere;e:Leri;named blankGlyphRendererLnet/minecraft/client/font/FontStorage;blankGlyphRenderer:Lnet/minecraft/client/font/GlyphRenderer;
-
whiteRectangleGlyphRenderer
- Mappings:
Namespace Name Mixin selector intermediary field_20910Lnet/minecraft/class_377;field_20910:Lnet/minecraft/class_382;official fLere;f:Leri;named whiteRectangleGlyphRendererLnet/minecraft/client/font/FontStorage;whiteRectangleGlyphRenderer:Lnet/minecraft/client/font/GlyphRenderer;
-
fonts
- Mappings:
Namespace Name Mixin selector intermediary field_2247Lnet/minecraft/class_377;field_2247:Ljava/util/List;official gLere;g:Ljava/util/List;named fontsLnet/minecraft/client/font/FontStorage;fonts:Ljava/util/List;
-
glyphRendererCache
- Mappings:
Namespace Name Mixin selector intermediary field_2253Lnet/minecraft/class_377;field_2253:Lnet/minecraft/class_8532;official hLere;h:Lerc;named glyphRendererCacheLnet/minecraft/client/font/FontStorage;glyphRendererCache:Lnet/minecraft/client/font/GlyphContainer;
-
glyphCache
- Mappings:
Namespace Name Mixin selector intermediary field_2257Lnet/minecraft/class_377;field_2257:Lnet/minecraft/class_8532;official iLere;i:Lerc;named glyphCacheLnet/minecraft/client/font/FontStorage;glyphCache:Lnet/minecraft/client/font/GlyphContainer;
-
charactersByWidth
- Mappings:
Namespace Name Mixin selector intermediary field_2249Lnet/minecraft/class_377;field_2249:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;official jLere;j: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 intermediary field_2254Lnet/minecraft/class_377;field_2254:Ljava/util/List;official kLere;k:Ljava/util/List;named glyphAtlasesLnet/minecraft/client/font/FontStorage;glyphAtlases:Ljava/util/List;
-
-
Constructor Details
-
FontStorage
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_377;<init>(Lnet/minecraft/class_1060;Lnet/minecraft/class_2960;)Vofficial <init>Lere;<init>(Lful;Lacq;)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 intermediary method_2004Lnet/minecraft/class_377;method_2004(Ljava/util/List;)Vofficial aLere;a(Ljava/util/List;)Vnamed setFontsLnet/minecraft/client/font/FontStorage;setFonts(Ljava/util/List;)V
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
closeFonts
private void closeFonts()- Mappings:
Namespace Name Mixin selector intermediary method_24290Lnet/minecraft/class_377;method_24290()Vofficial bLere;b()Vnamed closeFontsLnet/minecraft/client/font/FontStorage;closeFonts()V
-
closeGlyphAtlases
private void closeGlyphAtlases()- Mappings:
Namespace Name Mixin selector intermediary method_2010Lnet/minecraft/class_377;method_2010()Vofficial cLere;c()Vnamed closeGlyphAtlasesLnet/minecraft/client/font/FontStorage;closeGlyphAtlases()V
-
isAdvanceInvalid
- Mappings:
Namespace Name Mixin selector intermediary method_45079Lnet/minecraft/class_377;method_45079(Lnet/minecraft/class_379;)Zofficial bLere;b(Legd;)Znamed isAdvanceInvalidLnet/minecraft/client/font/FontStorage;isAdvanceInvalid(Lnet/minecraft/client/font/Glyph;)Z
-
findGlyph
Returns the glyph ofcodePoint.- Returns:
- the glyph of
codePoint - API Note:
- Call
getGlyph(int, boolean)instead, as that method provides caching. - Mappings:
Namespace Name Mixin selector intermediary method_40038Lnet/minecraft/class_377;method_40038(I)Lnet/minecraft/class_377$class_7647;official bLere;b(I)Lere$a;named findGlyphLnet/minecraft/client/font/FontStorage;findGlyph(I)Lnet/minecraft/client/font/FontStorage$GlyphPair;
-
getGlyph
Returns the glyph ofcodePoint.- Returns:
- the glyph of
codePoint - Implementation Note:
BuiltinEmptyGlyph.MISSINGis returned for missing code points.- Mappings:
Namespace Name Mixin selector intermediary method_2011Lnet/minecraft/class_377;method_2011(IZ)Lnet/minecraft/class_379;official aLere;a(IZ)Legd;named getGlyphLnet/minecraft/client/font/FontStorage;getGlyph(IZ)Lnet/minecraft/client/font/Glyph;
-
findGlyphRenderer
- Mappings:
Namespace Name Mixin selector intermediary method_41832Lnet/minecraft/class_377;method_41832(I)Lnet/minecraft/class_382;official cLere;c(I)Leri;named findGlyphRendererLnet/minecraft/client/font/FontStorage;findGlyphRenderer(I)Lnet/minecraft/client/font/GlyphRenderer;
-
getGlyphRenderer
- Mappings:
Namespace Name Mixin selector intermediary method_2014Lnet/minecraft/class_377;method_2014(I)Lnet/minecraft/class_382;official aLere;a(I)Leri;named getGlyphRendererLnet/minecraft/client/font/FontStorage;getGlyphRenderer(I)Lnet/minecraft/client/font/GlyphRenderer;
-
getGlyphRenderer
- Mappings:
Namespace Name Mixin selector intermediary method_2012Lnet/minecraft/class_377;method_2012(Lnet/minecraft/class_383;)Lnet/minecraft/class_382;official aLere;a(Legf;)Leri;named getGlyphRendererLnet/minecraft/client/font/FontStorage;getGlyphRenderer(Lnet/minecraft/client/font/RenderableGlyph;)Lnet/minecraft/client/font/GlyphRenderer;
-
getObfuscatedGlyphRenderer
- Mappings:
Namespace Name Mixin selector intermediary method_2013Lnet/minecraft/class_377;method_2013(Lnet/minecraft/class_379;)Lnet/minecraft/class_382;official aLere;a(Legd;)Leri;named getObfuscatedGlyphRendererLnet/minecraft/client/font/FontStorage;getObfuscatedGlyphRenderer(Lnet/minecraft/client/font/Glyph;)Lnet/minecraft/client/font/GlyphRenderer;
-
getRectangleRenderer
- Mappings:
Namespace Name Mixin selector intermediary method_22943Lnet/minecraft/class_377;method_22943()Lnet/minecraft/class_382;official aLere;a()Leri;named getRectangleRendererLnet/minecraft/client/font/FontStorage;getRectangleRenderer()Lnet/minecraft/client/font/GlyphRenderer;
-