BlockPredicateBuilder

Link to blockpredicatebuilder

Importare la Classe

Link to importare-la-classe

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.

ZenScript
Copy
import crafttweaker.api.predicate.builder.BlockPredicateBuilder;

Name: blocks

Return Type: BlockPredicateBuilder

ZenScript
Copy
BlockPredicateBuilder.blocks(blocks as Block[]) as BlockPredicateBuilder
ParametroTipo
Parametro
blocks
Tipo
Block[]

Name: build

Return Type: BlockPredicate

ZenScript
Copy
// BlockPredicateBuilder.build() as BlockPredicate

myBlockPredicateBuilder.build();

Name: nbt

Return Type: BlockPredicateBuilder

ZenScript
Copy
BlockPredicateBuilder.nbt(tag as IData) as BlockPredicateBuilder
ParametroTipo
Parametro
tag
Tipo
IData

Name: nbt

Return Type: BlockPredicateBuilder

ZenScript
Copy
BlockPredicateBuilder.nbt(tag as MapData) as BlockPredicateBuilder
ParametroTipo
Parametro
tag
Tipo
MapData

Name: properties

Return Type: BlockPredicateBuilder

ZenScript
Copy
BlockPredicateBuilder.properties(predicate as StatePropertiesPredicate) as BlockPredicateBuilder
ParametroTipo
Parametro
predicate
Tipo
StatePropertiesPredicate

Name: properties

Return Type: BlockPredicateBuilder

ZenScript
Copy
BlockPredicateBuilder.properties(predicate as StatePropertiesPredicateBuilder) as BlockPredicateBuilder
ParametroTipo
Parametro
predicate
Tipo
StatePropertiesPredicateBuilder

Name: tag

Return Type: BlockPredicateBuilder

ZenScript
Copy
BlockPredicateBuilder.tag(tag as KnownTag<Block>) as BlockPredicateBuilder
ParametroTipo
Parametro
tag
Tipo
KnownTag<Block>