staff Mod_after Block Destroyed
public abstract Unit staffMod_afterBlockDestroyed(ServerWorld world, BlockPos pos, BlockState state, BlockEntity blockEntity, IBlockDropCollector dropCollector, LivingEntity destroyer, ItemStack tool)(source)
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.
Parameters
world
The world to destroy blocks in
pos
The position of the broken block
state
The block state broken
block Entity
The block entity of the block if any
drop Collector
The collector of the dropped items. Additional drops can be added here
destroyer
The entity destroying the blocks
tool
The tool destroyer destroys blocks with