public enum EnumEnchantmentType extends Enum<EnumEnchantmentType>
Enum Constant and Description |
---|
all |
armor |
armor_feet |
armor_head |
armor_legs |
armor_torso |
bow |
digger |
weapon |
Modifier and Type | Method and Description |
---|---|
boolean |
canEnchantItem(Item par1Item)
Return true if the item passed can be enchanted by a enchantment of this type.
|
static EnumEnchantmentType |
valueOf(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_torso
public static final EnumEnchantmentType armor_head
public static final EnumEnchantmentType weapon
public static final EnumEnchantmentType digger
public static final EnumEnchantmentType bow
public static EnumEnchantmentType[] values()
for (EnumEnchantmentType c : EnumEnchantmentType.values()) System.out.println(c);
public static EnumEnchantmentType 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 boolean canEnchantItem(Item par1Item)