public final class FontRendererAPIImpl extends java.lang.Object implements FontRendererAPI
| Constructor and Description |
|---|
FontRendererAPIImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
drawString(java.lang.String string)
Render the specified string.
|
void |
drawString(java.lang.String string,
int maxChars)
Render up to the specified amount of characters of the specified string.
|
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.
|
public void drawString(java.lang.String string)
FontRendererAPIdrawString in interface FontRendererAPIstring - the string to render.public void drawString(java.lang.String string,
int maxChars)
FontRendererAPIThis is intended as a convenience method for clamped-width rendering, avoiding additional string operations such as substring.
drawString in interface FontRendererAPIstring - the string to render.maxChars - the maximum number of characters to render.public int getCharWidth()
FontRendererAPIgetCharWidth in interface FontRendererAPIpublic int getCharHeight()
FontRendererAPIgetCharHeight in interface FontRendererAPI