public static enum ItemType.Category extends Enum<ItemType.Category>
| Enum Constant and Description |
|---|
AMMO
Ammunition for weapons of all sorts.
|
ARMOR
Armor packs and other armor restorers.
|
HEALTH
Health packs and other health restorers.
|
OTHER
UDamage, Keys + user defined items
|
WEAPON
Weapons of all sorts.
|
| Modifier and Type | Field and Description |
|---|---|
String |
name
Human-readable name of the category.
|
| Modifier and Type | Method and Description |
|---|---|
Set<ItemType> |
getTypes()
Return all item types of a certain category.
|
static ItemType.Category |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ItemType.Category[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ItemType.Category WEAPON
public static final ItemType.Category AMMO
public static final ItemType.Category HEALTH
public static final ItemType.Category ARMOR
public static final ItemType.Category OTHER
public String name
public static ItemType.Category[] values()
for (ItemType.Category c : ItemType.Category.values()) System.out.println(c);
public static ItemType.Category 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 nullCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.