@Environment(value=CLIENT) public enum FontType extends Enum<FontType>
Enum Constant and Description |
---|
BITMAP |
LEGACY_UNICODE |
TTF |
Modifier and Type | Field and Description |
---|---|
private String |
id |
private Function<JsonObject,FontLoader> |
loaderFactory |
private static Map<String,FontType> |
REGISTRY |
Modifier and Type | Method and Description |
---|---|
static FontType |
byId(String id) |
FontLoader |
createLoader(JsonObject json) |
static FontType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FontType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FontType BITMAP
public static final FontType TTF
public static final FontType LEGACY_UNICODE
private final String id
private final Function<JsonObject,FontLoader> loaderFactory
public static FontType[] values()
for (FontType c : FontType.values()) System.out.println(c);
public static FontType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic FontLoader createLoader(JsonObject json)