GoldBlockStaffShapePredicate

class GoldBlockStaffShapePredicate(origin: BlockPos, forwardVector: Vec3i, upVector: Vec3i) : BiPredicate<ServerWorld, BlockPos> (source)

A BlockDestructionPredicate, which only allow breaking blocks in the Gold 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

Constructors

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

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