FluidIngredient

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.neoforge.api.item.FluidIngredient;

Implements

Undocumented Interfaces

Predicate<FluidStack>

Members

asCTFluidIngredient(amount as int) as CTFluidIngredient
script.zs
// FluidIngredient.asCTFluidIngredient(amount as int) as CTFluidIngredient;
myFluidIngredient.asCTFluidIngredient(myInt);

Parameters:

amount Type: int

Return Type: FluidIngredient

implicit as CTFluidIngredient
script.zs
// FluidIngredient as CTFluidIngredient
myFluidIngredient as CTFluidIngredient

Return Type: FluidIngredient

Getter
script.zs
// FluidIngredient.empty as bool
myFluidIngredient.empty

Return Type: bool

Getter
script.zs
// FluidIngredient.hasNoFluids as bool
myFluidIngredient.hasNoFluids

Return Type: bool

static of() as FluidIngredient
script.zs
// FluidIngredient.of() as FluidIngredient;
FluidIngredient.of();

Return Type: FluidIngredient

static of(fluids as IFluidStack[]) as FluidIngredient
script.zs
// FluidIngredient.of(fluids as IFluidStack[]) as FluidIngredient;
FluidIngredient.of(myIFluidStack[]);

Parameters:

fluids Type: IFluidStack[]

Return Type: FluidIngredient

static of(fluids as Fluid[]) as FluidIngredient
script.zs
// FluidIngredient.of(fluids as Fluid[]) as FluidIngredient;
FluidIngredient.of(myFluid[]);

Parameters:

fluids Type: Fluid[]

Return Type: FluidIngredient

Getter
script.zs
// FluidIngredient.simple as bool
myFluidIngredient.simple

Return Type: bool

static single(stack as IFluidStack) as FluidIngredient
script.zs
// FluidIngredient.single(stack as IFluidStack) as FluidIngredient;
FluidIngredient.single(myIFluidStack);

Parameters:

stack Type: IFluidStack

Return Type: FluidIngredient

static single(fluid as Fluid) as FluidIngredient
script.zs
// FluidIngredient.single(fluid as Fluid) as FluidIngredient;
FluidIngredient.single(myFluid);

Parameters:

fluid Type: Fluid

Return Type: FluidIngredient

Getter
script.zs
// FluidIngredient.stacks as FluidStack[]
myFluidIngredient.stacks

Return Type: FluidStack[]

static tag(tag as KnownTag<Fluid>) as FluidIngredient
script.zs
// FluidIngredient.tag(tag as KnownTag<Fluid>) as FluidIngredient;
FluidIngredient.tag(myKnownTag);

Parameters:

tag Type: KnownTag<Fluid>

Return Type: FluidIngredient

test(fluidStack as FluidStack) as bool
script.zs
// FluidIngredient.test(fluidStack as FluidStack) as bool;
myFluidIngredient.test(myFluidStack);

Parameters:

fluidStack Type: FluidStack

Return Type: bool