Interface Book.Builder

    • Method Detail

      • title

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

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

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