Class SimpleBlockBreakHandler

java.lang.Object
io.github.thebusybiscuit.slimefun4.core.handlers.BlockBreakHandler
io.github.thebusybiscuit.slimefun4.implementation.handlers.SimpleBlockBreakHandler
All Implemented Interfaces:
ItemHandler

public abstract class SimpleBlockBreakHandler extends BlockBreakHandler
This simple implementation of BlockBreakHandler will execute the same code for when the Block is broken by a Player, by a MinerAndroid or an explosion. By default, both androids and explosions are allowed.
Author:
TheBusyBiscuit
See Also:
  • Constructor Details

  • Method Details

    • onBlockBreak

      public abstract void onBlockBreak(@Nonnull org.bukkit.block.Block b)
      This method is called when a Block of this type is broken by a Player, by a MinerAndroid or through an explosion.
      Parameters:
      b - The broken Block
    • onPlayerBreak

      public void onPlayerBreak(org.bukkit.event.block.BlockBreakEvent e, org.bukkit.inventory.ItemStack item, List<org.bukkit.inventory.ItemStack> drops)
      Specified by:
      onPlayerBreak in class BlockBreakHandler
    • onAndroidBreak

      public void onAndroidBreak(AndroidMineEvent e)
      Overrides:
      onAndroidBreak in class BlockBreakHandler
    • onExplode

      public void onExplode(org.bukkit.block.Block b, List<org.bukkit.inventory.ItemStack> drops)
      Overrides:
      onExplode in class BlockBreakHandler