Group Recipe
Implementation of CRecipe.
This recipe only provides CRecipe.Type.SHAPED.
This recipe has groups what is a list of air-containable matter (GroupRecipe.Matter).
This recipe has the constraint that "all Context#members to which the key that returns the smallest CoordinateComponent#toIndex value in items belongs cannot have an element in candidate that satisfies Material#isAir."
items = {
(0, 0): [Material.AIR, Material.STONE],
(0, 1): [Material.COBBLESTONE]
}
// This is invalid groups. Group1 contains the minimum coordinate what keyed with a CMatter that contains Material.AIR.
groups = [Group1{ (0, 0) }, Group2{ (0, 1) }]// Other invalid pattern
items = {
(0, 0): [Material.STONE],
(0, 1): [Material.AIR, Material.COBBLESTONE]
}
// This is invalid group.
groups = [Group1{ (0, 0), (0, 1) }]GroupRecipe.recipePredicate is always appended to GroupRecipe.predicates automatically, regardless of whether predicates is specified in the constructor.
Since
5.0.15
Parameters
Name of this recipe
Item mapping
Air-containable context set. It can be empty.
Additional predicates prepended before recipePredicate. Defaults to none. recipePredicate is always included automatically and does not need to be added manually.
ResultSupplier list
See also
Constructors
Types
Properties
List of CRecipePredicate that run during recipe matching. null or empty means no additional conditions.
Type of this recipe. See CRecipe.Type.
Functions
Returns CRecipePredicate inspection result on async.
Returns results of suppliers made asynchronously.
Returns CRecipePredicate inspection result
Returns results of suppliers made
Returns the minimum craft count calculated from input item amounts and recipe requirements.
Returns this CRecipe is a valid or not.
Maximum requires input items amount. Inclusive
Minimal requires input items amount