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

IIngredientTransformer

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.transformer.IIngredientTransformer;

Members

getCommandString(base as string) as string
script.zs
// IIngredientTransformer.getCommandString(base as string) as string;
myIIngredientTransformer.getCommandString(myString);

Parameters:

base Type: string

Return Type: string

transform(stack as IItemStack) as IItemStack
script.zs
// IIngredientTransformer.transform(stack as IItemStack) as IItemStack;
myIIngredientTransformer.transform(myIItemStack);

Parameters:

stack Type: IItemStack

Return Type: IItemStack