MatchGroup

A group of recipe slots (identified by their CoordinateComponent keys in CRecipe.items) that is satisfied as a whole rather than slot-by-slot.

Used by CRecipe.matchGroups to tell CRecipe.Type.SHAPELESS matching how many of members must actually be filled by an input item. A recipe slot whose coordinate is not covered by matching is simply never assigned an input; unlike GroupRecipe, no Material.AIR placeholder candidate is required to express "this slot may stay empty".

Since

5.3.0

Parameters

members

Coordinates (keys of CRecipe.items) belonging to this group. Must not be empty.

min

Minimum number of members that must be matched to an input item. Must be >= 0.

max

Maximum number of members that may be matched to an input item. Must be in range min..members.size.

See also

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val max: Int
Link copied to clipboard
Link copied to clipboard
val min: Int