Item.removeEnchantment

Removes an enchantment from the item.

  1. void removeEnchantment(sel.data.enchantment.Enchantment ench)
    class Item
    @safe
    void
    removeEnchantment
    (
    inout sel.data.enchantment.Enchantment ench
    )
  2. void opBinaryRight(sul.enchantments.Enchantment ench)

Examples

item.removeEnchantment(Enchantments.sharpness);
item -= Enchantments.fortune;

Meta