IBlockAfterDestroyHandler

Replacement for Block.afterBreak during destroyBox. Mixed into TurtleEggBlock and BeehiveBlock. Implement this on a Block too if you override Block.afterBreak.

See also

Functions

Link copied to clipboard
public abstract Unit staffMod_afterBlockDestroyed(ServerWorld world, BlockPos pos, BlockState state, BlockEntity blockEntity, IBlockDropCollector dropCollector, LivingEntity destroyer, ItemStack tool)

Called after a staff destroys a block. Staff mod collects the dropped items, increments stats, and applies exhaustion, so these should not be called here.