Interface BlockBreakEnchant


public interface BlockBreakEnchant
Interface for enchantments that trigger special behavior on block break events.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onBlockBreak(org.bukkit.event.block.BlockBreakEvent event, int enchantLevel)
    Handles logic when a block is broken with an item that has this enchantment.
  • Method Details

    • onBlockBreak

      void onBlockBreak(org.bukkit.event.block.BlockBreakEvent event, int enchantLevel)
      Handles logic when a block is broken with an item that has this enchantment.
      Parameters:
      event - the BlockBreakEvent triggered by breaking the block
      enchantLevel - the level of the enchantment on the tool