Package net.minecraft.client.font
Class UnicodeTextureFont
java.lang.Object
net.minecraft.client.font.UnicodeTextureFont
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Font
@Environment(CLIENT) public class UnicodeTextureFont extends Object implements Font
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UnicodeTextureFont.Loader
(package private) static class
UnicodeTextureFont.UnicodeTextureGlyph
-
Field Summary
Fields Modifier and Type Field Description private Map<Identifier,NativeImage>
images
private static Logger
LOGGER
private ResourceManager
resourceManager
private byte[]
sizes
private String
template
-
Constructor Summary
Constructors Constructor Description UnicodeTextureFont(ResourceManager resourceManager, byte[] sizes, String template)
-
Method Summary
Modifier and Type Method Description void
close()
private static int
getEnd(byte size)
RenderableGlyph
getGlyph(int codePoint)
private NativeImage
getGlyphImage(Identifier glyphId)
private Identifier
getImageId(int codePoint)
IntSet
getProvidedGlyphs()
Returns the set of code points for which this font can provide glyphs.private static int
getStart(byte size)
-
Field Details
-
LOGGER
-
resourceManager
-
sizes
private final byte[] sizes -
template
-
images
-
-
Constructor Details
-
UnicodeTextureFont
-
-
Method Details
-
close
public void close() -
getImageId
-
getGlyph
-
getProvidedGlyphs
Returns the set of code points for which this font can provide glyphs.- Specified by:
getProvidedGlyphs
in interfaceFont
- Returns:
- a set of integer code points.
-
getGlyphImage
-
getStart
private static int getStart(byte size) -
getEnd
private static int getEnd(byte size)
-