| Modifier and Type | Method and Description |
|---|---|
static boolean |
isArmor(java.util.List<ItemType> types) |
static boolean |
isTool(java.util.List<ItemType> types) |
static ItemType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ItemType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ItemType BOOTS
public static final ItemType LEGGINGS
public static final ItemType CHESTPLATE
public static final ItemType HELMET
public static final ItemType SWORD
public static final ItemType PICKAXE
public static final ItemType AXE
public static final ItemType SHOVEL
public static final ItemType HOE
public static final ItemType BOW
public static final ItemType FISHING_ROD
public static final ItemType BUCKET
public static final ItemType WATER_BUCKET
public static final ItemType LAVA_BUCKET
public static final ItemType MILK_BUCKET
public static final ItemType SKULL
public static final ItemType PUMPKIN
public static final ItemType WRITTEN_BOOK
public static final ItemType WRITABLE_BOOK
public static final ItemType DYE
public static final ItemType MAP
public static final ItemType FILLED_MAP
public static final ItemType GUNPOWDER
public static final ItemType FIREWORK_STAR
public static final ItemType PAPER
public static final ItemType GLOWSTONE_DUST
public static final ItemType DIAMOND
public static final ItemType FIRE_CHARGE
public static final ItemType FEATHER
public static final ItemType GOLD_NUGGET
public static final ItemType FIREWORK_ROCKET
public static final ItemType BOTTLE
public static final ItemType WATER_BOTTLE
public static final ItemType POTION
public static final ItemType SPLASH_POTION
public static final ItemType FISH
public static final ItemType IRON_INGOT
public static final ItemType GOLD_INGOT
public static final ItemType EMERALD
public static final ItemType ENCHANTED_BOOK
public static final ItemType LEATHER
public static final ItemType PLANKS
public static final ItemType COBBLESTONE
public static final ItemType SADDLE
public static final ItemType HORSE_ARMOR
public static ItemType[] values()
for (ItemType c : ItemType.values()) System.out.println(c);
public static ItemType 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 boolean isArmor(java.util.List<ItemType> types)
public static boolean isTool(java.util.List<ItemType> types)