public static class BookMeta.Spigot extends ItemMeta.Spigot
| Constructor and Description |
|---|
Spigot() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPage(BaseComponent[]... pages)
Adds new pages to the end of the book.
|
BaseComponent[] |
getPage(int page)
Gets the specified page in the book.
|
java.util.List<BaseComponent[]> |
getPages()
Gets all the pages in the book.
|
void |
setPage(int page,
BaseComponent... data)
Sets the specified page in the book.
|
void |
setPages(BaseComponent[]... pages)
Clears the existing book pages, and sets the book to use the provided
pages.
|
void |
setPages(java.util.List<BaseComponent[]> pages)
Clears the existing book pages, and sets the book to use the provided
pages.
|
isUnbreakable, setUnbreakablepublic BaseComponent[] getPage(int page)
page - the page number to getpublic void setPage(int page,
BaseComponent... data)
The data can be up to 256 characters in length, additional characters are truncated.
page - the page number to setdata - the data to set for that pagepublic java.util.List<BaseComponent[]> getPages()
public void setPages(java.util.List<BaseComponent[]> pages)
pages - A list of pages to set the book to usepublic void setPages(BaseComponent[]... pages)
pages - A list of component arrays, each being a pagepublic void addPage(BaseComponent[]... pages)
pages - A list of component arrays, each being a page