public static enum GuiContext.Type extends java.lang.Enum<GuiContext.Type>
Modifier and Type | Field and Description |
---|---|
private int |
value |
private static java.util.Map<java.lang.Integer,GuiContext.Type> |
valueMapping
Maps the integer that is stored in the database.
|
Modifier and Type | Method and Description |
---|---|
static GuiContext.Type |
fromValue(int value)
Get the
GuiContext.Type object when you know the integer code. |
int |
getValue()
Get the integer value that is used when storing a
GuiContext.Type
to the database. |
static GuiContext.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GuiContext.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GuiContext.Type ITEM
public static final GuiContext.Type LIST
private static final java.util.Map<java.lang.Integer,GuiContext.Type> valueMapping
private final int value
public static GuiContext.Type[] values()
for (GuiContext.Type c : GuiContext.Type.values()) System.out.println(c);
public static GuiContext.Type 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 static GuiContext.Type fromValue(int value)
GuiContext.Type
object when you know the integer code.value
- The integer value.public int getValue()
GuiContext.Type
to the database.