Manufacturer

Parent

The base class of every machine that uses a recipe to produce something automatically.

Functions

getInputInv () → inventory : Trace<Inventory>

Returns the input inventory of this manufacturer.

Details

Flags

RuntimeSync RuntimeParallel MemberFunc

Display Name

Get Input Inventory

Return Values
Name Type Description

Inventory inventory

Trace<Inventory>

The input inventory of this manufacturer

getOutputInv () → inventory : Trace<Inventory>

Returns the output inventory of this manufacturer.

Details

Flags

RuntimeSync RuntimeParallel MemberFunc

Display Name

Get Output Inventory

Return Values
Name Type Description

Inventory inventory

Trace<Inventory>

The output inventory of this manufacturer.

getRecipe () → recipe : Class<Recipe>

Returns the currently set recipe of the manufacturer.

Details

Flags

RuntimeSync RuntimeParallel MemberFunc

Display Name

Get Recipe

Return Values
Name Type Description

Recipe recipe

Class<Recipe>

The currently set recipe.

getRecipes () → recipes : Array<Class<Recipe>>

Returns the list of recipes this manufacturer can get set to and process.

Details

Flags

RuntimeSync RuntimeParallel MemberFunc

Display Name

Get Recipes

Return Values
Name Type Description

Recipes recipes

Array<Class<Recipe>>

The list of avalible recipes.

setRecipe (recipe : Class<Recipe>) → gotSet : Bool

Sets the currently producing recipe of this manufacturer.

Details

Flags

RuntimeSync MemberFunc

Display Name

Set Recipe

Parameters
Name Type Description

Recipe recipe

Class<Recipe>

The recipe this manufacturer should produce.

Return Values
Name Type Description

Got Set gotSet

Bool

True if the current recipe got successfully set to the new recipe.