Interface ShapelessRecipe
- All Superinterfaces:
CraftingRecipe, Recipe
A recipe whose ingredients may sit anywhere in the grid, in any order.
The grid must hold exactly one non-empty slot per ingredient. Each slot is paired with one ingredient that accepts it, then gives up that ingredient's count.
- Since:
- 0.1.0
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe most ingredients a recipe can list, one per slot of a crafting table. -
Method Summary
Methods inherited from interface CraftingRecipe
category, group, match
-
Field Details
-
MAX_INGREDIENTS
static final int MAX_INGREDIENTSThe most ingredients a recipe can list, one per slot of a crafting table.- Since:
- 0.1.0
- See Also:
-
-
Method Details
-
builder
- Parameters:
key- the identifier of the recipe- Returns:
- a builder for a shapeless recipe
- Since:
- 0.1.0
-
ingredients
List<Ingredient> ingredients()- Returns:
- the ingredients, one per non-empty slot the grid must hold
- Since:
- 0.1.0
-
result
ItemStack result()- Returns:
- what one craft gives
- Since:
- 0.1.0
-