Recipe

Parent

A struct that holds information about a recipe in its class. Means don’t use it as object, use it as class type!

Properties

duration : Float

The duration how much time it takes to cycle the recipe once.

Details
Flags ReadOnly RuntimeSync RuntimeParallel ClassProp

Display Name

Duration

name : String

The name of this recipe.

Details
Flags ReadOnly RuntimeSync RuntimeParallel ClassProp

Display Name

Name

Functions

getIngredients () → ingredients : Array<Struct<ItemAmount>>

Returns a array of item amounts, this recipe needs (input) so the recipe can be processed.

Details

Flags

RuntimeSync RuntimeParallel ClassFunc

Display Name

Get Ingredients

Return Values
Name Type Description

Ingredients ingredients

Array<Struct<ItemAmount>>

The ingredients of this recipe.

getProducts () → products : Array<Struct<ItemAmount>>

Returns a array of item amounts, this recipe returns (outputs) when the recipe is processed once.

Details

Flags

RuntimeSync RuntimeParallel ClassFunc

Display Name

Get Products

Return Values
Name Type Description

Products products

Array<Struct<ItemAmount>>

The products of this recipe.