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 has to contains GroupRecipe.recipePredicate in GroupRecipe.predicates.
Since
5.0.15
Parameters
Name of this recipe
Item mapping
Air-containable context set. It can be empty.
Predicates of this recipe. (default = listOf(GroupRecipe.recipePredicate))
ResultSupplier list
Always be CRecipe.Type.SHAPED
See also
Constructors
Types
Properties
Functions
Returns CRecipePredicate inspection result on async.
Returns CRecipePredicate inspection result
Returns results of suppliers made
Returns min amount
Returns this CRecipe is a valid or not.
Maximum requires input items amount. Inclusive
Minimal requires input items amount