Package net.minecraft.client.font
Class FontStorage
java.lang.Object
net.minecraft.client.font.FontStorage
- All Implemented Interfaces:
AutoCloseable
- Mappings:
Namespace Name named net/minecraft/client/font/FontStorageintermediary net/minecraft/class_377official fjx
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<Font.FontFilterPair> private 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 TypeMethodDescriptionapplyFilters(List<Font.FontFilterPair> allFonts, Set<FontFilterType> activeFilters) private voidclear()voidclose()private 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 GlyphRenderergetId()getObfuscatedGlyphRenderer(Glyph glyph) private static booleanisAdvanceInvalid(Glyph glyph) voidsetActiveFilters(Set<FontFilterType> activeFilters) voidsetFonts(List<Font.FontFilterPair> allFonts, Set<FontFilterType> activeFilters)
-
Field Details
-
RANDOM
- Mappings:
Namespace Name Mixin selector named RANDOMLnet/minecraft/client/font/FontStorage;RANDOM:Lnet/minecraft/util/math/random/Random;intermediary field_2252Lnet/minecraft/class_377;field_2252:Lnet/minecraft/class_5819;official aLfjx;a:Lazh;
-
MAX_ADVANCE
private static final float MAX_ADVANCE- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_ADVANCELnet/minecraft/client/font/FontStorage;MAX_ADVANCE:Fintermediary field_39934Lnet/minecraft/class_377;field_39934:Fofficial bLfjx;b:F
-
textureManager
- Mappings:
Namespace Name Mixin selector named textureManagerLnet/minecraft/client/font/FontStorage;textureManager:Lnet/minecraft/client/texture/TextureManager;intermediary field_2248Lnet/minecraft/class_377;field_2248:Lnet/minecraft/class_1060;official cLfjx;c:Lgpc;
-
id
- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/client/font/FontStorage;id:Lnet/minecraft/util/Identifier;intermediary field_2246Lnet/minecraft/class_377;field_2246:Lnet/minecraft/class_2960;official dLfjx;d:Lalf;
-
blankGlyphRenderer
- Mappings:
Namespace Name Mixin selector named blankGlyphRendererLnet/minecraft/client/font/FontStorage;blankGlyphRenderer:Lnet/minecraft/client/font/GlyphRenderer;intermediary field_2256Lnet/minecraft/class_377;field_2256:Lnet/minecraft/class_382;official eLfjx;e:Lfkb;
-
whiteRectangleGlyphRenderer
- Mappings:
Namespace Name Mixin selector named whiteRectangleGlyphRendererLnet/minecraft/client/font/FontStorage;whiteRectangleGlyphRenderer:Lnet/minecraft/client/font/GlyphRenderer;intermediary field_20910Lnet/minecraft/class_377;field_20910:Lnet/minecraft/class_382;official fLfjx;f:Lfkb;
-
allFonts
- Mappings:
Namespace Name Mixin selector named allFontsLnet/minecraft/client/font/FontStorage;allFonts:Ljava/util/List;intermediary field_49120Lnet/minecraft/class_377;field_49120:Ljava/util/List;official gLfjx;g:Ljava/util/List;
-
availableFonts
- Mappings:
Namespace Name Mixin selector named availableFontsLnet/minecraft/client/font/FontStorage;availableFonts:Ljava/util/List;intermediary field_49121Lnet/minecraft/class_377;field_49121:Ljava/util/List;official hLfjx;h:Ljava/util/List;
-
glyphRendererCache
- Mappings:
Namespace Name Mixin selector named glyphRendererCacheLnet/minecraft/client/font/FontStorage;glyphRendererCache:Lnet/minecraft/client/font/GlyphContainer;intermediary field_2253Lnet/minecraft/class_377;field_2253:Lnet/minecraft/class_8532;official iLfjx;i:Lfju;
-
glyphCache
- Mappings:
Namespace Name Mixin selector named glyphCacheLnet/minecraft/client/font/FontStorage;glyphCache:Lnet/minecraft/client/font/GlyphContainer;intermediary field_2257Lnet/minecraft/class_377;field_2257:Lnet/minecraft/class_8532;official jLfjx;j:Lfju;
-
charactersByWidth
- Mappings:
Namespace Name Mixin selector named charactersByWidthLnet/minecraft/client/font/FontStorage;charactersByWidth:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;intermediary field_2249Lnet/minecraft/class_377;field_2249:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;official kLfjx;k:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
glyphAtlases
- Mappings:
Namespace Name Mixin selector named glyphAtlasesLnet/minecraft/client/font/FontStorage;glyphAtlases:Ljava/util/List;intermediary field_2254Lnet/minecraft/class_377;field_2254:Ljava/util/List;official lLfjx;l:Ljava/util/List;
-
-
Constructor Details
-
FontStorage
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/font/FontStorage;<init>(Lnet/minecraft/client/texture/TextureManager;Lnet/minecraft/util/Identifier;)Vintermediary <init>Lnet/minecraft/class_377;<init>(Lnet/minecraft/class_1060;Lnet/minecraft/class_2960;)Vofficial <init>Lfjx;<init>(Lgpc;Lalf;)V
-
-
Method Details
-
setFonts
- Mappings:
Namespace Name Mixin selector named setFontsLnet/minecraft/client/font/FontStorage;setFonts(Ljava/util/List;Ljava/util/Set;)Vintermediary method_2004Lnet/minecraft/class_377;method_2004(Ljava/util/List;Ljava/util/Set;)Vofficial aLfjx;a(Ljava/util/List;Ljava/util/Set;)V
-
setActiveFilters
- Mappings:
Namespace Name Mixin selector named setActiveFiltersLnet/minecraft/client/font/FontStorage;setActiveFilters(Ljava/util/Set;)Vintermediary method_57036Lnet/minecraft/class_377;method_57036(Ljava/util/Set;)Vofficial aLfjx;a(Ljava/util/Set;)V
-
clear
private void clear()- Mappings:
Namespace Name Mixin selector named clearLnet/minecraft/client/font/FontStorage;clear()Vintermediary method_57038Lnet/minecraft/class_377;method_57038()Vofficial cLfjx;c()V
-
applyFilters
private List<Font> applyFilters(List<Font.FontFilterPair> allFonts, Set<FontFilterType> activeFilters) - Mappings:
Namespace Name Mixin selector named applyFiltersLnet/minecraft/client/font/FontStorage;applyFilters(Ljava/util/List;Ljava/util/Set;)Ljava/util/List;intermediary method_57037Lnet/minecraft/class_377;method_57037(Ljava/util/List;Ljava/util/Set;)Ljava/util/List;official bLfjx;b(Ljava/util/List;Ljava/util/Set;)Ljava/util/List;
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
closeGlyphAtlases
private void closeGlyphAtlases()- Mappings:
Namespace Name Mixin selector named closeGlyphAtlasesLnet/minecraft/client/font/FontStorage;closeGlyphAtlases()Vintermediary method_2010Lnet/minecraft/class_377;method_2010()Vofficial dLfjx;d()V
-
isAdvanceInvalid
- Mappings:
Namespace Name Mixin selector named isAdvanceInvalidLnet/minecraft/client/font/FontStorage;isAdvanceInvalid(Lnet/minecraft/client/font/Glyph;)Zintermediary method_45079Lnet/minecraft/class_377;method_45079(Lnet/minecraft/class_379;)Zofficial bLfjx;b(Leyc;)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 named findGlyphLnet/minecraft/client/font/FontStorage;findGlyph(I)Lnet/minecraft/client/font/FontStorage$GlyphPair;intermediary method_40038Lnet/minecraft/class_377;method_40038(I)Lnet/minecraft/class_377$class_7647;official bLfjx;b(I)Lfjx$a;
-
getGlyph
Returns the glyph ofcodePoint.- Returns:
- the glyph of
codePoint - Implementation Note:
BuiltinEmptyGlyph.MISSINGis returned for missing code points.- Mappings:
Namespace Name Mixin selector named getGlyphLnet/minecraft/client/font/FontStorage;getGlyph(IZ)Lnet/minecraft/client/font/Glyph;intermediary method_2011Lnet/minecraft/class_377;method_2011(IZ)Lnet/minecraft/class_379;official aLfjx;a(IZ)Leyc;
-
findGlyphRenderer
- Mappings:
Namespace Name Mixin selector named findGlyphRendererLnet/minecraft/client/font/FontStorage;findGlyphRenderer(I)Lnet/minecraft/client/font/GlyphRenderer;intermediary method_41832Lnet/minecraft/class_377;method_41832(I)Lnet/minecraft/class_382;official cLfjx;c(I)Lfkb;
-
getGlyphRenderer
- Mappings:
Namespace Name Mixin selector named getGlyphRendererLnet/minecraft/client/font/FontStorage;getGlyphRenderer(I)Lnet/minecraft/client/font/GlyphRenderer;intermediary method_2014Lnet/minecraft/class_377;method_2014(I)Lnet/minecraft/class_382;official aLfjx;a(I)Lfkb;
-
getGlyphRenderer
- Mappings:
Namespace Name Mixin selector named getGlyphRendererLnet/minecraft/client/font/FontStorage;getGlyphRenderer(Lnet/minecraft/client/font/RenderableGlyph;)Lnet/minecraft/client/font/GlyphRenderer;intermediary method_2012Lnet/minecraft/class_377;method_2012(Lnet/minecraft/class_383;)Lnet/minecraft/class_382;official aLfjx;a(Leye;)Lfkb;
-
getObfuscatedGlyphRenderer
- Mappings:
Namespace Name Mixin selector named getObfuscatedGlyphRendererLnet/minecraft/client/font/FontStorage;getObfuscatedGlyphRenderer(Lnet/minecraft/client/font/Glyph;)Lnet/minecraft/client/font/GlyphRenderer;intermediary method_2013Lnet/minecraft/class_377;method_2013(Lnet/minecraft/class_379;)Lnet/minecraft/class_382;official aLfjx;a(Leyc;)Lfkb;
-
getId
- Mappings:
Namespace Name Mixin selector named getIdLnet/minecraft/client/font/FontStorage;getId()Lnet/minecraft/util/Identifier;intermediary method_57034Lnet/minecraft/class_377;method_57034()Lnet/minecraft/class_2960;official aLfjx;a()Lalf;
-
getRectangleRenderer
- Mappings:
Namespace Name Mixin selector named getRectangleRendererLnet/minecraft/client/font/FontStorage;getRectangleRenderer()Lnet/minecraft/client/font/GlyphRenderer;intermediary method_22943Lnet/minecraft/class_377;method_22943()Lnet/minecraft/class_382;official bLfjx;b()Lfkb;
-