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/FontStorage
intermediary net/minecraft/class_377
official fqx
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate List
<Font.FontFilterPair> private final GlyphContainer
<BakedGlyph> private BakedGlyph
private final Int2ObjectMap
<IntList> private final List
<GlyphAtlasTexture> private final IntFunction
<BakedGlyph> private final GlyphContainer
<FontStorage.GlyphPair> private final IntFunction
<FontStorage.GlyphPair> private final Identifier
private static final Logger
private static final float
private static final Random
private final TextureManager
private BakedGlyph
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplyFilters
(List<Font.FontFilterPair> allFonts, Set<FontFilterType> activeFilters) private BakedGlyph
bake
(int codePoint) private BakedGlyph
private void
clear()
void
close()
private void
private FontStorage.GlyphPair
findGlyph
(int codePoint) Returns the glyph ofcodePoint
.getBaked
(int codePoint) getGlyph
(int codePoint, boolean validateAdvance) Returns the glyph ofcodePoint
.getId()
getObfuscatedBakedGlyph
(Glyph glyph) private static boolean
isAdvanceInvalid
(Glyph glyph) void
setActiveFilters
(Set<FontFilterType> activeFilters) void
setFonts
(List<Font.FontFilterPair> allFonts, Set<FontFilterType> activeFilters)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/client/font/FontStorage;LOGGER:Lorg/slf4j/Logger;
intermediary field_54959
Lnet/minecraft/class_377;field_54959:Lorg/slf4j/Logger;
official a
Lfqx;a:Lorg/slf4j/Logger;
-
RANDOM
- Mappings:
Namespace Name Mixin selector named RANDOM
Lnet/minecraft/client/font/FontStorage;RANDOM:Lnet/minecraft/util/math/random/Random;
intermediary field_2252
Lnet/minecraft/class_377;field_2252:Lnet/minecraft/class_5819;
official b
Lfqx;b:Lbam;
-
MAX_ADVANCE
private static final float MAX_ADVANCE- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_ADVANCE
Lnet/minecraft/client/font/FontStorage;MAX_ADVANCE:F
intermediary field_39934
Lnet/minecraft/class_377;field_39934:F
official c
Lfqx;c:F
-
textureManager
- Mappings:
Namespace Name Mixin selector named textureManager
Lnet/minecraft/client/font/FontStorage;textureManager:Lnet/minecraft/client/texture/TextureManager;
intermediary field_2248
Lnet/minecraft/class_377;field_2248:Lnet/minecraft/class_1060;
official d
Lfqx;d:Lhbl;
-
id
- Mappings:
Namespace Name Mixin selector named id
Lnet/minecraft/client/font/FontStorage;id:Lnet/minecraft/util/Identifier;
intermediary field_2246
Lnet/minecraft/class_377;field_2246:Lnet/minecraft/class_2960;
official e
Lfqx;e:Lalz;
-
blankBakedGlyph
- Mappings:
Namespace Name Mixin selector named blankBakedGlyph
Lnet/minecraft/client/font/FontStorage;blankBakedGlyph:Lnet/minecraft/client/font/BakedGlyph;
intermediary field_2256
Lnet/minecraft/class_377;field_2256:Lnet/minecraft/class_382;
official f
Lfqx;f:Lfrb;
-
whiteRectangleBakedGlyph
- Mappings:
Namespace Name Mixin selector named whiteRectangleBakedGlyph
Lnet/minecraft/client/font/FontStorage;whiteRectangleBakedGlyph:Lnet/minecraft/client/font/BakedGlyph;
intermediary field_20910
Lnet/minecraft/class_377;field_20910:Lnet/minecraft/class_382;
official g
Lfqx;g:Lfrb;
-
allFonts
- Mappings:
Namespace Name Mixin selector named allFonts
Lnet/minecraft/client/font/FontStorage;allFonts:Ljava/util/List;
intermediary field_49120
Lnet/minecraft/class_377;field_49120:Ljava/util/List;
official h
Lfqx;h:Ljava/util/List;
-
availableFonts
- Mappings:
Namespace Name Mixin selector named availableFonts
Lnet/minecraft/client/font/FontStorage;availableFonts:Ljava/util/List;
intermediary field_49121
Lnet/minecraft/class_377;field_49121:Ljava/util/List;
official i
Lfqx;i:Ljava/util/List;
-
bakedGlyphCache
- Mappings:
Namespace Name Mixin selector named bakedGlyphCache
Lnet/minecraft/client/font/FontStorage;bakedGlyphCache:Lnet/minecraft/client/font/GlyphContainer;
intermediary field_2253
Lnet/minecraft/class_377;field_2253:Lnet/minecraft/class_8532;
official j
Lfqx;j:Lfqu;
-
glyphCache
- Mappings:
Namespace Name Mixin selector named glyphCache
Lnet/minecraft/client/font/FontStorage;glyphCache:Lnet/minecraft/client/font/GlyphContainer;
intermediary field_2257
Lnet/minecraft/class_377;field_2257:Lnet/minecraft/class_8532;
official k
Lfqx;k:Lfqu;
-
charactersByWidth
- Mappings:
Namespace Name Mixin selector named charactersByWidth
Lnet/minecraft/client/font/FontStorage;charactersByWidth:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
intermediary field_2249
Lnet/minecraft/class_377;field_2249:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
official l
Lfqx;l:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
glyphAtlases
- Mappings:
Namespace Name Mixin selector named glyphAtlases
Lnet/minecraft/client/font/FontStorage;glyphAtlases:Ljava/util/List;
intermediary field_2254
Lnet/minecraft/class_377;field_2254:Ljava/util/List;
official m
Lfqx;m:Ljava/util/List;
-
glyphFinder
- Mappings:
Namespace Name Mixin selector named glyphFinder
Lnet/minecraft/client/font/FontStorage;glyphFinder:Ljava/util/function/IntFunction;
intermediary field_54819
Lnet/minecraft/class_377;field_54819:Ljava/util/function/IntFunction;
official n
Lfqx;n:Ljava/util/function/IntFunction;
-
glyphBaker
- Mappings:
Namespace Name Mixin selector named glyphBaker
Lnet/minecraft/client/font/FontStorage;glyphBaker:Ljava/util/function/IntFunction;
intermediary field_54820
Lnet/minecraft/class_377;field_54820:Ljava/util/function/IntFunction;
official o
Lfqx;o:Ljava/util/function/IntFunction;
-
-
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;)V
intermediary <init>
Lnet/minecraft/class_377;<init>(Lnet/minecraft/class_1060;Lnet/minecraft/class_2960;)V
official <init>
Lfqx;<init>(Lhbl;Lalz;)V
-
-
Method Details
-
setFonts
- Mappings:
Namespace Name Mixin selector named setFonts
Lnet/minecraft/client/font/FontStorage;setFonts(Ljava/util/List;Ljava/util/Set;)V
intermediary method_2004
Lnet/minecraft/class_377;method_2004(Ljava/util/List;Ljava/util/Set;)V
official a
Lfqx;a(Ljava/util/List;Ljava/util/Set;)V
-
setActiveFilters
- Mappings:
Namespace Name Mixin selector named setActiveFilters
Lnet/minecraft/client/font/FontStorage;setActiveFilters(Ljava/util/Set;)V
intermediary method_57036
Lnet/minecraft/class_377;method_57036(Ljava/util/Set;)V
official a
Lfqx;a(Ljava/util/Set;)V
-
clear
private void clear()- Mappings:
Namespace Name Mixin selector named clear
Lnet/minecraft/client/font/FontStorage;clear()V
intermediary method_57038
Lnet/minecraft/class_377;method_57038()V
official c
Lfqx;c()V
-
applyFilters
private List<Font> applyFilters(List<Font.FontFilterPair> allFonts, Set<FontFilterType> activeFilters) - Mappings:
Namespace Name Mixin selector named applyFilters
Lnet/minecraft/client/font/FontStorage;applyFilters(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;
official b
Lfqx;b(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 named closeGlyphAtlases
Lnet/minecraft/client/font/FontStorage;closeGlyphAtlases()V
intermediary method_2010
Lnet/minecraft/class_377;method_2010()V
official d
Lfqx;d()V
-
isAdvanceInvalid
- Mappings:
Namespace Name Mixin selector named isAdvanceInvalid
Lnet/minecraft/client/font/FontStorage;isAdvanceInvalid(Lnet/minecraft/client/font/Glyph;)Z
intermediary method_45079
Lnet/minecraft/class_377;method_45079(Lnet/minecraft/class_379;)Z
official b
Lfqx;b(Lfep;)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 findGlyph
Lnet/minecraft/client/font/FontStorage;findGlyph(I)Lnet/minecraft/client/font/FontStorage$GlyphPair;
intermediary method_40038
Lnet/minecraft/class_377;method_40038(I)Lnet/minecraft/class_377$class_7647;
official b
Lfqx;b(I)Lfqx$a;
-
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 named getGlyph
Lnet/minecraft/client/font/FontStorage;getGlyph(IZ)Lnet/minecraft/client/font/Glyph;
intermediary method_2011
Lnet/minecraft/class_377;method_2011(IZ)Lnet/minecraft/class_379;
official a
Lfqx;a(IZ)Lfep;
-
bake
- Mappings:
Namespace Name Mixin selector named bake
Lnet/minecraft/client/font/FontStorage;bake(I)Lnet/minecraft/client/font/BakedGlyph;
intermediary method_41832
Lnet/minecraft/class_377;method_41832(I)Lnet/minecraft/class_382;
official c
Lfqx;c(I)Lfrb;
-
getBaked
- Mappings:
Namespace Name Mixin selector named getBaked
Lnet/minecraft/client/font/FontStorage;getBaked(I)Lnet/minecraft/client/font/BakedGlyph;
intermediary method_2014
Lnet/minecraft/class_377;method_2014(I)Lnet/minecraft/class_382;
official a
Lfqx;a(I)Lfrb;
-
bake
- Mappings:
Namespace Name Mixin selector named bake
Lnet/minecraft/client/font/FontStorage;bake(Lnet/minecraft/client/font/RenderableGlyph;)Lnet/minecraft/client/font/BakedGlyph;
intermediary method_2012
Lnet/minecraft/class_377;method_2012(Lnet/minecraft/class_383;)Lnet/minecraft/class_382;
official a
Lfqx;a(Lfer;)Lfrb;
-
getObfuscatedBakedGlyph
- Mappings:
Namespace Name Mixin selector named getObfuscatedBakedGlyph
Lnet/minecraft/client/font/FontStorage;getObfuscatedBakedGlyph(Lnet/minecraft/client/font/Glyph;)Lnet/minecraft/client/font/BakedGlyph;
intermediary method_2013
Lnet/minecraft/class_377;method_2013(Lnet/minecraft/class_379;)Lnet/minecraft/class_382;
official a
Lfqx;a(Lfep;)Lfrb;
-
getId
- Mappings:
Namespace Name Mixin selector named getId
Lnet/minecraft/client/font/FontStorage;getId()Lnet/minecraft/util/Identifier;
intermediary method_57034
Lnet/minecraft/class_377;method_57034()Lnet/minecraft/class_2960;
official a
Lfqx;a()Lalz;
-
getRectangleBakedGlyph
- Mappings:
Namespace Name Mixin selector named getRectangleBakedGlyph
Lnet/minecraft/client/font/FontStorage;getRectangleBakedGlyph()Lnet/minecraft/client/font/BakedGlyph;
intermediary method_22943
Lnet/minecraft/class_377;method_22943()Lnet/minecraft/class_382;
official b
Lfqx;b()Lfrb;
-