BlockPredicate
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.
import crafttweaker.api.predicate.BlockPredicate;
Static Methods
Return Type: BlockPredicate
// BlockPredicate.any() as BlockPredicate
BlockPredicate.any();
Return Type: BlockPredicateBuilder
// BlockPredicate.create() as BlockPredicateBuilder
BlockPredicate.create();
Return Type: BlockPredicateBuilder
BlockPredicate.create(blocks as Block[]) as BlockPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter blocks | Type Block[] | Description No Description Provided |
Return Type: BlockPredicateBuilder
BlockPredicate.create(tag as MCTag<Block>) as BlockPredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter tag | Type MCTag<Block> | Description No Description Provided |