Package-level declarations

Types

Link copied to clipboard

A predicate specifying if a block should be broken.

Link copied to clipboard
class GoldBlockStaffShapePredicate(origin: BlockPos, forwardVector: Vec3i, upVector: Vec3i) : BiPredicate<ServerWorld, BlockPos>

A BlockDestructionPredicate, which only allow breaking blocks in the Gold Block Staff's shape.

Link copied to clipboard
class InTruncatedPyramidPredicate(near: Vec3d, nearSize: Vec2f, far: Vec3d, farSize: Vec2f, up: Vec3d) : BiPredicate<ServerWorld, BlockPos>

A BlockDestructionPredicate, which only allows breaking blocks in a truncated pyramid. The near and far sides of the truncated pyramid are the top and bottom sides.

Link copied to clipboard

A BlockDestructionPredicate, which only allows breaking blocks with a maximum hardness of maxHardness. This disallows breaking unbreakable blocks.

Link copied to clipboard

A BlockDestructionPredicate, which only allow breaking blocks in the Netherite Block Staff's shape.

Functions

Link copied to clipboard
fun destroyBox(world: ServerWorld, box: BlockBox, dropCollector: IBlockDropCollector, destroyer: LivingEntity, tool: ItemStack, destructionPredicate: BlockDestructionPredicate)

Destroys a volume of blocks.