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
-
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
-
image
-
glyphs
-
-
Constructor Details
-
BitmapFont
-
-
Method Details
-
close
public void close() -
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.
-