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.

script.zs
import crafttweaker.api.predicate.FluidPredicate;

Members

static create() as Builder
script.zs
// FluidPredicate.create() as Builder;
FluidPredicate.create();

Return Type: FluidPredicateBuilder

static create(fluid as Fluid) as Builder
script.zs
// FluidPredicate.create(fluid as Fluid) as Builder;
FluidPredicate.create(myFluid);

Parameters:

fluid Type: Fluid

Return Type: FluidPredicateBuilder

static create(tag as KnownTag<Fluid>) as Builder
script.zs
// FluidPredicate.create(tag as KnownTag<Fluid>) as Builder;
FluidPredicate.create(myKnownTag);

Parameters:

tag Type: KnownTag<Fluid>

Return Type: FluidPredicateBuilder