onBreak

@MustBeInvokedByOverriders
open override fun onBreak(drops: MutableList<ItemStack>, context: BlockBreakContext)(source)

Called as the block is being broken. At this point, the block break cannot be cancelled, but the physical block has not yet been broken or removed from io.github.pylonmc.rebar.block.BlockStorage.

The main purpose of this is method to allow the block drops to be modified.

In the case of a vanilla BlockBreakEvent this is called during the monitor priority.