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