@Environment(value=CLIENT) public enum GraphicsMode extends Enum<GraphicsMode>
Modifier and Type | Field and Description |
---|---|
private int |
id |
private String |
translationKey |
private static GraphicsMode[] |
VALUES |
Modifier and Type | Method and Description |
---|---|
static GraphicsMode |
byId(int id) |
int |
getId() |
String |
getTranslationKey() |
GraphicsMode |
next() |
String |
toString() |
static GraphicsMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GraphicsMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GraphicsMode FAST
public static final GraphicsMode FANCY
public static final GraphicsMode FABULOUS
private static final GraphicsMode[] VALUES
private final int id
private final String translationKey
public static GraphicsMode[] values()
for (GraphicsMode c : GraphicsMode.values()) System.out.println(c);
public static GraphicsMode 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 int getId()
public String getTranslationKey()
public GraphicsMode next()
public String toString()
toString
in class Enum<GraphicsMode>
public static GraphicsMode byId(int id)