InTruncatedPyramidPredicate

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

nearSize

The width and height of the near side of the truncated pyramid

far

The center point on the far side of the truncated pyramid

farSize

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)

Constructors

Link copied to clipboard
public InTruncatedPyramidPredicate InTruncatedPyramidPredicate(Vec3d near, Vec2f nearSize, Vec3d far, Vec2f farSize, Vec3d up)

Properties

Link copied to clipboard
private final BlockBox volume

The bounding volume of the truncated pyramid.

Functions

Link copied to clipboard
public final BlockBox getVolume()

The bounding volume of the truncated pyramid.

Link copied to clipboard
public Boolean test(ServerWorld world, BlockPos pos)

Inherited functions

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