destroyBox

public final static Unit destroyBox(ServerWorld world, BlockBox box, IBlockDropCollector dropCollector, LivingEntity destroyer, ItemStack tool, BiPredicate<ServerWorld, BlockPos> destructionPredicate)(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