接口 KnowledgeBookMeta

所有超级接口:
Cloneable, ConfigurationSerializable, ItemMeta

public interface KnowledgeBookMeta extends ItemMeta
  • 方法详细资料

    • hasRecipes

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

      List<NamespacedKey> getRecipes()
      Gets all the recipes in the book.
      返回:
      list of all the recipes in the book
    • setRecipes

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

      void addRecipe(NamespacedKey... recipes)
      Adds new recipe to the end of the book.
      参数:
      recipes - A list of recipe keys
    • clone

      指定者:
      clone 在接口中 ItemMeta