CraftingInput
Link to craftinginput
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 Copyimport 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
Static Methods
Link to static-methods
Name: of
Return Type: CraftingInput
ZenScript CopyCraftingInput.of(width as int, height as int, items as stdlib.List<IItemStack>) as CraftingInput
Parameter | Type |
---|---|
Parameter width | Type int |
Parameter height | Type int |
Parameter items | Type stdlib.List<IItemStack> |
Methods
Link to methods
Name: getItem
Return Type: ItemStack
ZenScript CopyCraftingInput.getItem(col as int, row as int) as ItemStack
Parameter | Type |
---|---|
Parameter col | Type int |
Parameter row | Type int |
Properties
Link to properties
Name | Type | Has Getter | Has 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 |