@Environment(value=CLIENT)
public interface FontRenderer
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.client.render.VertexConsumer |
chooseVertexConsumer(net.minecraft.client.render.VertexConsumerProvider vcp) |
void |
drawString(java.lang.CharSequence value)
Render the specified string.
|
void |
drawString(java.lang.CharSequence value,
int maxChars)
Render up to the specified amount of characters of the specified string.
|
void |
drawString(net.minecraft.client.util.math.MatrixStack.Entry matrices,
net.minecraft.client.render.VertexConsumer vc,
int light,
int overlay,
int color,
java.lang.CharSequence value,
int maxChars) |
int |
getCharHeight()
Get the height of the characters drawn with the font renderer, in pixels.
|
int |
getCharWidth()
Get the width of the characters drawn with the font renderer, in pixels.
|
void drawString(java.lang.CharSequence value)
value - the string to render.void drawString(java.lang.CharSequence value,
int maxChars)
This is intended as a convenience method for clamped-width rendering, avoiding additional string operations such as substring.
value - the string to render.maxChars - the maximum number of characters to render.void drawString(net.minecraft.client.util.math.MatrixStack.Entry matrices,
net.minecraft.client.render.VertexConsumer vc,
int light,
int overlay,
int color,
java.lang.CharSequence value,
int maxChars)
net.minecraft.client.render.VertexConsumer chooseVertexConsumer(net.minecraft.client.render.VertexConsumerProvider vcp)
int getCharWidth()
int getCharHeight()