Package org.bukkit.inventory.meta
Interface BookMeta.BookMetaBuilder
- All Superinterfaces:
AbstractBuilder<Book>
,Book.Builder
,Buildable.Builder<Book>
- Enclosing interface:
- BookMeta
-
Method Summary
Modifier and TypeMethodDescriptionAdd a page to the book.Set the author.build()
Builds.pages
(@NotNull Collection<Component> pages) Add pages to the book.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:
-
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:
-
build
Description copied from interface:net.kyori.adventure.inventory.Book.Builder
Builds.- Specified by:
build
in interfaceAbstractBuilder<Book>
- Specified by:
build
in interfaceBook.Builder
- Specified by:
build
in interfaceBuildable.Builder<Book>
- Returns:
- a new book
-