@Environment(value=CLIENT) public abstract class AbstractFontRenderer extends java.lang.Object implements FontRenderer
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.client.render.VertexConsumer |
chooseVertexConsumer(net.minecraft.client.render.VertexConsumerProvider vcp)
Choose a VertexConsumer appropriate for the given drawing parameters.
|
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,
java.lang.CharSequence value) |
void |
drawString(net.minecraft.client.util.math.MatrixStack.Entry matrices,
net.minecraft.client.render.VertexConsumer vc,
int light,
int overlay,
java.lang.CharSequence value,
int maxChars) |
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) |
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) |
protected abstract java.lang.CharSequence |
getCharacters() |
protected abstract int |
getGapU() |
protected abstract int |
getGapV() |
protected abstract int |
getResolution() |
protected abstract net.minecraft.util.Identifier |
getTextureLocation() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCharHeight, getCharWidthpublic void drawString(java.lang.CharSequence value)
FontRendererdrawString in interface FontRenderervalue - the string to render.public void drawString(java.lang.CharSequence value,
int maxChars)
FontRendererThis is intended as a convenience method for clamped-width rendering, avoiding additional string operations such as substring.
drawString in interface FontRenderervalue - the string to render.maxChars - the maximum number of characters to render.public void drawString(net.minecraft.client.util.math.MatrixStack.Entry matrices,
net.minecraft.client.render.VertexConsumer vc,
int light,
int overlay,
java.lang.CharSequence value)
public 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)
public void drawString(net.minecraft.client.util.math.MatrixStack.Entry matrices,
net.minecraft.client.render.VertexConsumer vc,
int light,
int overlay,
java.lang.CharSequence value,
int maxChars)
public 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)
drawString in interface FontRendererpublic net.minecraft.client.render.VertexConsumer chooseVertexConsumer(net.minecraft.client.render.VertexConsumerProvider vcp)
chooseVertexConsumer in interface FontRenderervcp - the provider instance to choose from.protected abstract java.lang.CharSequence getCharacters()
protected abstract net.minecraft.util.Identifier getTextureLocation()
protected abstract int getResolution()
protected abstract int getGapU()
protected abstract int getGapV()