Class UnicodeTextureGlyphProvider
- java.lang.Object
-
- net.minecraft.client.gui.fonts.providers.UnicodeTextureGlyphProvider
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,IGlyphProvider
public class UnicodeTextureGlyphProvider extends java.lang.Object implements IGlyphProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UnicodeTextureGlyphProvider.Factory
(package private) static class
UnicodeTextureGlyphProvider.GlpyhInfo
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.logging.log4j.Logger
LOGGER
private IResourceManager
resourceManager
private byte[]
sizes
private java.lang.String
texturePattern
private java.util.Map<ResourceLocation,NativeImage>
textures
-
Constructor Summary
Constructors Constructor Description UnicodeTextureGlyphProvider(IResourceManager p_i49737_1_, byte[] p_i49737_2_, java.lang.String p_i49737_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
IGlyphInfo
getGlyph(int p_212248_1_)
private static int
getLeft(byte p_212453_0_)
private static int
getRight(byte p_212454_0_)
private ResourceLocation
getSheetLocation(int p_238591_1_)
it.unimi.dsi.fastutil.ints.IntSet
getSupportedGlyphs()
private NativeImage
loadTexture(ResourceLocation p_211255_1_)
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
resourceManager
private final IResourceManager resourceManager
-
sizes
private final byte[] sizes
-
texturePattern
private final java.lang.String texturePattern
-
textures
private final java.util.Map<ResourceLocation,NativeImage> textures
-
-
Constructor Detail
-
UnicodeTextureGlyphProvider
public UnicodeTextureGlyphProvider(IResourceManager p_i49737_1_, byte[] p_i49737_2_, java.lang.String p_i49737_3_)
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceIGlyphProvider
-
getSheetLocation
private ResourceLocation getSheetLocation(int p_238591_1_)
-
getGlyph
@Nullable public IGlyphInfo getGlyph(int p_212248_1_)
- Specified by:
getGlyph
in interfaceIGlyphProvider
-
getSupportedGlyphs
public it.unimi.dsi.fastutil.ints.IntSet getSupportedGlyphs()
- Specified by:
getSupportedGlyphs
in interfaceIGlyphProvider
-
loadTexture
@Nullable private NativeImage loadTexture(ResourceLocation p_211255_1_)
-
getLeft
private static int getLeft(byte p_212453_0_)
-
getRight
private static int getRight(byte p_212454_0_)
-
-