Does the item have the given enchantment @param is the item @param e the enchantment @return true if it does
(ItemStack is, Enchantment e)
| 138 | * @return true if it does |
| 139 | */ |
| 140 | public static boolean hasEnchantment(ItemStack is, Enchantment e) { |
| 141 | return is(is) && is.getEnchantments().containsKey(e); |
| 142 | } |
| 143 | |
| 144 | /** |
| 145 | * Does the item have the enchantment at the given level |