Home Commands Examples Getting Started With Scripts Global Keywords
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

IngredientWithAmount

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.ingredient.type.IngredientWithAmount;

Implements

IngredientWithAmount implements the following interfaces:

IIngredientWithAmount,CommandStringDisplayable

Members

asIData() as IData
script.zs
// IngredientWithAmount.asIData() as IData;
myIngredientWithAmount.asIData();

Return Type: IData

implicit as IData
script.zs
// IngredientWithAmount as IData
myIngredientWithAmount as IData

Return Type: IData