testBlock

open fun testBlock(block: Block): BlockInWorldPredicate.Result

Checks if the passed block matches the block predicate, loading the chunk if necessary.

Return

the predicate result

Parameters

block

the block instance to check


abstract fun testBlock(block: Block, loadChunk: Boolean): BlockInWorldPredicate.Result

Checks if the passed block matches the block predicate.

Return

the predicate result.

Parameters

block

the block instance to check

loadChunk

if the chunk the block is located at should be loaded.