net.minecraft.client.font

public class TextRenderer

net.minecraft.client.gui.Font
net.minecraft.class_327
net.minecraft.client.font.TextRenderer

Field summary

Modifier and TypeField
private static final float
EFFECT_DEPTH
field_32166
Z_INDEX
private static final float
OVER_EFFECT_DEPTH
field_60693
field_60693
private static final float
UNDER_EFFECT_DEPTH
field_60694
field_60694
public static final float
SHADOW_DEPTH
field_24237
FORWARD_SHIFT
public final int
lineHeight
field_2000
fontHeight
private final Random
random
field_2001
random
private final TextRenderer$GlyphsProvider
provider
field_61529
fonts
private final TextHandler
splitter
field_24238
handler

Constructor summary

ModifierConstructor
public (TextRenderer$GlyphsProvider fonts)

Method summary

Modifier and TypeMethod
private GlyphProvider
getGlyphSource(FontDescription fontLocation)
method_72732(class_11719 arg0)
getGlyphs(StyleSpriteSource source)
public String
bidirectionalShaping(String text)
method_1721(String arg0)
mirror(String text)
public void
drawInBatch(String str, float x, float y, int color, boolean dropShadow, org.joml.Matrix4fc pose, MultiBufferSource bufferSource, Font$DisplayMode displayMode, int backgroundColor, int packedLightCoords)
method_27521(String arg0, float arg1, float arg2, int arg3, boolean arg4, org.joml.Matrix4fc arg5, class_4597 arg6, class_327$class_6415 arg7, int arg8, int arg9)
draw(String string, float x, float y, int color, boolean shadow, org.joml.Matrix4fc matrix, VertexConsumerProvider vertexConsumers, TextRenderer$TextLayerType layerType, int backgroundColor, int light)
public void
drawInBatch(Component str, float x, float y, int color, boolean dropShadow, org.joml.Matrix4fc pose, MultiBufferSource bufferSource, Font$DisplayMode displayMode, int backgroundColor, int packedLightCoords)
method_27522(class_2561 arg0, float arg1, float arg2, int arg3, boolean arg4, org.joml.Matrix4fc arg5, class_4597 arg6, class_327$class_6415 arg7, int arg8, int arg9)
draw(Text text, float x, float y, int color, boolean shadow, org.joml.Matrix4fc matrix, VertexConsumerProvider vertexConsumers, TextRenderer$TextLayerType layerType, int backgroundColor, int light)
public void
drawInBatch(FormattedCharSequence str, float x, float y, int color, boolean dropShadow, org.joml.Matrix4fc pose, MultiBufferSource bufferSource, Font$DisplayMode displayMode, int backgroundColor, int packedLightCoords)
method_22942(class_5481 arg0, float arg1, float arg2, int arg3, boolean arg4, org.joml.Matrix4fc arg5, class_4597 arg6, class_327$class_6415 arg7, int arg8, int arg9)
draw(OrderedText text, float x, float y, int color, boolean shadow, org.joml.Matrix4fc matrix, VertexConsumerProvider vertexConsumers, TextRenderer$TextLayerType layerType, int backgroundColor, int light)
public void
drawInBatch8xOutline(FormattedCharSequence str, float x, float y, int color, int outlineColor, org.joml.Matrix4fc pose, MultiBufferSource bufferSource, int packedLightCoords)
method_37296(class_5481 arg0, float arg1, float arg2, int arg3, int arg4, org.joml.Matrix4fc arg5, class_4597 arg6, int arg7)
drawWithOutline(OrderedText text, float x, float y, int color, int outlineColor, org.joml.Matrix4fc matrix, VertexConsumerProvider vertexConsumers, int light)
private BakedGlyph
getGlyph(int codepoint, Style style)
method_72731(int arg0, class_2583 arg1)
getGlyph(int codePoint, Style style)
public TextRenderer$GlyphDrawable
prepareText(String text, float x, float y, int originalColor, boolean drawShadow, int backgroundColor)
method_71796(String arg0, float arg1, float arg2, int arg3, boolean arg4, int arg5)
prepare(String string, float x, float y, int color, boolean shadow, int backgroundColor)
public TextRenderer$GlyphDrawable
prepareText(FormattedCharSequence text, float x, float y, int originalColor, boolean drawShadow, boolean includeEmpty, int backgroundColor)
method_71795(class_5481 arg0, float arg1, float arg2, int arg3, boolean arg4, boolean arg5, int arg6)
prepare(OrderedText text, float x, float y, int color, boolean shadow, boolean trackEmpty, int backgroundColor)
public int
width(String str)
method_1727(String arg0)
getWidth(String text)
public int
width(FormattedText text)
method_27525(class_5348 arg0)
getWidth(StringVisitable text)
public int
width(FormattedCharSequence text)
method_30880(class_5481 arg0)
getWidth(OrderedText text)
public String
plainSubstrByWidth(String str, int width, boolean reverse)
method_27524(String arg0, int arg1, boolean arg2)
trimToWidth(String text, int maxWidth, boolean backwards)
public String
plainSubstrByWidth(String str, int width)
method_27523(String arg0, int arg1)
trimToWidth(String text, int maxWidth)
public StringVisitable
substrByWidth(FormattedText text, int width)
method_1714(class_5348 arg0, int arg1)
trimToWidth(StringVisitable text, int width)
public int
wordWrapHeight(FormattedText input, int textWidth)
method_44378(class_5348 arg0, int arg1)
getWrappedLinesHeight(StringVisitable text, int maxWidth)
public List<OrderedText>
split(FormattedText input, int maxWidth)
method_1728(class_5348 arg0, int arg1)
wrapLines(StringVisitable text, int width)
public List<StringVisitable>
splitIgnoringLanguage(FormattedText input, int maxWidth)
method_72101(class_5348 arg0, int arg1)
wrapLinesWithoutLanguage(StringVisitable text, int width)
public boolean
isBidirectional()
method_1726()
isRightToLeft()
public TextHandler
getSplitter()
method_27527()
getTextHandler()
private boolean
lambda$drawInBatch8xOutline$0(Font$PreparedTextBuilder arg0, float[] arg1, int arg2, float arg3, int arg4, int arg5, int arg6, Style arg7, int arg8)
method_37297(class_327$class_5232 arg0, float[] arg1, int arg2, float arg3, int arg4, int arg5, int arg6, class_2583 arg7, int arg8)
method_37297(TextRenderer$Drawer arg0, float[] arg1, int arg2, float arg3, int arg4, int arg5, int index, Style style, int codePoint)
private float
lambda$new$0(int arg0, Style arg1)
method_27516(int arg0, class_2583 arg1)
method_27516(int codePoint, Style style)