Interface AdditionsBook


public interface AdditionsBook
Custom AdditionsPlus book. With pages, item flags and options, enchantments, and more.
  • Method Details

    • getName

      String getName()
      Get the identifier of this book.
      Returns:
      Identifier of this book.
    • getItemFlags

      List<org.bukkit.inventory.ItemFlag> getItemFlags()
      Get a List of ItemFlag of this book.
      Returns:
      Get a List of ItemFlag.
    • getEnchantments

      HashMap<org.bukkit.enchantments.Enchantment,Integer> getEnchantments()
      Get a HashMap of Enchantment and their strengths of this book.
      Returns:
      HashMap of Enchantment and their strengths.
    • getItemOptions

      List<ItemOption> getItemOptions()
      Get a List of ItemOption of this book.
      Returns:
      List of ItemOption.
    • getBookName

      String getBookName()
      Get the name of the book.
      Returns:
      Name of the book.
    • getAuthor

      String getAuthor()
      Get the author of the book.
      Returns:
      Author of the book.
    • getTitle

      String getTitle()
      Get the title of the book.
      Returns:
      Title of the book.
    • getGeneration

      String getGeneration()
      Get the generation of the book.
      Returns:
      Generation of the book.
    • getPages

      List<String> getPages()
      Get a List of page contents for this book.
      Returns:
      List of page contents.
    • getSlot

      int getSlot()
      Get the slot of this item.
      Returns:
      Slot of this item.
    • getDisplayName

      @Deprecated String getDisplayName()
      Deprecated.
      Get the display name of this item.
      Returns:
      The display name of this item.
    • getLore

      List<String> getLore()
      Get a List of lore lines.
      Returns:
      List of lore lines.
    • giveBook

      void giveBook(org.bukkit.entity.Player player)
      Give the book to a player.
      Parameters:
      player - Player to give the book to.