Interface TransmuteRecipe.Builder
- Enclosing interface:
TransmuteRecipe
public static interface TransmuteRecipe.Builder
Builds a
TransmuteRecipe.
Builders are mutable and are not safe to share between threads.
- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptionaddMaterialCountToResult(boolean add) build()category(CraftingCategory category) input(Ingredient input) keepInputItem(int count) Keeps the item of the input: one craft givescountcopies of it.material(Ingredient material) materialCount(int min, int max) Makes the input become another item.
-
Method Details
-
input
- Parameters:
input- the item transformed- Returns:
- this builder
- Since:
- 0.1.0
-
material
- Parameters:
material- what transforms it- Returns:
- this builder
- Since:
- 0.1.0
-
materialCount
- Parameters:
min- the fewest materials, at least1max- the most materials, at leastminand at most8- Returns:
- this builder
- Since:
- 0.1.0
-
result
Makes the input become another item. Its count is how many items one craft gives and its components go on top of those of the input.- Parameters:
result- the item the input becomes- Returns:
- this builder
- Since:
- 0.1.0
-
keepInputItem
Keeps the item of the input: one craft givescountcopies of it.- Parameters:
count- how many items one craft gives- Returns:
- this builder
- Since:
- 0.1.0
-
addMaterialCountToResult
- Parameters:
add- whether the result gains one item per material- 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
TransmuteRecipe build()- Returns:
- the recipe
- Throws:
IllegalArgumentException- if the input or the material is missing- Since:
- 0.1.0
-