Interface EquipabbleEnchantment
public interface EquipabbleEnchantment
Interface representing enchantments that have effects when equipped or unequipped.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 pickaxepickaxe
- the pickaxe item being equippedlevel
- 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 pickaxepickaxe
- the pickaxe item being unequippedlevel
- the level of the enchantment on the pickaxe
-