Enum Constant and Description |
---|
AMULET |
ARMOR |
FOOD |
GEM |
OTHER |
POTION |
RING |
SCROLL |
SPELLBOOK |
STATUE |
TOOL |
WAND |
WEAPON |
Modifier and Type | Method and Description |
---|---|
static ItemKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ItemKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ItemKind SPELLBOOK
public static final ItemKind AMULET
public static final ItemKind WEAPON
public static final ItemKind WAND
public static final ItemKind GEM
public static final ItemKind ARMOR
public static final ItemKind FOOD
public static final ItemKind OTHER
public static final ItemKind TOOL
public static final ItemKind STATUE
public static final ItemKind SCROLL
public static final ItemKind RING
public static final ItemKind POTION
public static ItemKind[] values()
for (ItemKind c : ItemKind.values()) System.out.println(c);
public static ItemKind 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 null