Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.recipe.input.type.CraftingInput;

Implemented Interfaces

Link to implemented-interfaces

CraftingInput implements the following interfaces. That means all methods defined in these interfaces are also available in CraftingInput

Name: of

Return Type: CraftingInput

ZenScript
Copy
CraftingInput.of(width as int, height as int, items as stdlib.List<IItemStack>) as CraftingInput
ParameterType
Parameter
width
Type
int
Parameter
height
Type
int
Parameter
items
Type
stdlib.List<IItemStack>

Name: getItem

Return Type: ItemStack

ZenScript
Copy
CraftingInput.getItem(col as int, row as int) as ItemStack
ParameterType
Parameter
col
Type
int
Parameter
row
Type
int
NameTypeHas GetterHas Setter
Name
height
Type
int
Has Getter
true
Has Setter
false
Name
ingredientCount
Type
int
Has Getter
true
Has Setter
false
Name
items
Type
stdlib.List<IItemStack>
Has Getter
true
Has Setter
false
Name
width
Type
int
Has Getter
true
Has Setter
false