BlockPredicateBuilder

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.builder.BlockPredicateBuilder;

Members

blocks(blocks as Block[]) as Builder
script.zs
// Builder.blocks(blocks as Block[]) as Builder;
myBuilder.blocks(myBlock[]);

Parameters:

blocks Type: Block[]

Return Type: BlockPredicateBuilder

build() as BlockPredicate
script.zs
// Builder.build() as BlockPredicate;
myBuilder.build();

Return Type: BlockPredicate

nbt(tag as MapData) as Builder
script.zs
// Builder.nbt(tag as MapData) as Builder;
myBuilder.nbt(myMapData);

Parameters:

tag Type: MapData

Return Type: BlockPredicateBuilder

nbt(tag as IData) as Builder
script.zs
// Builder.nbt(tag as IData) as Builder;
myBuilder.nbt(myIData);

Parameters:

tag Type: IData

Return Type: BlockPredicateBuilder

properties(predicate as Builder) as Builder
script.zs
// Builder.properties(predicate as Builder) as Builder;
myBuilder.properties(myBuilder);

Return Type: BlockPredicateBuilder

tag(tag as KnownTag<Block>) as Builder
script.zs
// Builder.tag(tag as KnownTag<Block>) as Builder;
myBuilder.tag(myKnownTag);

Parameters:

tag Type: KnownTag<Block>

Return Type: BlockPredicateBuilder