public interface BookHelper
| Modifier and Type | Method and Description |
|---|---|
default net.md_5.bungee.api.chat.BaseComponent[] |
itemToComponents(org.bukkit.inventory.ItemStack item)
Translates an ItemStack to his Chat-Component equivalent
|
default String |
itemToJson(org.bukkit.inventory.ItemStack item)
Translates an ItemStack to his json equivalent
|
void |
openBook(org.bukkit.entity.Player player,
org.bukkit.inventory.ItemStack book)
Opens the book to a player (the player needs to have the book in one of his
hands)
|
void |
setPages(org.bukkit.inventory.meta.BookMeta meta,
net.md_5.bungee.api.chat.BaseComponent[][] components)
Sets the pages of the book to the components json equivalent
|
void setPages(org.bukkit.inventory.meta.BookMeta meta,
net.md_5.bungee.api.chat.BaseComponent[][] components)
meta - the book meta to changecomponents - the pages of the bookvoid openBook(org.bukkit.entity.Player player,
org.bukkit.inventory.ItemStack book)
player - the playerbook - the book to opendefault net.md_5.bungee.api.chat.BaseComponent[] itemToComponents(org.bukkit.inventory.ItemStack item)
item - the item to be converteddefault String itemToJson(org.bukkit.inventory.ItemStack item)
item - the item to be convertedCopyright © 2021. All rights reserved.