Interface WrittenBookContent
- All Superinterfaces:
net.kyori.adventure.inventory.BookLike
@NonExtendable
public interface WrittenBookContent
extends net.kyori.adventure.inventory.BookLike
Holds the contents and metadata of a Written Book.
- Since:
- 1.21.3
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionauthor()Player name of the author of this book.@IntRange(from=0L,to=3L) intThe number of times this book has been copied (0 = original).pages()Gets the pages of this book.booleanresolved()If the chat components in this book have already been resolved (entity selectors, scores substituted).title()Title of this book.static WrittenBookContent.BuilderwrittenBookContent(Filtered<String> title, String author) static WrittenBookContent.BuilderwrittenBookContent(String title, String author) Methods inherited from interface net.kyori.adventure.inventory.BookLike
asBook
-
Method Details
-
writtenBookContent
@Contract(value="_, _ -> new", pure=true) static WrittenBookContent.Builder writtenBookContent(String title, String author) - Since:
- 1.21.3
-
writtenBookContent
@Contract(value="_, _ -> new", pure=true) static WrittenBookContent.Builder writtenBookContent(Filtered<String> title, String author) - Since:
- 1.21.3
-
title
-
author
Player name of the author of this book.- Returns:
- author
- Since:
- 1.21.3
-
generation
@Contract(pure=true) @IntRange(from=0L,to=3L) int generation()The number of times this book has been copied (0 = original).- Returns:
- generation
- Since:
- 1.21.3
-
pages
-
resolved
@Contract(pure=true) boolean resolved()If the chat components in this book have already been resolved (entity selectors, scores substituted). Iffalse, will be resolved when opened by a player.- Returns:
- resolved
- Since:
- 1.21.3
-