Interface WritableBookContent.Builder
- All Superinterfaces:
DataComponentBuilder<WritableBookContent>
- Enclosing interface:
WritableBookContent
@Experimental
@NonExtendable
public static interface WritableBookContent.Builder
extends DataComponentBuilder<WritableBookContent>
Builder for
WritableBookContent
.-
Method Summary
Modifier and TypeMethodDescriptionaddFilteredPage
(Filtered<String> page) Adds a filterable page that can be written to for this builder.addFilteredPages
(List<Filtered<String>> pages) Adds filterable pages that can be written to for this builder.Adds a page that can be written to for this builder.Adds pages that can be written to for this builder.Methods inherited from interface io.papermc.paper.datacomponent.DataComponentBuilder
build
-
Method Details
-
addPage
Adds a page that can be written to for this builder.- Parameters:
page
- page- Returns:
- the builder for chaining
- See Also:
-
addPages
@Contract(value="_ -> this", mutates="this") WritableBookContent.Builder addPages(List<String> pages) Adds pages that can be written to for this builder.- Parameters:
pages
- pages- Returns:
- the builder for chaining
- See Also:
-
addFilteredPage
@Contract(value="_ -> this", mutates="this") WritableBookContent.Builder addFilteredPage(Filtered<String> page) Adds a filterable page that can be written to for this builder.- Parameters:
page
- page- Returns:
- the builder for chaining
- See Also:
-
addFilteredPages
@Contract(value="_ -> this", mutates="this") WritableBookContent.Builder addFilteredPages(List<Filtered<String>> pages) Adds filterable pages that can be written to for this builder.- Parameters:
pages
- pages- Returns:
- the builder for chaining
- See Also:
-