Interface RecipeManager

All Known Implementing Classes:
RecipeManagerImpl

public interface RecipeManager
This class is used to manage custom recipes.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable org.bukkit.inventory.Recipe
    getRecipe​(@NonNull org.bukkit.NamespacedKey namespaceKey)
    Gets a custom recipe from a NamespacedKey.
    @NonNull List<org.bukkit.NamespacedKey>
    Gets a list of all registered custom recipes.
  • Method Details

    • getRecipeNamespaceKeys

      @NonNull List<org.bukkit.NamespacedKey> getRecipeNamespaceKeys()
      Gets a list of all registered custom recipes.
      Returns:
      a list of all registered custom recipes
    • getRecipe

      @Nullable org.bukkit.inventory.Recipe getRecipe(@NonNull org.bukkit.NamespacedKey namespaceKey)
      Gets a custom recipe from a NamespacedKey.
      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.