Check if enchantable.

Discussion in 'BungeeCord Plugin Development' started by fred1s2, May 26, 2016.

  1. How can I check if an Item is enchantable? Should I make a separate method?Thanks.
     
  2. Enchantment.XXXXXXXX.canEnchantItem(item);

    e.g Enchantment.ARROW_DAMAGE.canEnchantItem(new ItemStack(Material.DIAMOND_SWORD)) // false