SingleRecipeInput

Link to singlerecipeinput

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

Extending Record

Link to extending-record

SingleRecipeInput extends Record. That means all methods available in Record are also available in SingleRecipeInput

Implemented Interfaces

Link to implemented-interfaces

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

Name: of

Return Type: SingleRecipeInput

ZenScript
Copy
SingleRecipeInput.of(item as IItemStack) as SingleRecipeInput
ParameterType
Parameter
item
Type
IItemStack
NameTypeHas GetterHas Setter
Name
item
Type
IItemStack
Has Getter
true
Has Setter
false