Package net.kyori.adventure.inventory
Interface Book.Builder
- All Superinterfaces:
- Buildable.Builder<Book>
- Enclosing interface:
- Book
public static interface Book.Builder extends Buildable.Builder<Book>
A builder for a 
Book.- Since:
- 4.0.0
- 
Method SummaryModifier and Type Method Description @NonNull Book.BuilderaddPage(@NonNull Component page)Add a page to the book.@NonNull Book.Builderauthor(@NonNull Component author)Set the author.@NonNull Bookbuild()Builds.@NonNull Book.Builderpages(@NonNull Collection<Component> pages)Add pages to the book.@NonNull Book.Builderpages(@NonNull Component @NonNull ... pages)Add pages to the book.@NonNull Book.Buildertitle(@NonNull Component title)Set the title.
- 
Method Details- 
titleSet the title.- Parameters:
- title- the title
- Returns:
- this
- Since:
- 4.0.0
 
- 
authorSet the author.- Parameters:
- author- the author
- Returns:
- this
- Since:
- 4.0.0
 
- 
addPageAdd 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. - Parameters:
- page- the page
- Returns:
- this
- Since:
- 4.0.0
 
- 
pagesAdd pages to the book.- Parameters:
- pages- pages to add
- Returns:
- this
- Since:
- 4.0.0
- See Also:
- for details on page values
 
- 
pagesAdd pages to the book.- Parameters:
- pages- pages to add
- Returns:
- this
- Since:
- 4.0.0
- See Also:
- for details on page values
 
- 
build@NonNull Book build()Builds.- Specified by:
- buildin interface- Buildable.Builder<Book>
- Returns:
- a new book
 
 
-