public enum EnchantmentTarget extends Enum<EnchantmentTarget>
Enum Constant and Description |
---|
ARMOR |
ARMOR_CHEST |
ARMOR_FEET |
ARMOR_HEAD |
ARMOR_LEGS |
BOW |
BREAKABLE |
CROSSBOW |
DIGGER |
FISHING_ROD |
TRIDENT |
VANISHABLE |
WEAPON |
WEARABLE |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
isAcceptableItem(Item item) |
static EnchantmentTarget |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnchantmentTarget[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnchantmentTarget ARMOR
public static final EnchantmentTarget ARMOR_FEET
public static final EnchantmentTarget ARMOR_LEGS
public static final EnchantmentTarget ARMOR_CHEST
public static final EnchantmentTarget ARMOR_HEAD
public static final EnchantmentTarget WEAPON
public static final EnchantmentTarget DIGGER
public static final EnchantmentTarget FISHING_ROD
public static final EnchantmentTarget TRIDENT
public static final EnchantmentTarget BREAKABLE
public static final EnchantmentTarget BOW
public static final EnchantmentTarget WEARABLE
public static final EnchantmentTarget CROSSBOW
public static final EnchantmentTarget VANISHABLE
public static EnchantmentTarget[] values()
for (EnchantmentTarget c : EnchantmentTarget.values()) System.out.println(c);
public static EnchantmentTarget 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 nullpublic abstract boolean isAcceptableItem(Item item)