public class CraftingRecipeManager
extends java.lang.Object
| Constructor and Description |
|---|
CraftingRecipeManager(RecipeManager recipeManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRecipe(CraftingRecipe recipe)
Adds a recipe.
|
java.util.Optional<CraftingRecipe> |
getRecipe(CraftingGrid grid)
Gets the recipe that matches the given crafting grid.
|
void |
removeRecipe(CraftingRecipe recipe)
Removes a recipe.
|
public CraftingRecipeManager(RecipeManager recipeManager)
public void addRecipe(CraftingRecipe recipe)
recipe - CraftingRecipepublic void removeRecipe(CraftingRecipe recipe)
recipe - CraftingRecipepublic java.util.Optional<CraftingRecipe> getRecipe(CraftingGrid grid)
grid - crafting grid