Package net.minecraft.client.font
Class BitmapFont
java.lang.Object
net.minecraft.client.font.BitmapFont
- All Implemented Interfaces:
Closeable,AutoCloseable,Font
@Environment(CLIENT) public class BitmapFont extends Object implements Font
- Mappings:
Namespace Name official dtqintermediary net/minecraft/class_386named net/minecraft/client/font/BitmapFont
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classBitmapFont.BitmapFontGlyphstatic classBitmapFont.Loader -
Field Summary
Fields Modifier and Type Field Description private Int2ObjectMap<BitmapFont.BitmapFontGlyph>glyphsprivate NativeImageimageprivate static LoggerLOGGER -
Constructor Summary
Constructors Modifier Constructor Description privateBitmapFont(NativeImage image, Int2ObjectMap<BitmapFont.BitmapFontGlyph> glyphs) -
Method Summary
Modifier and Type Method Description voidclose()RenderableGlyphgetGlyph(int codePoint)IntSetgetProvidedGlyphs()Returns the set of code points for which this font can provide glyphs.
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLdtq;a:Lorg/apache/logging/log4j/Logger;intermediary field_2286Lnet/minecraft/class_386;field_2286:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/font/BitmapFont;LOGGER:Lorg/apache/logging/log4j/Logger;
-
image
- Mappings:
Namespace Name Mixin selector official bLdtq;b:Ldky;intermediary field_2285Lnet/minecraft/class_386;field_2285:Lnet/minecraft/class_1011;named imageLnet/minecraft/client/font/BitmapFont;image:Lnet/minecraft/client/texture/NativeImage;
-
glyphs
- Mappings:
Namespace Name Mixin selector official cLdtq;c:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;intermediary field_2284Lnet/minecraft/class_386;field_2284:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;named glyphsLnet/minecraft/client/font/BitmapFont;glyphs:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
-
Constructor Details
-
BitmapFont
- Mappings:
Namespace Name Mixin selector official <init>Ldtq;<init>(Ldky;Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;)Vintermediary <init>Lnet/minecraft/class_386;<init>(Lnet/minecraft/class_1011;Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;)Vnamed <init>Lnet/minecraft/client/font/BitmapFont;<init>(Lnet/minecraft/client/texture/NativeImage;Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;)V
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceFont- Mappings:
Namespace Name Mixin selector official closeLdkg;close()Vintermediary closeLnet/minecraft/class_390;close()Vnamed closeLnet/minecraft/client/font/Font;close()V
-
getGlyph
-
getProvidedGlyphs
Returns the set of code points for which this font can provide glyphs.- Specified by:
getProvidedGlyphsin interfaceFont- Returns:
- a set of integer code points.
- Mappings:
Namespace Name Mixin selector official aLdkg;a()Lit/unimi/dsi/fastutil/ints/IntSet;intermediary method_27442Lnet/minecraft/class_390;method_27442()Lit/unimi/dsi/fastutil/ints/IntSet;named getProvidedGlyphsLnet/minecraft/client/font/Font;getProvidedGlyphs()Lit/unimi/dsi/fastutil/ints/IntSet;
-