Interface KnowledgeBookMeta

All Superinterfaces:
Cloneable, ConfigurationSerializable, ItemMeta, PersistentDataHolder, PersistentDataViewHolder

public interface KnowledgeBookMeta extends ItemMeta
Since:
1.12
  • Method Details

    • hasRecipes

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

      Gets all the recipes in the book.
      Returns:
      list of all the recipes in the book
      Since:
      1.12
    • setRecipes

      void setRecipes(@NotNull @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
      Since:
      1.12
    • addRecipe

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

      Specified by:
      clone in interface ItemMeta