Interface Book.Builder

All Superinterfaces:
AbstractBuilder<Book>
Enclosing interface:
Book

public static sealed interface Book.Builder extends AbstractBuilder<Book>
A builder for a Book.
Since:
4.0.0
  • Method Details

    • title

      @Contract("_ -> this") Book.Builder title(Component title)
      Set the title.
      Parameters:
      title - the title
      Returns:
      this
      Since:
      4.0.0
    • author

      @Contract("_ -> this") Book.Builder author(Component author)
      Set the author.
      Parameters:
      author - the author
      Returns:
      this
      Since:
      4.0.0
    • addPage

      @Contract("_ -> this") Book.Builder addPage(Component page)
      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.

      Parameters:
      page - the page
      Returns:
      this
      Since:
      4.0.0
    • pages

      @Contract("_ -> this") Book.Builder pages(Component... pages)
      Add pages to the book.
      Parameters:
      pages - pages to add
      Returns:
      this
      Since:
      4.0.0
      See Also:
    • pages

      @Contract("_ -> this") Book.Builder pages(Collection<Component> pages)
      Add pages to the book.
      Parameters:
      pages - pages to add
      Returns:
      this
      Since:
      4.0.0
      See Also: