EnchantmentTarget

public enum EnchantmentTarget

Represents the applicable target for getClassById Enchantment

Entries

Link copied to clipboard

Allows the Enchantment to be placed on all items

Link copied to clipboard

Allows the Enchantment to be placed on armor

Link copied to clipboard

Allows the Enchantment to be placed on feet slot armor

Link copied to clipboard

Allows the Enchantment to be placed on leg slot armor

Link copied to clipboard

Allows the Enchantment to be placed on torso slot armor

Link copied to clipboard

Allows the Enchantment to be placed on head slot armor

Link copied to clipboard

Allows the Enchantment to be placed on weapons (swords)

Link copied to clipboard

Allows the Enchantment to be placed on tools (spades, pickaxe, hoes, axes)

Link copied to clipboard

Allows the Enchantment to be placed on bows.

Link copied to clipboard

Allows the Enchantment to be placed on fishing rods.

Functions

Link copied to clipboard
public abstract boolean includes(Material item)
public boolean includes(ItemStack item)
Check whether this target includes the specified item.
Link copied to clipboard
public static EnchantmentTarget valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
public static Array<EnchantmentTarget> values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.