public final class BookUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BookUtil.BookBuilder
Helps the user to create a book
|
static interface |
BookUtil.ClickAction
A class representing the actions a client can do when a component is clicked
|
static interface |
BookUtil.HoverAction
A class representing the actions a client can do when a component is hovered
|
static class |
BookUtil.PageBuilder
Helps the user creating a book's page
|
static class |
BookUtil.TextBuilder
A more user-friendly version of the Chat Component API designed mainly for book-based operations
NOTE: some (of the more useless) features don't work in some MC versions for client-based errors
|
| Constructor and Description |
|---|
BookUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
openPlayer(org.bukkit.entity.Player p,
org.bukkit.inventory.ItemStack book)
Opens a book GUI to the player
|
static BookUtil.BookBuilder |
writtenBook()
Creates a BookBuilder instance with a written book as the Itemstack's type
|
public static void openPlayer(org.bukkit.entity.Player p,
org.bukkit.inventory.ItemStack book)
p - the playerbook - the book to be openedpublic static BookUtil.BookBuilder writtenBook()
Copyright © 2017. All rights reserved.