diff --git a/paper-api/src/main/java/io/papermc/paper/event/block/BlockBreakBlockEvent.java b/paper-api/src/main/java/io/papermc/paper/event/block/BlockBreakBlockEvent.java new file mode 100644 index 0000000000..3b130d145f --- /dev/null +++ b/paper-api/src/main/java/io/papermc/paper/event/block/BlockBreakBlockEvent.java @@ -0,0 +1,57 @@ +package io.papermc.paper.event.block; + +import java.util.List; +import org.bukkit.block.Block; +import org.bukkit.event.HandlerList; +import org.bukkit.event.block.BlockExpEvent; +import org.bukkit.inventory.ItemStack; +import org.jetbrains.annotations.ApiStatus; +import org.jspecify.annotations.NullMarked; + +/** + * Called when a block forces another block to break and drop items. + *
+ * Currently called for piston's and liquid flows.
+ */
+@NullMarked
+public class BlockBreakBlockEvent extends BlockExpEvent {
+
+ private static final HandlerList HANDLER_LIST = new HandlerList();
+
+ private final Block source;
+ private final List