Home Migration Guide Getting Started With Scripts Commands Examples
BracketHandlers

IIngredientCondition<T : IIngredient>

Importing the class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

script.zs
import crafttweaker.api.item.IIngredientCondition;

Methods

Return Type: string

script.zs
IIngredientCondition.getCommandString(ingredient as T) as string
ParameterTypeDescription
Parameter
ingredient
Type
T
Description
No Description Provided

Return Type: boolean

script.zs
IIngredientCondition.matches(stack as IItemStack) as boolean
ParameterTypeDescription
Parameter
stack
Type
IItemStack
Description
No Description Provided