public enum EnchantmentType extends Enum<EnchantmentType>
| Enum Constant and Description |
|---|
ALL |
ARMOR |
ARMOR_FEET |
ARMOR_HEAD |
ARMOR_LEGS |
ARMOR_TORSO |
BOW |
BREAKABLE |
DIGGER |
FISHING_ROD |
SWORD |
TRIDENT |
WEARABLE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEnchantItem(Item item) |
static EnchantmentType |
valueOf(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.
|
public static final EnchantmentType ALL
public static final EnchantmentType ARMOR
public static final EnchantmentType ARMOR_HEAD
public static final EnchantmentType ARMOR_TORSO
public static final EnchantmentType ARMOR_LEGS
public static final EnchantmentType ARMOR_FEET
public static final EnchantmentType SWORD
public static final EnchantmentType DIGGER
public static final EnchantmentType FISHING_ROD
public static final EnchantmentType BREAKABLE
public static final EnchantmentType BOW
public static final EnchantmentType WEARABLE
public static final EnchantmentType TRIDENT
public static EnchantmentType[] values()
for (EnchantmentType c : EnchantmentType.values()) System.out.println(c);
public static EnchantmentType 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 item)
Copyright © 2020. All rights reserved.