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

IIngredientCondition

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

Members

getCommandString(ingredient as IIngredient) as string
script.zs
// IIngredientCondition<T : IIngredient>.getCommandString(ingredient as IIngredient) as string;
myIIngredientCondition.getCommandString(myT);

Parameters:

ingredient Type: IIngredient

Return Type: string

matches(stack as IItemStack) as bool
script.zs
// IIngredientCondition<T : IIngredient>.matches(stack as IItemStack) as bool;
myIIngredientCondition.matches(myIItemStack);

Parameters:

stack Type: IItemStack

Return Type: bool