public enum ItemCategory extends Enum<ItemCategory>
| Enum Constant and Description |
|---|
ARMOR |
ARROW |
AXE |
BOOTS |
CHESTPLATE |
HELMET |
HOE |
LEGGINGS |
PICKAXE |
POTION |
SHOVEL |
SWORD |
TOOL |
| Modifier and Type | Method and Description |
|---|---|
static ItemCategory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ItemCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ItemCategory TOOL
public static final ItemCategory SWORD
public static final ItemCategory PICKAXE
public static final ItemCategory AXE
public static final ItemCategory HOE
public static final ItemCategory SHOVEL
public static final ItemCategory ARMOR
public static final ItemCategory HELMET
public static final ItemCategory CHESTPLATE
public static final ItemCategory LEGGINGS
public static final ItemCategory BOOTS
public static final ItemCategory ARROW
public static final ItemCategory POTION
public static ItemCategory[] values()
for (ItemCategory c : ItemCategory.values()) System.out.println(c);
public static ItemCategory 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 © 2021. All rights reserved.