@Environment(value=CLIENT) public class TextRenderer extends Object
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
TextRenderer.class_5232 |
| Modifier and Type | Field and Description |
|---|---|
private static Vector3f |
field_24237 |
private class_5225 |
field_24238 |
int |
fontHeight |
private Function<Identifier,FontStorage> |
fontStorage |
Random |
random |
private boolean |
rightToLeft |
| Constructor and Description |
|---|
TextRenderer(Function<Identifier,FontStorage> function) |
| Modifier and Type | Method and Description |
|---|---|
int |
draw(MatrixStack matrixStack,
String string,
float float2,
float float3,
int int2) |
int |
draw(Text text,
float x,
float y,
int color,
boolean shadow,
Matrix4f matrix,
VertexConsumerProvider vertexConsumerProvider,
boolean seeThrough,
int backgroundColor,
int light) |
private int |
draw(Text text,
float x,
float y,
int color,
Matrix4f matrix,
boolean shadow) |
private void |
drawGlyph(GlyphRenderer glyphRenderer,
boolean bold,
boolean italic,
float weight,
float x,
float y,
Matrix4f matrix,
VertexConsumer vertexConsumer,
float red,
float green,
float blue,
float alpha,
int light) |
private int |
drawInternal(Text text,
float x,
float y,
int color,
boolean shadow,
Matrix4f matrix,
VertexConsumerProvider vertexConsumerProvider,
boolean seeThrough,
int backgroundColor,
int light) |
private float |
drawLayer(String text,
float x,
float y,
int color,
boolean shadow,
Matrix4f matrix,
VertexConsumerProvider vertexConsumerProvider,
boolean seeThrough,
int underlineColor,
int light) |
void |
drawTrimmed(Text text,
int x,
int y,
int maxWidth,
int color) |
int |
drawWithShadow(MatrixStack matrixStack,
String string,
float float2,
float float3,
int int2) |
int |
getStringBoundedHeight(String text,
int maxWidth) |
int |
getStringWidth(String string) |
boolean |
isRightToLeft() |
private static int |
method_27515(int int2) |
int |
method_27517(MatrixStack matrixStack,
Text text,
float float2,
float float3,
int int2) |
private int |
method_27520(String string,
float float2,
float float3,
int int2,
Matrix4f matrix4f,
boolean bool,
boolean bool2) |
int |
method_27521(String string,
float float2,
float float3,
int int2,
boolean bool,
Matrix4f matrix4f,
VertexConsumerProvider vertexConsumerProvider,
boolean bool2,
int int3,
int int4) |
int |
method_27522(String string,
float float2,
float float3,
int int2,
boolean bool,
Matrix4f matrix4f,
VertexConsumerProvider vertexConsumerProvider,
boolean bool2,
int int3,
int int4,
boolean bool3) |
String |
method_27523(String string,
int int2) |
String |
method_27524(String string,
int int2,
boolean bool) |
int |
method_27525(Text text) |
private FontStorage |
method_27526(Identifier identifier) |
class_5225 |
method_27527() |
int |
method_27528(MatrixStack matrixStack,
Text text,
float float2,
float float3,
int int2) |
private int |
method_27529(String string,
float float2,
float float3,
int int2,
boolean bool,
Matrix4f matrix4f,
VertexConsumerProvider vertexConsumerProvider,
boolean bool2,
int int3,
int int4,
boolean bool3) |
private float |
method_27530(Text text,
float float2,
float float3,
int int2,
boolean bool,
Matrix4f matrix4f,
VertexConsumerProvider vertexConsumerProvider,
boolean bool2,
int int3,
int int4) |
String |
mirror(String text) |
void |
setRightToLeft(boolean rightToLeft) |
class_5250 |
trimToWidth(Text text,
int width) |
List<Text> |
wrapStringToWidthAsList(Text text,
int width) |
private static final Vector3f field_24237
public final int fontHeight
public final Random random
private final Function<Identifier,FontStorage> fontStorage
private boolean rightToLeft
private final class_5225 field_24238
public TextRenderer(Function<Identifier,FontStorage> function)
private FontStorage method_27526(Identifier identifier)
public int drawWithShadow(MatrixStack matrixStack, String string, float float2, float float3, int int2)
public int draw(MatrixStack matrixStack, String string, float float2, float float3, int int2)
public int method_27517(MatrixStack matrixStack, Text text, float float2, float float3, int int2)
public int method_27528(MatrixStack matrixStack, Text text, float float2, float float3, int int2)
private int method_27520(String string, float float2, float float3, int int2, Matrix4f matrix4f, boolean bool, boolean bool2)
public int method_27521(String string, float float2, float float3, int int2, boolean bool, Matrix4f matrix4f, VertexConsumerProvider vertexConsumerProvider, boolean bool2, int int3, int int4)
public int method_27522(String string, float float2, float float3, int int2, boolean bool, Matrix4f matrix4f, VertexConsumerProvider vertexConsumerProvider, boolean bool2, int int3, int int4, boolean bool3)
public int draw(Text text, float x, float y, int color, boolean shadow, Matrix4f matrix, VertexConsumerProvider vertexConsumerProvider, boolean seeThrough, int backgroundColor, int light)
private static int method_27515(int int2)
private int method_27529(String string, float float2, float float3, int int2, boolean bool, Matrix4f matrix4f, VertexConsumerProvider vertexConsumerProvider, boolean bool2, int int3, int int4, boolean bool3)
private int drawInternal(Text text, float x, float y, int color, boolean shadow, Matrix4f matrix, VertexConsumerProvider vertexConsumerProvider, boolean seeThrough, int backgroundColor, int light)
private float drawLayer(String text, float x, float y, int color, boolean shadow, Matrix4f matrix, VertexConsumerProvider vertexConsumerProvider, boolean seeThrough, int underlineColor, int light)
private float method_27530(Text text, float float2, float float3, int int2, boolean bool, Matrix4f matrix4f, VertexConsumerProvider vertexConsumerProvider, boolean bool2, int int3, int int4)
private void drawGlyph(GlyphRenderer glyphRenderer, boolean bold, boolean italic, float weight, float x, float y, Matrix4f matrix, VertexConsumer vertexConsumer, float red, float green, float blue, float alpha, int light)
public int getStringWidth(String string)
public int method_27525(Text text)
public class_5250 trimToWidth(Text text, int width)
public void drawTrimmed(Text text, int x, int y, int maxWidth, int color)
public int getStringBoundedHeight(String text, int maxWidth)
public void setRightToLeft(boolean rightToLeft)
public boolean isRightToLeft()
public class_5225 method_27527()