Class BlockBreakBlockEvent


@NullMarked public class BlockBreakBlockEvent extends BlockExpEvent
Called when a block forces another block to break and drop items.

Currently called for piston's and liquid flows.

  • Constructor Details

  • Method Details

    • getDrops

      public List<ItemStack> getDrops()
      Gets a mutable list of drops for this event
      Returns:
      the drops
    • getSource

      public Block getSource()
      Gets the block that cause this (e.g. a piston, or adjacent liquid)
      Returns:
      the source
    • getHandlers

      public HandlerList getHandlers()
      Overrides:
      getHandlers in class BlockExpEvent
    • getHandlerList

      public static HandlerList getHandlerList()