Package net.minecraft.client.gui
Class FontRenderer
java.lang.Object
net.minecraft.client.gui.FontRenderer
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Function<ResourceLocation,
Font> final int
final Random
private static final Vector3f
private final CharacterManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
adjustColor
(int p_238403_0_) bidirectionalShaping
(String p_147647_1_) int
draw
(MatrixStack p_238421_1_, 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
(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
(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
(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
(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_, String p_238405_2_, float p_238405_3_, float p_238405_4_, int p_238405_5_) int
drawShadow
(MatrixStack p_238406_1_, 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_) boolean
plainSubstrByWidth
(String p_238412_1_, int p_238412_2_) plainSubstrByWidth
(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
(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_) split
(ITextProperties p_238425_1_, int p_238425_2_) substrByWidth
(ITextProperties p_238417_1_, int p_238417_2_) int
int
width
(IReorderingProcessor p_243245_1_) int
width
(ITextProperties p_238414_1_) int
wordWrapHeight
(String p_78267_1_, int p_78267_2_)
-
Field Details
-
SHADOW_OFFSET
-
lineHeight
public final int lineHeight- See Also:
-
random
-
fonts
-
splitter
-
-
Constructor Details
-
FontRenderer
-
-
Method Details
-
getFontSet
-
drawShadow
public int drawShadow(MatrixStack p_238405_1_, String p_238405_2_, float p_238405_3_, float p_238405_4_, int p_238405_5_) -
drawShadow
public int drawShadow(MatrixStack p_238406_1_, 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_, 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
-
drawInternal
-
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(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(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(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(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
-
width
-
width
-
plainSubstrByWidth
-
plainSubstrByWidth
-
substrByWidth
-
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
-
split
-
isBidirectional
public boolean isBidirectional() -
getSplitter
-