destroyBox

fun destroyBox(world: ServerWorld, box: BlockBox, dropCollector: IBlockDropCollector, destroyer: LivingEntity, tool: ItemStack, destructionPredicate: BlockDestructionPredicate)(source)

Destroys a volume of blocks.

Parameters

world

The world to destroy blocks in

box

The volume to destroy blocks in

dropCollector

The collector of the dropped items

destroyer

The entity destroying the blocks

tool

The tool destroyer destroys blocks with

destructionPredicate

A predicate specifying if a block should be broken