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

SingleRecipeInput

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.type.SingleRecipeInput;

Implements

SingleRecipeInput implements the following interfaces:

RecipeInput

Members

getItem(slot as int) as IItemStack
script.zs
// SingleRecipeInput.getItem(slot as int) as IItemStack;
mySingleRecipeInput.getItem(myInt);

Parameters:

slot Type: int

Return Type: IItemStack

Getter
script.zs
// SingleRecipeInput.isEmpty as bool
mySingleRecipeInput.isEmpty

Return Type: bool

Getter
script.zs
// SingleRecipeInput.item as IItemStack
mySingleRecipeInput.item

Return Type: IItemStack

static of(item as IItemStack) as SingleRecipeInput
script.zs
// SingleRecipeInput.of(item as IItemStack) as SingleRecipeInput;
SingleRecipeInput.of(myIItemStack);

Parameters:

item Type: IItemStack

Return Type: SingleRecipeInput

Getter
script.zs
// SingleRecipeInput.size as int
mySingleRecipeInput.size

Return Type: int