Class TextureGlyphProvider.Factory
- java.lang.Object
-
- net.minecraft.client.gui.fonts.providers.TextureGlyphProvider.Factory
-
- All Implemented Interfaces:
IGlyphProviderFactory
- Enclosing class:
- TextureGlyphProvider
public static class TextureGlyphProvider.Factory extends java.lang.Object implements IGlyphProviderFactory
-
-
Field Summary
Fields Modifier and Type Field Description private int
ascent
private java.util.List<int[]>
chars
private int
height
private ResourceLocation
texture
-
Constructor Summary
Constructors Constructor Description Factory(ResourceLocation p_i49750_1_, int p_i49750_2_, int p_i49750_3_, java.util.List<int[]> p_i49750_4_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IGlyphProvider
create(IResourceManager p_211246_1_)
static TextureGlyphProvider.Factory
fromJson(com.google.gson.JsonObject p_211633_0_)
private int
getActualGlyphWidth(NativeImage p_211632_1_, int p_211632_2_, int p_211632_3_, int p_211632_4_, int p_211632_5_)
-
-
-
Field Detail
-
texture
private final ResourceLocation texture
-
chars
private final java.util.List<int[]> chars
-
height
private final int height
-
ascent
private final int ascent
-
-
Constructor Detail
-
Factory
public Factory(ResourceLocation p_i49750_1_, int p_i49750_2_, int p_i49750_3_, java.util.List<int[]> p_i49750_4_)
-
-
Method Detail
-
fromJson
public static TextureGlyphProvider.Factory fromJson(com.google.gson.JsonObject p_211633_0_)
-
create
@Nullable public IGlyphProvider create(IResourceManager p_211246_1_)
- Specified by:
create
in interfaceIGlyphProviderFactory
-
getActualGlyphWidth
private int getActualGlyphWidth(NativeImage p_211632_1_, int p_211632_2_, int p_211632_3_, int p_211632_4_, int p_211632_5_)
-
-