| Constructor and Description |
|---|
BookBuilder(org.bukkit.inventory.ItemStack book)
Creates a new instance of the BookBuilder from an ItemStack representing the book item
|
| Modifier and Type | Method and Description |
|---|---|
BookUtil.BookBuilder |
author(String author)
Sets the author of the book
|
org.bukkit.inventory.ItemStack |
build()
Creates the book
|
BookUtil.BookBuilder |
generation(org.bukkit.inventory.meta.BookMeta.Generation generation)
Sets the generation of the book
Only works from MC 1.10
|
BookUtil.BookBuilder |
pages(net.md_5.bungee.api.chat.BaseComponent[]... pages)
Sets the pages of the book
|
BookUtil.BookBuilder |
pages(List<net.md_5.bungee.api.chat.BaseComponent[]> pages)
Sets the pages of the book
|
BookUtil.BookBuilder |
pagesRaw(List<String> pages)
Sets the pages of the book without worrying about json or interactivity
|
BookUtil.BookBuilder |
pagesRaw(String... pages)
Sets the pages of the book without worrying about json or interactivity
|
BookUtil.BookBuilder |
title(String title)
Sets the title of the book
|
public BookBuilder(org.bukkit.inventory.ItemStack book)
book - the book's ItemStackpublic BookUtil.BookBuilder title(String title)
title - the title of the bookpublic BookUtil.BookBuilder author(String author)
author - the author of the bookpublic BookUtil.BookBuilder pagesRaw(String... pages)
pages - text-based pagespublic BookUtil.BookBuilder pagesRaw(List<String> pages)
pages - text-based pagespublic BookUtil.BookBuilder pages(net.md_5.bungee.api.chat.BaseComponent[]... pages)
pages - the pages of the bookpublic BookUtil.BookBuilder pages(List<net.md_5.bungee.api.chat.BaseComponent[]> pages)
pages - the pages of the bookpublic BookUtil.BookBuilder generation(org.bukkit.inventory.meta.BookMeta.Generation generation)
generation - the Book generationpublic org.bukkit.inventory.ItemStack build()
Copyright © 2017. All rights reserved.