Package net.minecraft.client.font
Class FontStorage
java.lang.Object
net.minecraft.client.font.FontStorage
- All Implemented Interfaces:
AutoCloseable
- Mappings:
Namespace Name official fhv
intermediary net/minecraft/class_377
named net/minecraft/client/font/FontStorage
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List
<Font.FontFilterPair> private GlyphRenderer
private final Int2ObjectMap
<IntList> private final List
<GlyphAtlasTexture> private final GlyphContainer
<FontStorage.GlyphPair> private final GlyphContainer
<GlyphRenderer> private final Identifier
private static final float
private static final Random
private final TextureManager
private GlyphRenderer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyFilters
(List<Font.FontFilterPair> allFonts, Set<FontFilterType> activeFilters) private void
clear()
void
close()
private void
private FontStorage.GlyphPair
findGlyph
(int codePoint) Returns the glyph ofcodePoint
.private GlyphRenderer
findGlyphRenderer
(int codePoint) getGlyph
(int codePoint, boolean validateAdvance) Returns the glyph ofcodePoint
.getGlyphRenderer
(int codePoint) private GlyphRenderer
getId()
getObfuscatedGlyphRenderer
(Glyph glyph) private static boolean
isAdvanceInvalid
(Glyph glyph) void
setActiveFilters
(Set<FontFilterType> activeFilters) void
setFonts
(List<Font.FontFilterPair> allFonts, Set<FontFilterType> activeFilters)
-
Field Details
-
RANDOM
- Mappings:
Namespace Name Mixin selector official a
Lfhv;a:Layg;
intermediary field_2252
Lnet/minecraft/class_377;field_2252:Lnet/minecraft/class_5819;
named RANDOM
Lnet/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 official b
Lfhv;b:F
intermediary field_39934
Lnet/minecraft/class_377;field_39934:F
named MAX_ADVANCE
Lnet/minecraft/client/font/FontStorage;MAX_ADVANCE:F
-
textureManager
- Mappings:
Namespace Name Mixin selector official c
Lfhv;c:Lgmz;
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 d
Lfhv;d:Lakh;
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 e
Lfhv;e:Lfhz;
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 f
Lfhv;f:Lfhz;
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;
-
allFonts
- Mappings:
Namespace Name Mixin selector official g
Lfhv;g:Ljava/util/List;
intermediary field_49120
Lnet/minecraft/class_377;field_49120:Ljava/util/List;
named allFonts
Lnet/minecraft/client/font/FontStorage;allFonts:Ljava/util/List;
-
availableFonts
- Mappings:
Namespace Name Mixin selector official h
Lfhv;h:Ljava/util/List;
intermediary field_49121
Lnet/minecraft/class_377;field_49121:Ljava/util/List;
named availableFonts
Lnet/minecraft/client/font/FontStorage;availableFonts:Ljava/util/List;
-
glyphRendererCache
- Mappings:
Namespace Name Mixin selector official i
Lfhv;i:Lfhs;
intermediary field_2253
Lnet/minecraft/class_377;field_2253:Lnet/minecraft/class_8532;
named glyphRendererCache
Lnet/minecraft/client/font/FontStorage;glyphRendererCache:Lnet/minecraft/client/font/GlyphContainer;
-
glyphCache
- Mappings:
Namespace Name Mixin selector official j
Lfhv;j:Lfhs;
intermediary field_2257
Lnet/minecraft/class_377;field_2257:Lnet/minecraft/class_8532;
named glyphCache
Lnet/minecraft/client/font/FontStorage;glyphCache:Lnet/minecraft/client/font/GlyphContainer;
-
charactersByWidth
- Mappings:
Namespace Name Mixin selector official k
Lfhv;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
Lfhv;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>
Lfhv;<init>(Lgmz;Lakh;)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
Lfhv;a(Ljava/util/List;Ljava/util/Set;)V
intermediary method_2004
Lnet/minecraft/class_377;method_2004(Ljava/util/List;Ljava/util/Set;)V
named setFonts
Lnet/minecraft/client/font/FontStorage;setFonts(Ljava/util/List;Ljava/util/Set;)V
-
setActiveFilters
- Mappings:
Namespace Name Mixin selector official a
Lfhv;a(Ljava/util/Set;)V
intermediary method_57036
Lnet/minecraft/class_377;method_57036(Ljava/util/Set;)V
named setActiveFilters
Lnet/minecraft/client/font/FontStorage;setActiveFilters(Ljava/util/Set;)V
-
clear
private void clear()- Mappings:
Namespace Name Mixin selector official c
Lfhv;c()V
intermediary method_57038
Lnet/minecraft/class_377;method_57038()V
named clear
Lnet/minecraft/client/font/FontStorage;clear()V
-
applyFilters
private List<Font> applyFilters(List<Font.FontFilterPair> allFonts, Set<FontFilterType> activeFilters) - Mappings:
Namespace Name Mixin selector official b
Lfhv;b(Ljava/util/List;Ljava/util/Set;)Ljava/util/List;
intermediary method_57037
Lnet/minecraft/class_377;method_57037(Ljava/util/List;Ljava/util/Set;)Ljava/util/List;
named applyFilters
Lnet/minecraft/client/font/FontStorage;applyFilters(Ljava/util/List;Ljava/util/Set;)Ljava/util/List;
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
closeGlyphAtlases
private void closeGlyphAtlases()- Mappings:
Namespace Name Mixin selector official d
Lfhv;d()V
intermediary method_2010
Lnet/minecraft/class_377;method_2010()V
named closeGlyphAtlases
Lnet/minecraft/client/font/FontStorage;closeGlyphAtlases()V
-
isAdvanceInvalid
- Mappings:
Namespace Name Mixin selector official b
Lfhv;b(Levz;)Z
intermediary method_45079
Lnet/minecraft/class_377;method_45079(Lnet/minecraft/class_379;)Z
named isAdvanceInvalid
Lnet/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 official b
Lfhv;b(I)Lfhv$a;
intermediary method_40038
Lnet/minecraft/class_377;method_40038(I)Lnet/minecraft/class_377$class_7647;
named findGlyph
Lnet/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.MISSING
is returned for missing code points.- Mappings:
Namespace Name Mixin selector official a
Lfhv;a(IZ)Levz;
intermediary method_2011
Lnet/minecraft/class_377;method_2011(IZ)Lnet/minecraft/class_379;
named getGlyph
Lnet/minecraft/client/font/FontStorage;getGlyph(IZ)Lnet/minecraft/client/font/Glyph;
-
findGlyphRenderer
- Mappings:
Namespace Name Mixin selector official c
Lfhv;c(I)Lfhz;
intermediary method_41832
Lnet/minecraft/class_377;method_41832(I)Lnet/minecraft/class_382;
named findGlyphRenderer
Lnet/minecraft/client/font/FontStorage;findGlyphRenderer(I)Lnet/minecraft/client/font/GlyphRenderer;
-
getGlyphRenderer
- Mappings:
Namespace Name Mixin selector official a
Lfhv;a(I)Lfhz;
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
Lfhv;a(Lewb;)Lfhz;
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
Lfhv;a(Levz;)Lfhz;
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;
-
getId
- Mappings:
Namespace Name Mixin selector official a
Lfhv;a()Lakh;
intermediary method_57034
Lnet/minecraft/class_377;method_57034()Lnet/minecraft/class_2960;
named getId
Lnet/minecraft/client/font/FontStorage;getId()Lnet/minecraft/util/Identifier;
-
getRectangleRenderer
- Mappings:
Namespace Name Mixin selector official b
Lfhv;b()Lfhz;
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;
-