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
constructor(block: Block)

Creates a new MaxHardnessPredicate instance.

constructor(maxHardness: Float)

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