IIngredientWithAmount
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.ingredient.IIngredientWithAmount;
Description
Consists of an ingredient and an amount.Implements
IIngredientWithAmount
implements the following interfaces:
Members
Getter
Gets the amount of Items in the ItemStackscript.zs
// IIngredientWithAmount.amount as intmyIIngredientWithAmount.amount
Return Type:
int
Getter
Returns the BEP to get this thingyscript.zs
// IIngredientWithAmount.commandString as stringmyIIngredientWithAmount.commandString
Return Type:
string
commandString() as string
Returns the BEP to get this thingyscript.zs
// IIngredientWithAmount.commandString() as string;myIIngredientWithAmount.commandString();
Return Type:
string
Getter
The backing ingredientscript.zs
// IIngredientWithAmount.ingredient as IIngredientmyIIngredientWithAmount.ingredient
Return Type:
IIngredient