Interface ShapelessRecipe.Builder
- Enclosing interface:
ShapelessRecipe
public static interface ShapelessRecipe.Builder
Builds a
ShapelessRecipe.
Builders are mutable and are not safe to share between threads.
- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()category(CraftingCategory category) ingredient(Ingredient ingredient) ingredient(Ingredient ingredient, int slots)
-
Method Details
-
ingredient
- Parameters:
ingredient- one more ingredient, fed by its own slot- Returns:
- this builder
- Since:
- 0.1.0
-
ingredient
- Parameters:
ingredient- an ingredient to list several timesslots- how many slots it fills, each with its own count- Returns:
- this builder
- Since:
- 0.1.0
-
result
- Parameters:
result- what one craft gives- Returns:
- this builder
- Since:
- 0.1.0
-
group
- Parameters:
group- the recipe book group, empty for none- Returns:
- this builder
- Since:
- 0.1.0
-
category
- Parameters:
category- the recipe book tab- Returns:
- this builder
- Since:
- 0.1.0
-
build
ShapelessRecipe build()- Returns:
- the recipe
- Throws:
IllegalArgumentException- if there are no or too many ingredients, or no result- Since:
- 0.1.0
-