Home Commands Examples Getting Started With Scripts Global Keywords

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.ingredient.condition.IIngredientCondition;

Methods

Return Type: string

script.zs
IIngredientCondition.getCommandString(ingredient as T) as string
ParameterType
Parameter
ingredient
Type
T

Return Type: boolean

script.zs
IIngredientCondition.matches(stack as IItemStack) as boolean
ParameterType
Parameter
stack
Type
IItemStack