public abstract class AbstractFontRenderer extends java.lang.Object implements FontRenderer
| Constructor and Description |
|---|
AbstractFontRenderer() |
| Modifier and Type | Method and Description |
|---|---|
void |
drawString(java.lang.String value)
Render the specified string.
|
void |
drawString(java.lang.String value,
int maxChars)
Render up to the specified amount of characters of the specified string.
|
protected abstract java.lang.String |
getCharacters() |
protected abstract int |
getGapU() |
protected abstract int |
getGapV() |
protected abstract int |
getResolution() |
protected abstract net.minecraft.util.ResourceLocation |
getTextureLocation() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCharHeight, getCharWidthpublic void drawString(java.lang.String value)
FontRendererdrawString in interface FontRenderervalue - the string to render.public void drawString(java.lang.String 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.protected abstract java.lang.String getCharacters()
protected abstract net.minecraft.util.ResourceLocation getTextureLocation()
protected abstract int getResolution()
protected abstract int getGapU()
protected abstract int getGapV()