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.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.BuilderSet the title.- Specified by:
titlein interfaceBook.Builder- Parameters:
title- the title- Returns:
- this
-
author
Description copied from interface:net.kyori.adventure.inventory.Book.BuilderSet the author.- Specified by:
authorin interfaceBook.Builder- Parameters:
author- the author- Returns:
- this
-
addPage
Description copied from interface:net.kyori.adventure.inventory.Book.BuilderAdd 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:
addPagein interfaceBook.Builder- Parameters:
page- the page- Returns:
- this
-
pages
Description copied from interface:net.kyori.adventure.inventory.Book.BuilderAdd pages to the book.- Specified by:
pagesin interfaceBook.Builder- Parameters:
pages- pages to add- Returns:
- this
- See Also:
-
pages
Description copied from interface:net.kyori.adventure.inventory.Book.BuilderAdd pages to the book.- Specified by:
pagesin interfaceBook.Builder- Parameters:
pages- pages to add- Returns:
- this
- See Also:
-
build
Description copied from interface:net.kyori.adventure.inventory.Book.BuilderBuilds.- Specified by:
buildin interfaceAbstractBuilder<Book>- Specified by:
buildin interfaceBook.Builder- Specified by:
buildin interfaceBuildable.Builder<Book>- Returns:
- a new book
-