Class TextureGlyphProvider.Factory
java.lang.Object
net.minecraft.client.gui.fonts.providers.TextureGlyphProvider.Factory
- All Implemented Interfaces:
IGlyphProviderFactory
- Enclosing class:
- TextureGlyphProvider
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFactory
(ResourceLocation p_i49750_1_, int p_i49750_2_, int p_i49750_3_, List<int[]> p_i49750_4_) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(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 Details
-
texture
-
chars
-
height
private final int height -
ascent
private final int ascent
-
-
Constructor Details
-
Factory
public Factory(ResourceLocation p_i49750_1_, int p_i49750_2_, int p_i49750_3_, List<int[]> p_i49750_4_)
-
-
Method Details
-
fromJson
-
create
- 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_)
-