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

CraftingInput

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

Implements

CraftingInput implements the following interfaces:

RecipeInput

Members

getItem(col as int, row as int) as ItemStack
script.zs
// CraftingInput.getItem(col as int, row as int) as ItemStack;
myCraftingInput.getItem(myInt, myInt);

Parameters:

col Type: int
row Type: int

Return Type: ItemStack

getItem(slot as int) as IItemStack
script.zs
// CraftingInput.getItem(slot as int) as IItemStack;
myCraftingInput.getItem(myInt);

Parameters:

slot Type: int

Return Type: IItemStack

Getter
script.zs
// CraftingInput.height as int
myCraftingInput.height

Return Type: int

Getter
script.zs
// CraftingInput.ingredientCount as int
myCraftingInput.ingredientCount

Return Type: int

Getter
script.zs
// CraftingInput.isEmpty as bool
myCraftingInput.isEmpty

Return Type: bool

Getter
script.zs
// CraftingInput.items as List<IItemStack>
myCraftingInput.items

Return Type: List<IItemStack>

static of(width as int, height as int, items as List<IItemStack>) as CraftingInput
script.zs
// CraftingInput.of(width as int, height as int, items as List<IItemStack>) as CraftingInput;
CraftingInput.of(myInt, myInt, myList);

Parameters:

width Type: int
height Type: int
items Type: List<IItemStack>

Return Type: CraftingInput

Getter
script.zs
// CraftingInput.size as int
myCraftingInput.size

Return Type: int

Getter
script.zs
// CraftingInput.width as int
myCraftingInput.width

Return Type: int