Package me.bimmr.bimmcore.gui.book
Class Book
- java.lang.Object
-
- me.bimmr.bimmcore.gui.book.Book
-
public class Book extends java.lang.Object
A Utilities class for creating a Book and opening it
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Book.BookAPI
-
Constructor Summary
Constructors Constructor Description Book()
-
Method Summary
Modifier and Type Method Description Book
addBlankLine()
Add blank line chat menu.Book
addBlankLine(int page)
Add blank line chat menu.Book
addLine(int page, java.lang.String message)
Add line chat menu.Book
addLine(int page, FancyMessage message)
Add line chat menu.Book
addLine(java.lang.String message)
Add line chat menu.Book
addLine(FancyMessage message)
Add line chat menu.org.bukkit.inventory.ItemStack
getAsItem()
java.util.ArrayList<java.util.ArrayList<FancyMessage>>
getLines()
Gets lines.java.util.ArrayList<FancyMessage>
getLines(int page)
Gets lines.Book
nextPage()
Next page chat menu.Book
setLine(int page, int line, java.lang.String message)
Sets line.Book
setLine(int page, int line, FancyMessage message)
Sets line.Book
setLine(int line, java.lang.String message)
Sets line.Book
setLine(int line, FancyMessage message)
Sets line.void
show(org.bukkit.entity.Player player)
Open the book for a playerBook
toBottom(int space)
To bottom chat menu.
-
-
-
Method Detail
-
getLines
public java.util.ArrayList<java.util.ArrayList<FancyMessage>> getLines()
Gets lines.- Returns:
- the lines
-
getLines
public java.util.ArrayList<FancyMessage> getLines(int page)
Gets lines.- Parameters:
page
- the page- Returns:
- the lines
-
addLine
public Book addLine(java.lang.String message)
Add line chat menu.- Parameters:
message
- the message- Returns:
- the chat menu
-
addLine
public Book addLine(FancyMessage message)
Add line chat menu.- Parameters:
message
- the message- Returns:
- the chat menu
-
addLine
public Book addLine(int page, java.lang.String message)
Add line chat menu.- Parameters:
page
- the pagemessage
- the message- Returns:
- the chat menu
-
addLine
public Book addLine(int page, FancyMessage message)
Add line chat menu.- Parameters:
page
- the pagemessage
- the message- Returns:
- the chat menu
-
setLine
public Book setLine(int line, java.lang.String message)
Sets line.- Parameters:
line
- the linemessage
- the message- Returns:
- the line
-
setLine
public Book setLine(int page, int line, java.lang.String message)
Sets line.- Parameters:
page
- the pageline
- the linemessage
- the message- Returns:
- the line
-
setLine
public Book setLine(int line, FancyMessage message)
Sets line.- Parameters:
line
- the linemessage
- the message- Returns:
- the line
-
setLine
public Book setLine(int page, int line, FancyMessage message)
Sets line.- Parameters:
page
- the pageline
- the linemessage
- the message- Returns:
- the line
-
nextPage
public Book nextPage()
Next page chat menu.- Returns:
- the chat menu
-
addBlankLine
public Book addBlankLine()
Add blank line chat menu.- Returns:
- the chat menu
-
addBlankLine
public Book addBlankLine(int page)
Add blank line chat menu.- Parameters:
page
- the page- Returns:
- the chat menu
-
toBottom
public Book toBottom(int space)
To bottom chat menu.- Parameters:
space
- the space- Returns:
- the chat menu
-
show
public void show(org.bukkit.entity.Player player)
Open the book for a player- Parameters:
player
- The player
-
getAsItem
public org.bukkit.inventory.ItemStack getAsItem()
- Returns:
- Get the book as an ItemStack
-
-