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

RecipeInput

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.recipe.input.RecipeInput;

Members

getItem(slot as int) as IItemStack
script.zs
// RecipeInput.getItem(slot as int) as IItemStack;
myRecipeInput.getItem(myInt);

Parameters:

slot Type: int

Return Type: IItemStack

Getter
script.zs
// RecipeInput.isEmpty as bool
myRecipeInput.isEmpty

Return Type: bool

Getter
script.zs
// RecipeInput.size as int
myRecipeInput.size

Return Type: int