Interface KnowledgeBookMeta

    • Method Detail

      • hasRecipes

        boolean hasRecipes()
        Checks for the existence of recipes in the book.
        Returns:
        true if the book has recipes
      • getRecipes

        @NotNull
        List<NamespacedKey> getRecipes()
        Gets all the recipes in the book.
        Returns:
        list of all the recipes in the book
      • setRecipes

        void setRecipes​(@NotNull
                        List<NamespacedKey> recipes)
        Clears the existing book recipes, and sets the book to use the provided recipes.
        Parameters:
        recipes - A list of recipes to set the book to use
      • addRecipe

        void addRecipe​(@NotNull
                       NamespacedKey... recipes)
        Adds new recipe to the end of the book.
        Parameters:
        recipes - A list of recipe keys