Item.opBinaryRight

Removes an enchantment from the item.

  1. void opBinaryRight(Enchantment ench)
  2. Enchantment* opBinaryRight(sel.data.enchantment.Enchantment ench)
  3. void opBinaryRight(sul.enchantments.Enchantment ench)
    class Item
    @safe
    void
    opBinaryRight
    (
    string op : "-"
    )
    (
    inout sul.enchantments.Enchantment ench
    )
  4. void removeEnchantment(sel.data.enchantment.Enchantment ench)

Examples

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

Meta