BlockPredicate

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.predicate.BlockPredicate;

Members

static create() as Builder
script.zs
// BlockPredicate.create() as Builder;
BlockPredicate.create();

Return Type: BlockPredicateBuilder

static create(blocks as Block[]) as Builder
script.zs
// BlockPredicate.create(blocks as Block[]) as Builder;
BlockPredicate.create(myBlock[]);

Parameters:

blocks Type: Block[]

Return Type: BlockPredicateBuilder

static create(tag as KnownTag<Block>) as Builder
script.zs
// BlockPredicate.create(tag as KnownTag<Block>) as Builder;
BlockPredicate.create(myKnownTag);

Parameters:

tag Type: KnownTag<Block>

Return Type: BlockPredicateBuilder