Class RecipeManagerImpl
java.lang.Object
com.github.imdabigboss.easydatapack.backend.managers.RecipeManagerImpl
- All Implemented Interfaces:
RecipeManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.RecipegetRecipe(@NonNull org.bukkit.NamespacedKey namespaceKey)Gets a custom recipe from aNamespacedKey.@NonNull List<org.bukkit.NamespacedKey>Gets a list of all registered custom recipes.voidregisterCustomRecipe(org.bukkit.inventory.Recipe recipe)void
-
Constructor Details
-
RecipeManagerImpl
-
-
Method Details
-
registerCustomRecipe
- Throws:
CustomRecipeException
-
unregisterAllRecipes
- Throws:
CustomRecipeException
-
getRecipeNamespaceKeys
Description copied from interface:RecipeManagerGets a list of all registered custom recipes.- Specified by:
getRecipeNamespaceKeysin interfaceRecipeManager- Returns:
- a list of all registered custom recipes
-
getRecipe
public org.bukkit.inventory.Recipe getRecipe(@NonNull org.bukkit.NamespacedKey namespaceKey)Description copied from interface:RecipeManagerGets a custom recipe from aNamespacedKey.- Specified by:
getRecipein interfaceRecipeManager- Parameters:
namespaceKey- the namespace key of the custom recipe- Returns:
- the custom recipe with the given key. Will be null if the recipe does not exist.
-