| Constructor and Description |
|---|
PageBuilder() |
| Modifier and Type | Method and Description |
|---|---|
BookUtil.PageBuilder |
add(net.md_5.bungee.api.chat.BaseComponent... components)
Adds one or more components to the page
|
BookUtil.PageBuilder |
add(net.md_5.bungee.api.chat.BaseComponent component)
Adds a component to the page
|
BookUtil.PageBuilder |
add(Collection<net.md_5.bungee.api.chat.BaseComponent> components)
Adds one or more components to the page
|
BookUtil.PageBuilder |
add(String text)
Adds a simple black-colored text to the page
|
net.md_5.bungee.api.chat.BaseComponent[] |
build()
Builds the page
|
BookUtil.PageBuilder |
newLine()
Adds a newline to the page (equivalent of adding \n to the previous component)
|
static BookUtil.PageBuilder |
of(net.md_5.bungee.api.chat.BaseComponent... text)
Creates a new PageBuilder instance wih the parameter as the initial components
|
static BookUtil.PageBuilder |
of(net.md_5.bungee.api.chat.BaseComponent text)
Creates a new PageBuilder instance wih the parameter as the initial component
|
static BookUtil.PageBuilder |
of(String text)
Creates a new PageBuilder instance wih the parameter as the initial text
|
public BookUtil.PageBuilder add(String text)
text - the text to addpublic BookUtil.PageBuilder add(net.md_5.bungee.api.chat.BaseComponent component)
component - the component to addpublic BookUtil.PageBuilder add(net.md_5.bungee.api.chat.BaseComponent... components)
components - the components to addpublic BookUtil.PageBuilder add(Collection<net.md_5.bungee.api.chat.BaseComponent> components)
components - the components to addpublic BookUtil.PageBuilder newLine()
public net.md_5.bungee.api.chat.BaseComponent[] build()
public static BookUtil.PageBuilder of(String text)
text - the initial text of the pagepublic static BookUtil.PageBuilder of(net.md_5.bungee.api.chat.BaseComponent text)
text - the initial component of the pagepublic static BookUtil.PageBuilder of(net.md_5.bungee.api.chat.BaseComponent... text)
text - the initial components of the pageCopyright © 2017. All rights reserved.