FluidPredicate
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.FluidPredicate;
Static Methods
Return Type: FluidPredicate
// FluidPredicate.any() as FluidPredicate
FluidPredicate.any();
Return Type: FluidPredicateBuilder
// FluidPredicate.create() as FluidPredicateBuilder
FluidPredicate.create();
Return Type: FluidPredicateBuilder
FluidPredicate.create(fluid as Fluid) as FluidPredicateBuilder
Parameter | Type |
---|---|
Parameter fluid | Type Fluid |
Return Type: FluidPredicateBuilder
FluidPredicate.create(tag as KnownTag<Fluid>) as FluidPredicateBuilder
Parameter | Type |
---|---|
Parameter tag | Type KnownTag<Fluid> |
Methods
Return Type: boolean
FluidPredicate.matches(level as ServerLevel, pos as BlockPos) as boolean
Parameter | Type |
---|---|
Parameter level | Type ServerLevel |
Parameter pos | Type BlockPos |