public enum MinecraftFont extends java.lang.Enum<MinecraftFont> implements IFontRenderer
FontRenderer
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
int |
drawString(java.lang.String text,
int x,
int y,
int colour,
float scale) |
int |
getFontHeight(java.lang.String text) |
int |
getStringWidth(java.lang.String text) |
static MinecraftFont |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MinecraftFont[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
drawString
public static final MinecraftFont INSTANCE
public static MinecraftFont[] values()
for (MinecraftFont c : MinecraftFont.values()) System.out.println(c);
public static MinecraftFont valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getStringWidth(java.lang.String text)
getStringWidth
in interface IFontRenderer
public int getFontHeight(java.lang.String text)
getFontHeight
in interface IFontRenderer
public int drawString(java.lang.String text, int x, int y, int colour, float scale)
drawString
in interface IFontRenderer
scale
- The scale, relative to IFontRenderer.getFontHeight(String)