OutputSet class

Thin wrapper for the total output set of a recipe. This is kinda complex - it contains both entries, which describe the possible actual item/coin outputs of the recipe, and weighted output lists, which describe the probabilities of those outputs being generated.

A useful way to think about this is - an entry is a goodie bag. When you execute the recipe, it spins a wheel to determine which bag you get. The output list describes the shape of that wheel - which stops are associated with which bag, and how large those stops are relative to each other.

Constructors

OutputSet(EntriesList _nativeEntries, List<WeightedOutputs> _nativeOutputs)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getCoinOutputs() List<CoinOutput>
Retrieves all possible coin outputs.
getItemOutputs() List<ItemOutput>
Retrieves all possible item outputs.
getWeightedOutputs() List<WeightedOutput>
Retrieves the output lists.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited