public class Book extends Object
Material.WRITTEN_BOOK.| 限定符和类型 | 方法和说明 |
|---|---|
Book |
addPage(net.md_5.bungee.api.chat.BaseComponent... text)
Adds new pages to the end of the book.
|
Book |
addPage(@Nullable String text)
Adds new pages to the end of the book.
|
@NotNull net.md_5.bungee.api.chat.BaseComponent[] |
getPage(int page) |
@NotNull List<net.md_5.bungee.api.chat.BaseComponent[]> |
getPages() |
Book |
setPage(int page,
net.md_5.bungee.api.chat.BaseComponent... text)
Sets the specified page in the book.
|
Book |
setPage(int page,
@Nullable String text)
Sets the specified page in the book.
|
public Book()
public Book(@NotNull
String... text)
public Book(@NotNull
net.md_5.bungee.api.chat.BaseComponent[]... text)
public Book addPage(@Nullable @Nullable String text)
text - the String text to be added to the pagepublic Book addPage(@NotNull net.md_5.bungee.api.chat.BaseComponent... text)
text - the BaseComponent text to be added to the pagepublic Book setPage(int page, @Nullable @Nullable String text) throws IndexOutOfBoundsException
page - the page number to settext - the String text to be set for that pageIndexOutOfBoundsException - if the page number is invalidpublic Book setPage(int page, @NotNull net.md_5.bungee.api.chat.BaseComponent... text) throws IndexOutOfBoundsException
page - the page number to settext - the BaseComponent text to be set for that pageIndexOutOfBoundsException - if the page number is invalid@NotNull public @NotNull net.md_5.bungee.api.chat.BaseComponent[] getPage(int page)
@NotNull public @NotNull List<net.md_5.bungee.api.chat.BaseComponent[]> getPages()
Copyright © 2025. All rights reserved.