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

SmithingRecipeInput

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.SmithingRecipeInput;

Implements

SmithingRecipeInput implements the following interfaces:

RecipeInput

Members

Getter
script.zs
// SmithingRecipeInput.addition as ItemStack
mySmithingRecipeInput.addition

Return Type: ItemStack

Getter
script.zs
// SmithingRecipeInput.base as ItemStack
mySmithingRecipeInput.base

Return Type: ItemStack

getItem(slot as int) as IItemStack
script.zs
// SmithingRecipeInput.getItem(slot as int) as IItemStack;
mySmithingRecipeInput.getItem(myInt);

Parameters:

slot Type: int

Return Type: IItemStack

Getter
script.zs
// SmithingRecipeInput.isEmpty as bool
mySmithingRecipeInput.isEmpty

Return Type: bool

static of(template as IItemStack, base as IItemStack, addition as IItemStack) as SmithingRecipeInput
script.zs
// SmithingRecipeInput.of(template as IItemStack, base as IItemStack, addition as IItemStack) as SmithingRecipeInput;
SmithingRecipeInput.of(myIItemStack, myIItemStack, myIItemStack);

Parameters:

template Type: IItemStack
base Type: IItemStack
addition Type: IItemStack

Return Type: SmithingRecipeInput

Getter
script.zs
// SmithingRecipeInput.size as int
mySmithingRecipeInput.size

Return Type: int

Getter
script.zs
// SmithingRecipeInput.template as ItemStack
mySmithingRecipeInput.template

Return Type: ItemStack