BlockPredicateBuilder

Importing the class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

script.zs
import crafttweaker.api.predicate.builder.BlockPredicateBuilder;

Methods

Return Type: BlockPredicateBuilder

script.zs
BlockPredicateBuilder.blocks(blocks as Block[]) as BlockPredicateBuilder
ParameterType
Parameter
blocks
Type
Block[]

Return Type: BlockPredicate

script.zs
// BlockPredicateBuilder.build() as BlockPredicate
myBlockPredicateBuilder.build();

Return Type: BlockPredicateBuilder

script.zs
BlockPredicateBuilder.nbt(tag as IData) as BlockPredicateBuilder
ParameterType
Parameter
tag
Type
IData

Return Type: BlockPredicateBuilder

script.zs
BlockPredicateBuilder.nbt(tag as MapData) as BlockPredicateBuilder
ParameterType
Parameter
tag
Type
MapData

Return Type: BlockPredicateBuilder

script.zs
BlockPredicateBuilder.properties(predicate as StatePropertiesPredicate) as BlockPredicateBuilder
ParameterType
Parameter
predicate
Type
StatePropertiesPredicate

Return Type: BlockPredicateBuilder

script.zs
BlockPredicateBuilder.properties(predicate as StatePropertiesPredicateBuilder) as BlockPredicateBuilder
ParameterType
Parameter
predicate
Type
StatePropertiesPredicateBuilder

Return Type: BlockPredicateBuilder

script.zs
BlockPredicateBuilder.tag(tag as KnownTag<Block>) as BlockPredicateBuilder
ParameterType
Parameter
tag
Type
KnownTag<Block>