public enum EnchantmentType extends java.lang.Enum<EnchantmentType> implements IExtensibleEnum
Enum Constant and Description |
---|
ALL |
ARMOR |
ARMOR_CHEST |
ARMOR_FEET |
ARMOR_HEAD |
ARMOR_LEGS |
BOW |
BREAKABLE |
CROSSBOW |
DIGGER |
FISHING_ROD |
TRIDENT |
WEAPON |
WEARABLE |
Modifier and Type | Field and Description |
---|---|
private java.util.function.Predicate<Item> |
delegate |
Modifier and Type | Method and Description |
---|---|
boolean |
canEnchantItem(Item itemIn) |
static EnchantmentType |
create(java.lang.String name,
java.util.function.Predicate<Item> delegate) |
static EnchantmentType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnchantmentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
init
public static final EnchantmentType ALL
public static final EnchantmentType ARMOR
public static final EnchantmentType ARMOR_FEET
public static final EnchantmentType ARMOR_LEGS
public static final EnchantmentType ARMOR_CHEST
public static final EnchantmentType ARMOR_HEAD
public static final EnchantmentType WEAPON
public static final EnchantmentType DIGGER
public static final EnchantmentType FISHING_ROD
public static final EnchantmentType TRIDENT
public static final EnchantmentType BREAKABLE
public static final EnchantmentType BOW
public static final EnchantmentType WEARABLE
public static final EnchantmentType CROSSBOW
private java.util.function.Predicate<Item> delegate
public static EnchantmentType[] values()
for (EnchantmentType c : EnchantmentType.values()) System.out.println(c);
public static EnchantmentType 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 EnchantmentType create(java.lang.String name, java.util.function.Predicate<Item> delegate)
public boolean canEnchantItem(Item itemIn)