Package org.bukkit.inventory.meta
Class BookMeta.Spigot
java.lang.Object
org.bukkit.inventory.meta.BookMeta.Spigot
- Enclosing interface:
- BookMeta
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddPage(net.md_5.bungee.api.chat.BaseComponent[]... pages) Adds new pages to the end of the book.net.md_5.bungee.api.chat.BaseComponent[]getPage(int page) Gets the specified page in the book.List<net.md_5.bungee.api.chat.BaseComponent[]> getPages()Gets all the pages in the book.voidsetPage(int page, net.md_5.bungee.api.chat.BaseComponent... data) Sets the specified page in the book.voidClears the existing book pages, and sets the book to use the provided pages.voidsetPages(net.md_5.bungee.api.chat.BaseComponent[]... pages) Clears the existing book pages, and sets the book to use the provided pages.
- 
Constructor Details- 
Spigotpublic Spigot()
 
- 
- 
Method Details- 
getPage@NotNull public net.md_5.bungee.api.chat.BaseComponent[] getPage(int page) Gets the specified page in the book. The given page must exist.- Parameters:
- page- the page number to get
- Returns:
- the page from the book
 
- 
setPagepublic void setPage(int page, @Nullable net.md_5.bungee.api.chat.BaseComponent... data) Sets the specified page in the book. Pages of the book must be contiguous.The data can be up to 256 characters in length, additional characters are truncated. - Parameters:
- page- the page number to set
- data- the data to set for that page
 
- 
getPagesGets all the pages in the book.- Returns:
- list of all the pages in the book
 
- 
setPagesClears the existing book pages, and sets the book to use the provided pages. Maximum 50 pages with 256 characters per page.- Parameters:
- pages- A list of pages to set the book to use
 
- 
setPagespublic void setPages(@NotNull net.md_5.bungee.api.chat.BaseComponent[]... pages) Clears the existing book pages, and sets the book to use the provided pages. Maximum 50 pages with 256 characters per page.- Parameters:
- pages- A list of component arrays, each being a page
 
- 
addPagepublic void addPage(@NotNull net.md_5.bungee.api.chat.BaseComponent[]... pages) Adds new pages to the end of the book. Up to a maximum of 50 pages with 256 characters per page.- Parameters:
- pages- A list of component arrays, each being a page
 
 
-