IngredientCalculation

data class IngredientCalculation(val inputs: MutableList<Container>, val intermediates: MutableList<Container>, var outputAmount: Double)(source)

Author

balugaq

Constructors

Link copied to clipboard
constructor(inputs: MutableList<Container>, intermediates: MutableList<Container>, outputAmount: Double)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Output amount:

Functions

Link copied to clipboard

Merge all the similar components and return a clone

Link copied to clipboard

Merge sub-recipe calculation results (only merge raw materials and along products, without affecting main product amount) Used in recursive calculation to integrate inputs and along products from sub-recipes

Link copied to clipboard

Scale raw materials, along products and main product amounts by multiplier