Interface Book
- All Superinterfaces:
BookLike, Buildable<Book.Builder>
Represents the in-game interface of a book.
Components exceeding the text limit for a page will be truncated client-side and not moved automatically to the next page.
- Since:
- 4.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionauthor()Gets the author.Changes the book's author.static Bookbook(Collection<Component> pages) Creates a book with title and author set toComponent.empty().static BookCreates a book with title and author set toComponent.empty().static Bookbook(Component title, Component author, Collection<Component> pages) Creates a book.static BookCreates a book.static Book.Builderbuilder()Create a new builder that will create aBook.pages()Gets the list of pages.Returns an updated book with the provided pages.default BookReturns an updated book with the provided pages.title()Gets the title.Changes the book's title.
-
Method Details
-
book
Creates a book.- Parameters:
title- the titleauthor- the authorpages- the collection of pages- Returns:
- a book
- Since:
- 4.0.0
-
book
-
book
Creates a book with title and author set toComponent.empty().- Parameters:
pages- the collection of pages- Returns:
- a book
- Since:
- 5.1.0
-
book
Creates a book with title and author set toComponent.empty().- Parameters:
pages- an array of pages- Returns:
- a book
- Since:
- 5.1.0
-
builder
Create a new builder that will create aBook.- Returns:
- a builder
- Since:
- 4.0.0
-
title
-
title
-
author
-
author
-
pages
-
pages
-
pages
-