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
abstract fun staffMod_afterBlockDestroyed(    world: ServerWorld,     pos: BlockPos,     state: BlockState,     blockEntity: BlockEntity?,     dropCollector: IBlockDropCollector,     destroyer: LivingEntity,     tool: ItemStack)

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.