Class RecipeManagerImpl

java.lang.Object
com.github.imdabigboss.easydatapack.backend.managers.RecipeManagerImpl
All Implemented Interfaces:
RecipeManager

public class RecipeManagerImpl extends Object implements RecipeManager
  • Constructor Details

    • RecipeManagerImpl

      public RecipeManagerImpl(EasyDatapack datapack)
  • Method Details

    • registerCustomRecipe

      public void registerCustomRecipe(org.bukkit.inventory.Recipe recipe) throws CustomRecipeException
      Throws:
      CustomRecipeException
    • unregisterAllRecipes

      public void unregisterAllRecipes() throws CustomRecipeException
      Throws:
      CustomRecipeException
    • getRecipeNamespaceKeys

      public @NonNull List<org.bukkit.NamespacedKey> getRecipeNamespaceKeys()
      Description copied from interface: RecipeManager
      Gets a list of all registered custom recipes.
      Specified by:
      getRecipeNamespaceKeys in interface RecipeManager
      Returns:
      a list of all registered custom recipes
    • getRecipe

      public org.bukkit.inventory.Recipe getRecipe(@NonNull org.bukkit.NamespacedKey namespaceKey)
      Description copied from interface: RecipeManager
      Gets a custom recipe from a NamespacedKey.
      Specified by:
      getRecipe in interface RecipeManager
      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.