FluidPredicate
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.api.predicate.FluidPredicate;
Members
static create() as Builder
static create(fluid as Fluid) as Builder
FluidPredicate.create(myFluid);
Return Type:
FluidPredicateBuilder
static create(tag as KnownTag<Fluid>) as Builder
FluidPredicate.create(myKnownTag);
Return Type:
FluidPredicateBuilder
matches(level as ServerLevel, pos as BlockPos) as bool
myFluidPredicate.matches(myServerLevel, myBlockPos);
Parameters:
level: ServerLevel
Type: ServerLevel
Return Type:
bool