DiamondBlockStaffShapePredicate

class DiamondBlockStaffShapePredicate(origin: BlockPos, forwardVector: Vec3i, upVector: Vec3i, rng: Random) : BiPredicate<ServerWorld, BlockPos> (source)

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

Parameters

origin

The starting point of the destruction

forwardVector

Vector pointing "forward" relative to the block destroyer's POV

upVector

Vector pointing "upward" relative to the block destroyer's POV

rng

Random number generator deciding the pattern of destruction

Constructors

Link copied to clipboard
constructor(origin: BlockPos, forwardVector: Vec3i, upVector: Vec3i, rng: Random)

Properties

Link copied to clipboard

The bounding volume of the destroyable blocks.

Functions

Link copied to clipboard
open override fun test(world: ServerWorld, pos: BlockPos): Boolean

Inherited functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard