Home Commands Examples Getting Started With Scripts Global Keywords
Generic JSON Recipes

Expansion for JeiCategory

Expands a JeiCategory allowing for registration of JeiRecipes.

Methods

Adds a new recipe to the specified category with the given inputs and outputs.

Return Type: void

script.zs
JeiCategory.addRecipe(outputs as JeiIngredient[][], inputs as JeiIngredient[][]) as void
ParameterTypeDescription
Parameter
outputs
Type
JeiIngredient[][]
Description
The outputs of the recipe. Refer to JeiRecipe for more details on the format.
Parameter
inputs
Type
JeiIngredient[][]
Description
The inputs of the recipe. Refer to JeiRecipe for more details on the format.

Adds a new recipe to the specified category with the given inputs and outputs and the specified graphics.

Return Type: void

script.zs
JeiCategory.addRecipe(outputs as JeiIngredient[][], inputs as JeiIngredient[][], graphics as Consumer<JeiRecipeGraphics>) as void
ParameterTypeDescription
Parameter
outputs
Type
JeiIngredient[][]
Description
The outputs of the recipe. Refer to JeiRecipe for more details on the format.
Parameter
inputs
Type
JeiIngredient[][]
Description
The inputs of the recipe. Refer to JeiRecipe for more details on the format.
Parameter
graphics
Type
Consumer<JeiRecipeGraphics>
Description
A consumer for a JeiRecipeGraphics allowing for more integration with the category. Each
category defines a different contract for the graphics, so refer to the category documentation
for more information.