canEnchantItem

public boolean canEnchantItem(ItemStack item)

Checks if this Enchantment may be applied to the given .

This does not check if it conflicts with any enchantments already applied to the item.

Return

True if the enchantment may be applied, otherwise False

Parameters

item

Item to test