public enum EnchantmentTarget extends Enum<EnchantmentTarget>
| Enum Constant and Description |
|---|
ALL |
ARMOR |
ARMOR_FEET |
ARMOR_HEAD |
ARMOR_LEGS |
ARMOR_TORSO |
BOW |
BREAKABLE |
CROSSBOW |
DIGGER |
FISHING_ROD |
SWORD |
TRIDENT |
WEARABLE |
| Modifier and Type | Method and Description |
|---|---|
static EnchantmentTarget |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnchantmentTarget[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnchantmentTarget ALL
public static final EnchantmentTarget ARMOR
public static final EnchantmentTarget ARMOR_HEAD
public static final EnchantmentTarget ARMOR_TORSO
public static final EnchantmentTarget ARMOR_LEGS
public static final EnchantmentTarget ARMOR_FEET
public static final EnchantmentTarget SWORD
public static final EnchantmentTarget DIGGER
public static final EnchantmentTarget FISHING_ROD
public static final EnchantmentTarget BREAKABLE
public static final EnchantmentTarget BOW
public static final EnchantmentTarget WEARABLE
public static final EnchantmentTarget TRIDENT
public static final EnchantmentTarget CROSSBOW
public static EnchantmentTarget[] values()
for (EnchantmentTarget c : EnchantmentTarget.values()) System.out.println(c);
public static EnchantmentTarget 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 nullCopyright © 2021. All rights reserved.