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.
import crafttweaker.neoforge.api.item.SizedFluidIngredient;
Members
Getter
// SizedFluidIngredient.amount as intmySizedFluidIngredient.amount
Return Type:
int
implicit as CTFluidIngredient
// SizedFluidIngredient as FluidIngredientmySizedFluidIngredient as CTFluidIngredient
Return Type:
FluidIngredient
Getter
mySizedFluidIngredient.fluids
Return Type:
IFluidStack[]
Getter
// SizedFluidIngredient.ingredient as FluidIngredientmySizedFluidIngredient.ingredient
Return Type:
FluidIngredient
static of(fluid as Fluid, amount as int) as SizedFluidIngredient
SizedFluidIngredient.of(myFluid, myInt);
Return Type:
SizedFluidIngredient
static of(stack as FluidStack) as SizedFluidIngredient
SizedFluidIngredient.of(myFluidStack);
Parameters:
stack: FluidStack
Type: FluidStack
Return Type:
SizedFluidIngredient
static of(tag as KnownTag<Fluid>, amount as int) as SizedFluidIngredient
SizedFluidIngredient.of(myKnownTag, myInt);
Return Type:
SizedFluidIngredient
test(stack as IFluidStack) as bool
mySizedFluidIngredient.test(myIFluidStack);
Parameters:
stack: IFluidStack
Type: IFluidStack
Return Type:
bool