SizedFluidIngredient

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.SizedFluidIngredient;

Members

Getter
script.zs
// SizedFluidIngredient.amount as int
mySizedFluidIngredient.amount

Return Type: int

implicit as CTFluidIngredient
script.zs
// SizedFluidIngredient as CTFluidIngredient
mySizedFluidIngredient as CTFluidIngredient

Return Type: FluidIngredient

Getter
script.zs
// SizedFluidIngredient.fluids as IFluidStack[]
mySizedFluidIngredient.fluids

Return Type: IFluidStack[]

Getter
script.zs
// SizedFluidIngredient.ingredient as FluidIngredient
mySizedFluidIngredient.ingredient

Return Type: FluidIngredient

static of(fluid as Fluid, amount as int) as SizedFluidIngredient
script.zs
// SizedFluidIngredient.of(fluid as Fluid, amount as int) as SizedFluidIngredient;
SizedFluidIngredient.of(myFluid, myInt);

Parameters:

fluid Type: Fluid
amount Type: int

Return Type: SizedFluidIngredient

static of(stack as FluidStack) as SizedFluidIngredient
script.zs
// SizedFluidIngredient.of(stack as FluidStack) as SizedFluidIngredient;
SizedFluidIngredient.of(myFluidStack);

Parameters:

stack Type: FluidStack

Return Type: SizedFluidIngredient

static of(tag as KnownTag<Fluid>, amount as int) as SizedFluidIngredient
script.zs
// SizedFluidIngredient.of(tag as KnownTag<Fluid>, amount as int) as SizedFluidIngredient;
SizedFluidIngredient.of(myKnownTag, myInt);

Parameters:

tag Type: KnownTag<Fluid>
amount Type: int

Return Type: SizedFluidIngredient

test(stack as IFluidStack) as bool
script.zs
// SizedFluidIngredient.test(stack as IFluidStack) as bool;
mySizedFluidIngredient.test(myIFluidStack);

Parameters:

stack Type: IFluidStack

Return Type: bool