Package org.bukkit.inventory.meta
Interface BookMeta.BookMetaBuilder
- All Superinterfaces:
Book.Builder
,Buildable.Builder<Book>
- Enclosing interface:
- BookMeta
-
Method Summary
Modifier and TypeMethodDescriptionAdd a page to the book.Set the author.build()
Builds.Add pages to the book.pages(Collection<Component> pages)
Add pages to the book.Set the title.
-
Method Details
-
title
Description copied from interface:net.kyori.adventure.inventory.Book.Builder
Set the title.- Specified by:
title
in interfaceBook.Builder
- Parameters:
title
- the title- Returns:
- this
-
author
Description copied from interface:net.kyori.adventure.inventory.Book.Builder
Set the author.- Specified by:
author
in interfaceBook.Builder
- Parameters:
author
- the author- Returns:
- this
-
addPage
Description copied from interface:net.kyori.adventure.inventory.Book.Builder
Add a page to the book.Each page's length will be limited by the size of the client's book viewer. Any text that does not fit will be truncated clientside.
- Specified by:
addPage
in interfaceBook.Builder
- Parameters:
page
- the page- Returns:
- this
-
pages
Description copied from interface:net.kyori.adventure.inventory.Book.Builder
Add pages to the book.- Specified by:
pages
in interfaceBook.Builder
- Parameters:
pages
- pages to add- Returns:
- this
- See Also:
for details on page values
-
pages
Description copied from interface:net.kyori.adventure.inventory.Book.Builder
Add pages to the book.- Specified by:
pages
in interfaceBook.Builder
- Parameters:
pages
- pages to add- Returns:
- this
- See Also:
for details on page values
-
build
Description copied from interface:net.kyori.adventure.inventory.Book.Builder
Builds.- Specified by:
build
in interfaceBook.Builder
- Specified by:
build
in interfaceBuildable.Builder<Book>
- Returns:
- a new book
-