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 classUnicodeTextureGlyphProvider.Factory(package private) static classUnicodeTextureGlyphProvider.GlpyhInfo
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.logging.log4j.LoggerLOGGERprivate IResourceManagerresourceManagerprivate byte[]sizesprivate java.lang.StringtexturePatternprivate 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 voidclose()IGlyphInfogetGlyph(int p_212248_1_)private static intgetLeft(byte p_212453_0_)private static intgetRight(byte p_212454_0_)private ResourceLocationgetSheetLocation(int p_238591_1_)it.unimi.dsi.fastutil.ints.IntSetgetSupportedGlyphs()private NativeImageloadTexture(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:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceIGlyphProvider
-
getSheetLocation
private ResourceLocation getSheetLocation(int p_238591_1_)
-
getGlyph
@Nullable public IGlyphInfo getGlyph(int p_212248_1_)
- Specified by:
getGlyphin interfaceIGlyphProvider
-
getSupportedGlyphs
public it.unimi.dsi.fastutil.ints.IntSet getSupportedGlyphs()
- Specified by:
getSupportedGlyphsin 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_)
-
-