Interface AdditionsBook
public interface AdditionsBook
Custom AdditionsPlus book.
With pages, item flags and options, enchantments, and more.
-
Method Summary
Modifier and TypeMethodDescriptionGet the author of the book.Get the name of the book.Deprecated.Get aHashMap
ofEnchantment
and their strengths of this book.Get the generation of the book.List<org.bukkit.inventory.ItemFlag>
Get aList
ofItemFlag
of this book.Get aList
ofItemOption
of this book.getLore()
Get aList
of lore lines.getName()
Get the identifier of this book.getPages()
Get aList
of page contents for this book.int
getSlot()
Get the slot of this item.getTitle()
Get the title of the book.void
giveBook
(org.bukkit.entity.Player player) Give the book to a player.
-
Method Details
-
getName
String getName()Get the identifier of this book.- Returns:
- Identifier of this book.
-
getItemFlags
List<org.bukkit.inventory.ItemFlag> getItemFlags()Get aList
ofItemFlag
of this book.- Returns:
- Get a
List
ofItemFlag
.
-
getEnchantments
Get aHashMap
ofEnchantment
and their strengths of this book.- Returns:
HashMap
ofEnchantment
and their strengths.
-
getItemOptions
List<ItemOption> getItemOptions()Get aList
ofItemOption
of this book.- Returns:
List
ofItemOption
.
-
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
Get aList
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.Get the display name of this item.- Returns:
- The display name of this item.
-
getLore
Get aList
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.
-