public enum EnumEnchantmentType extends java.lang.Enum<EnumEnchantmentType>
Enum Constant and Description |
---|
ALL |
ARMOR |
ARMOR_FEET |
ARMOR_HEAD |
ARMOR_LEGS |
ARMOR_TORSO |
BOW |
BREAKABLE |
DIGGER |
FISHING_ROD |
WEAPON |
Modifier and Type | Method and Description |
---|---|
boolean |
canEnchantItem(Item p_77557_1_)
Return true if the item passed can be enchanted by a enchantment of this type.
|
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_TORSO
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 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 p_77557_1_)