StatePropertiesPredicate
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.StatePropertiesPredicate;
Static Methods
Return Type: StatePropertiesPredicate
// StatePropertiesPredicate.any() as StatePropertiesPredicate
StatePropertiesPredicate.any();
Return Type: StatePropertiesPredicateBuilder
// StatePropertiesPredicate.create() as StatePropertiesPredicateBuilder
StatePropertiesPredicate.create();
Methods
Return Type: boolean
StatePropertiesPredicate.matches(state as BlockState) as boolean
Parameter | Type |
---|---|
Parameter state | Type BlockState |