Class UnihexProvider
java.lang.Object
net.minecraft.client.gui.font.providers.UnihexProvider
- All Implemented Interfaces:
GlyphProvider
,AutoCloseable
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final record
static class
static final record
(package private) static final record
(package private) static final record
static interface
(package private) static final record
static interface
(package private) static final record
Nested classes/interfaces inherited from interface com.mojang.blaze3d.font.GlyphProvider
GlyphProvider.Conditional
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private final CodepointMap
<UnihexProvider.Glyph> (package private) static final org.slf4j.Logger
Fields inherited from interface com.mojang.blaze3d.font.GlyphProvider
BASELINE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
copyUntil
(InputStream p_284994_, it.unimi.dsi.fastutil.bytes.ByteList p_285351_, int p_285177_) private static int
decodeHex
(int p_284952_, byte p_285036_) (package private) static int
decodeHex
(int p_285205_, it.unimi.dsi.fastutil.bytes.ByteList p_285268_, int p_285345_) getGlyph
(int p_285239_) it.unimi.dsi.fastutil.ints.IntSet
(package private) static void
readFromStream
(InputStream p_285315_, UnihexProvider.ReaderOutput p_285353_) (package private) static void
unpackBitsToBytes
(IntBuffer p_285211_, int p_285508_, int p_285312_, int p_285412_) (package private) static void
unpackBitsToBytes
(IntBuffer p_285283_, UnihexProvider.LineData p_285485_, int p_284940_, int p_284950_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mojang.blaze3d.font.GlyphProvider
close
-
Field Details
-
LOGGER
static final org.slf4j.Logger LOGGER -
GLYPH_HEIGHT
private static final int GLYPH_HEIGHT- See Also:
-
DIGITS_PER_BYTE
private static final int DIGITS_PER_BYTE- See Also:
-
DIGITS_FOR_WIDTH_8
private static final int DIGITS_FOR_WIDTH_8- See Also:
-
DIGITS_FOR_WIDTH_16
private static final int DIGITS_FOR_WIDTH_16- See Also:
-
DIGITS_FOR_WIDTH_24
private static final int DIGITS_FOR_WIDTH_24- See Also:
-
DIGITS_FOR_WIDTH_32
private static final int DIGITS_FOR_WIDTH_32- See Also:
-
glyphs
-
-
Constructor Details
-
UnihexProvider
UnihexProvider(CodepointMap<UnihexProvider.Glyph> p_285457_)
-
-
Method Details
-
getGlyph
- Specified by:
getGlyph
in interfaceGlyphProvider
-
getSupportedGlyphs
public it.unimi.dsi.fastutil.ints.IntSet getSupportedGlyphs()- Specified by:
getSupportedGlyphs
in interfaceGlyphProvider
-
unpackBitsToBytes
-
unpackBitsToBytes
static void unpackBitsToBytes(IntBuffer p_285283_, UnihexProvider.LineData p_285485_, int p_284940_, int p_284950_) -
readFromStream
static void readFromStream(InputStream p_285315_, UnihexProvider.ReaderOutput p_285353_) throws IOException - Throws:
IOException
-
decodeHex
static int decodeHex(int p_285205_, it.unimi.dsi.fastutil.bytes.ByteList p_285268_, int p_285345_) -
decodeHex
private static int decodeHex(int p_284952_, byte p_285036_) -
copyUntil
private static boolean copyUntil(InputStream p_284994_, it.unimi.dsi.fastutil.bytes.ByteList p_285351_, int p_285177_) throws IOException - Throws:
IOException
-