public abstract class AbstractFontRenderer extends java.lang.Object implements FontRenderer
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFontRenderer() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected abstract java.lang.CharSequence |
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.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.protected abstract java.lang.CharSequence getCharacters()
protected abstract net.minecraft.util.ResourceLocation getTextureLocation()
protected abstract int getResolution()
protected abstract int getGapU()
protected abstract int getGapV()