public static class TextureGlyphProvider.Factory extends java.lang.Object implements IGlyphProviderFactory
Modifier and Type | Field and Description |
---|---|
private int |
ascent |
private java.util.List<java.lang.String> |
chars |
private ResourceLocation |
file |
private int |
height |
Constructor and Description |
---|
Factory(ResourceLocation textureLocationIn,
int heightIn,
int ascentIn,
java.util.List<java.lang.String> listCharRowsIn) |
Modifier and Type | Method and Description |
---|---|
IGlyphProvider |
create(IResourceManager resourceManagerIn) |
static TextureGlyphProvider.Factory |
deserialize(com.google.gson.JsonObject jsonIn) |
private int |
getCharacterWidth(NativeImage nativeImageIn,
int charWidthIn,
int charHeightInsp,
int columnIn,
int rowIn) |
private final ResourceLocation file
private final java.util.List<java.lang.String> chars
private final int height
private final int ascent
public Factory(ResourceLocation textureLocationIn, int heightIn, int ascentIn, java.util.List<java.lang.String> listCharRowsIn)
public static TextureGlyphProvider.Factory deserialize(com.google.gson.JsonObject jsonIn)
@Nullable public IGlyphProvider create(IResourceManager resourceManagerIn)
create
in interface IGlyphProviderFactory
private int getCharacterWidth(NativeImage nativeImageIn, int charWidthIn, int charHeightInsp, int columnIn, int rowIn)