staffMod_afterBlockDestroyed

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

blockEntity

The block entity of the block if any

dropCollector

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

See also