Interface EquipabbleEnchantment


public interface EquipabbleEnchantment
Interface representing enchantments that have effects when equipped or unequipped.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onEquip(org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack pickaxe, int level)
    Called when a pickaxe with this enchantment is equipped by a player.
    void
    onUnequip(org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack pickaxe, int level)
    Called when a pickaxe with this enchantment is unequipped by a player.
  • Method Details

    • onEquip

      void onEquip(org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack pickaxe, int level)
      Called when a pickaxe with this enchantment is equipped by a player.
      Parameters:
      player - the player equipping the pickaxe
      pickaxe - the pickaxe item being equipped
      level - the level of the enchantment on the pickaxe
    • onUnequip

      void onUnequip(org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack pickaxe, int level)
      Called when a pickaxe with this enchantment is unequipped by a player.
      Parameters:
      player - the player unequipping the pickaxe
      pickaxe - the pickaxe item being unequipped
      level - the level of the enchantment on the pickaxe