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 |
| Name | Type | Description |
|---|---|---|
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 |
| Name | Type | Description |
|---|---|---|
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 |
| Name | Type | Description |
|---|---|---|
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 |
| Name | Type | Description |
|---|---|---|
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 |
| Name | Type | Description |
|---|---|---|
Recipe |
Class<Recipe> |
The recipe this manufacturer should produce. |
| Name | Type | Description |
|---|---|---|
Got Set |
Bool |
True if the current recipe got successfully set to the new recipe. |