MaxHardnessPredicate

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

Parameters

maxHardness

The maximum allowed hardness

Constructors

Link copied to clipboard

Functions

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