In Truncated Pyramid Predicate
class InTruncatedPyramidPredicate(near: Vec3d, nearSize: Vec2f, far: Vec3d, farSize: Vec2f, up: Vec3d) : BiPredicate<ServerWorld, BlockPos> (source)
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.
Parameters
near
The center point of the near side of the truncated pyramid
near Size
The width and height of the near side of the truncated pyramid
far
The center point on the far side of the truncated pyramid
far Size
The width and height of the far side if the truncated pyramid
up
The direction pointing "upwards" relative to the block destroyer's POV (perpendicular to far-near
vector)