Package net.minecraft.client.gui
Class FontRenderer
- java.lang.Object
-
- net.minecraft.client.gui.FontRenderer
-
public class FontRenderer extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
FontRenderer.CharacterRenderer
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Function<ResourceLocation,Font>
fonts
int
lineHeight
java.util.Random
random
private static Vector3f
SHADOW_OFFSET
private CharacterManager
splitter
-
Constructor Summary
Constructors Constructor Description FontRenderer(java.util.function.Function<ResourceLocation,Font> p_i232249_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static int
adjustColor(int p_238403_0_)
java.lang.String
bidirectionalShaping(java.lang.String p_147647_1_)
int
draw(MatrixStack p_238421_1_, java.lang.String p_238421_2_, float p_238421_3_, float p_238421_4_, int p_238421_5_)
int
draw(MatrixStack p_238422_1_, IReorderingProcessor p_238422_2_, float p_238422_3_, float p_238422_4_, int p_238422_5_)
int
draw(MatrixStack p_243248_1_, ITextComponent p_243248_2_, float p_243248_3_, float p_243248_4_, int p_243248_5_)
int
drawInBatch(java.lang.String p_228079_1_, float p_228079_2_, float p_228079_3_, int p_228079_4_, boolean p_228079_5_, Matrix4f p_228079_6_, IRenderTypeBuffer p_228079_7_, boolean p_228079_8_, int p_228079_9_, int p_228079_10_)
int
drawInBatch(java.lang.String p_238411_1_, float p_238411_2_, float p_238411_3_, int p_238411_4_, boolean p_238411_5_, Matrix4f p_238411_6_, IRenderTypeBuffer p_238411_7_, boolean p_238411_8_, int p_238411_9_, int p_238411_10_, boolean p_238411_11_)
int
drawInBatch(IReorderingProcessor p_238416_1_, float p_238416_2_, float p_238416_3_, int p_238416_4_, boolean p_238416_5_, Matrix4f p_238416_6_, IRenderTypeBuffer p_238416_7_, boolean p_238416_8_, int p_238416_9_, int p_238416_10_)
int
drawInBatch(ITextComponent p_243247_1_, float p_243247_2_, float p_243247_3_, int p_243247_4_, boolean p_243247_5_, Matrix4f p_243247_6_, IRenderTypeBuffer p_243247_7_, boolean p_243247_8_, int p_243247_9_, int p_243247_10_)
private int
drawInternal(java.lang.String p_238423_1_, float p_238423_2_, float p_238423_3_, int p_238423_4_, boolean p_238423_5_, Matrix4f p_238423_6_, IRenderTypeBuffer p_238423_7_, boolean p_238423_8_, int p_238423_9_, int p_238423_10_, boolean p_238423_11_)
private int
drawInternal(java.lang.String p_228078_1_, float p_228078_2_, float p_228078_3_, int p_228078_4_, Matrix4f p_228078_5_, boolean p_228078_6_, boolean p_228078_7_)
private int
drawInternal(IReorderingProcessor p_238424_1_, float p_238424_2_, float p_238424_3_, int p_238424_4_, boolean p_238424_5_, Matrix4f p_238424_6_, IRenderTypeBuffer p_238424_7_, boolean p_238424_8_, int p_238424_9_, int p_238424_10_)
private int
drawInternal(IReorderingProcessor p_238415_1_, float p_238415_2_, float p_238415_3_, int p_238415_4_, Matrix4f p_238415_5_, boolean p_238415_6_)
int
drawShadow(MatrixStack p_238405_1_, java.lang.String p_238405_2_, float p_238405_3_, float p_238405_4_, int p_238405_5_)
int
drawShadow(MatrixStack p_238406_1_, java.lang.String p_238406_2_, float p_238406_3_, float p_238406_4_, int p_238406_5_, boolean p_238406_6_)
int
drawShadow(MatrixStack p_238407_1_, IReorderingProcessor p_238407_2_, float p_238407_3_, float p_238407_4_, int p_238407_5_)
int
drawShadow(MatrixStack p_243246_1_, ITextComponent p_243246_2_, float p_243246_3_, float p_243246_4_, int p_243246_5_)
void
drawWordWrap(ITextProperties p_238418_1_, int p_238418_2_, int p_238418_3_, int p_238418_4_, int p_238418_5_)
private Font
getFontSet(ResourceLocation p_238419_1_)
CharacterManager
getSplitter()
boolean
isBidirectional()
java.lang.String
plainSubstrByWidth(java.lang.String p_238412_1_, int p_238412_2_)
java.lang.String
plainSubstrByWidth(java.lang.String p_238413_1_, int p_238413_2_, boolean p_238413_3_)
private void
renderChar(TexturedGlyph p_228077_1_, boolean p_228077_2_, boolean p_228077_3_, float p_228077_4_, float p_228077_5_, float p_228077_6_, Matrix4f p_228077_7_, IVertexBuilder p_228077_8_, float p_228077_9_, float p_228077_10_, float p_228077_11_, float p_228077_12_, int p_228077_13_)
private float
renderText(java.lang.String p_228081_1_, float p_228081_2_, float p_228081_3_, int p_228081_4_, boolean p_228081_5_, Matrix4f p_228081_6_, IRenderTypeBuffer p_228081_7_, boolean p_228081_8_, int p_228081_9_, int p_228081_10_)
private float
renderText(IReorderingProcessor p_238426_1_, float p_238426_2_, float p_238426_3_, int p_238426_4_, boolean p_238426_5_, Matrix4f p_238426_6_, IRenderTypeBuffer p_238426_7_, boolean p_238426_8_, int p_238426_9_, int p_238426_10_)
java.util.List<IReorderingProcessor>
split(ITextProperties p_238425_1_, int p_238425_2_)
ITextProperties
substrByWidth(ITextProperties p_238417_1_, int p_238417_2_)
int
width(java.lang.String p_78256_1_)
int
width(IReorderingProcessor p_243245_1_)
int
width(ITextProperties p_238414_1_)
int
wordWrapHeight(java.lang.String p_78267_1_, int p_78267_2_)
-
-
-
Field Detail
-
SHADOW_OFFSET
private static final Vector3f SHADOW_OFFSET
-
lineHeight
public final int lineHeight
- See Also:
- Constant Field Values
-
random
public final java.util.Random random
-
fonts
private final java.util.function.Function<ResourceLocation,Font> fonts
-
splitter
private final CharacterManager splitter
-
-
Constructor Detail
-
FontRenderer
public FontRenderer(java.util.function.Function<ResourceLocation,Font> p_i232249_1_)
-
-
Method Detail
-
getFontSet
private Font getFontSet(ResourceLocation p_238419_1_)
-
drawShadow
public int drawShadow(MatrixStack p_238405_1_, java.lang.String p_238405_2_, float p_238405_3_, float p_238405_4_, int p_238405_5_)
-
drawShadow
public int drawShadow(MatrixStack p_238406_1_, java.lang.String p_238406_2_, float p_238406_3_, float p_238406_4_, int p_238406_5_, boolean p_238406_6_)
-
draw
public int draw(MatrixStack p_238421_1_, java.lang.String p_238421_2_, float p_238421_3_, float p_238421_4_, int p_238421_5_)
-
drawShadow
public int drawShadow(MatrixStack p_238407_1_, IReorderingProcessor p_238407_2_, float p_238407_3_, float p_238407_4_, int p_238407_5_)
-
drawShadow
public int drawShadow(MatrixStack p_243246_1_, ITextComponent p_243246_2_, float p_243246_3_, float p_243246_4_, int p_243246_5_)
-
draw
public int draw(MatrixStack p_238422_1_, IReorderingProcessor p_238422_2_, float p_238422_3_, float p_238422_4_, int p_238422_5_)
-
draw
public int draw(MatrixStack p_243248_1_, ITextComponent p_243248_2_, float p_243248_3_, float p_243248_4_, int p_243248_5_)
-
bidirectionalShaping
public java.lang.String bidirectionalShaping(java.lang.String p_147647_1_)
-
drawInternal
private int drawInternal(java.lang.String p_228078_1_, float p_228078_2_, float p_228078_3_, int p_228078_4_, Matrix4f p_228078_5_, boolean p_228078_6_, boolean p_228078_7_)
-
drawInternal
private int drawInternal(IReorderingProcessor p_238415_1_, float p_238415_2_, float p_238415_3_, int p_238415_4_, Matrix4f p_238415_5_, boolean p_238415_6_)
-
drawInBatch
public int drawInBatch(java.lang.String p_228079_1_, float p_228079_2_, float p_228079_3_, int p_228079_4_, boolean p_228079_5_, Matrix4f p_228079_6_, IRenderTypeBuffer p_228079_7_, boolean p_228079_8_, int p_228079_9_, int p_228079_10_)
-
drawInBatch
public int drawInBatch(java.lang.String p_238411_1_, float p_238411_2_, float p_238411_3_, int p_238411_4_, boolean p_238411_5_, Matrix4f p_238411_6_, IRenderTypeBuffer p_238411_7_, boolean p_238411_8_, int p_238411_9_, int p_238411_10_, boolean p_238411_11_)
-
drawInBatch
public int drawInBatch(ITextComponent p_243247_1_, float p_243247_2_, float p_243247_3_, int p_243247_4_, boolean p_243247_5_, Matrix4f p_243247_6_, IRenderTypeBuffer p_243247_7_, boolean p_243247_8_, int p_243247_9_, int p_243247_10_)
-
drawInBatch
public int drawInBatch(IReorderingProcessor p_238416_1_, float p_238416_2_, float p_238416_3_, int p_238416_4_, boolean p_238416_5_, Matrix4f p_238416_6_, IRenderTypeBuffer p_238416_7_, boolean p_238416_8_, int p_238416_9_, int p_238416_10_)
-
adjustColor
private static int adjustColor(int p_238403_0_)
-
drawInternal
private int drawInternal(java.lang.String p_238423_1_, float p_238423_2_, float p_238423_3_, int p_238423_4_, boolean p_238423_5_, Matrix4f p_238423_6_, IRenderTypeBuffer p_238423_7_, boolean p_238423_8_, int p_238423_9_, int p_238423_10_, boolean p_238423_11_)
-
drawInternal
private int drawInternal(IReorderingProcessor p_238424_1_, float p_238424_2_, float p_238424_3_, int p_238424_4_, boolean p_238424_5_, Matrix4f p_238424_6_, IRenderTypeBuffer p_238424_7_, boolean p_238424_8_, int p_238424_9_, int p_238424_10_)
-
renderText
private float renderText(java.lang.String p_228081_1_, float p_228081_2_, float p_228081_3_, int p_228081_4_, boolean p_228081_5_, Matrix4f p_228081_6_, IRenderTypeBuffer p_228081_7_, boolean p_228081_8_, int p_228081_9_, int p_228081_10_)
-
renderText
private float renderText(IReorderingProcessor p_238426_1_, float p_238426_2_, float p_238426_3_, int p_238426_4_, boolean p_238426_5_, Matrix4f p_238426_6_, IRenderTypeBuffer p_238426_7_, boolean p_238426_8_, int p_238426_9_, int p_238426_10_)
-
renderChar
private void renderChar(TexturedGlyph p_228077_1_, boolean p_228077_2_, boolean p_228077_3_, float p_228077_4_, float p_228077_5_, float p_228077_6_, Matrix4f p_228077_7_, IVertexBuilder p_228077_8_, float p_228077_9_, float p_228077_10_, float p_228077_11_, float p_228077_12_, int p_228077_13_)
-
width
public int width(java.lang.String p_78256_1_)
-
width
public int width(ITextProperties p_238414_1_)
-
width
public int width(IReorderingProcessor p_243245_1_)
-
plainSubstrByWidth
public java.lang.String plainSubstrByWidth(java.lang.String p_238413_1_, int p_238413_2_, boolean p_238413_3_)
-
plainSubstrByWidth
public java.lang.String plainSubstrByWidth(java.lang.String p_238412_1_, int p_238412_2_)
-
substrByWidth
public ITextProperties substrByWidth(ITextProperties p_238417_1_, int p_238417_2_)
-
drawWordWrap
public void drawWordWrap(ITextProperties p_238418_1_, int p_238418_2_, int p_238418_3_, int p_238418_4_, int p_238418_5_)
-
wordWrapHeight
public int wordWrapHeight(java.lang.String p_78267_1_, int p_78267_2_)
-
split
public java.util.List<IReorderingProcessor> split(ITextProperties p_238425_1_, int p_238425_2_)
-
isBidirectional
public boolean isBidirectional()
-
getSplitter
public CharacterManager getSplitter()
-
-