Interface Facet.Book<V,M,B>
- Type Parameters:
V- a viewer typeM- a message typeB- a book type
- All Superinterfaces:
Facet<V>,Facet.Message<V,M>
A facet that opens a book.
- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.kyori.adventure.platform.facet.Facet
Facet.ActionBar<V,M>, Facet.Book<V, M, B>, Facet.BossBar<V>, Facet.BossBarEntity<V, P>, Facet.BossBarPacket<V>, Facet.Chat<V, M>, Facet.ChatPacket<V, M>, Facet.EntitySound<V, M>, Facet.FakeEntity<V, P>, Facet.Message<V, M>, Facet.Pointers<V>, Facet.Position<V, P>, Facet.Sound<V, P>, Facet.TabList<V, M>, Facet.Title<V, M, C, T>, Facet.TitlePacket<V, M, C, T> -
Field Summary
Fields inherited from interface net.kyori.adventure.platform.facet.Facet.Message
PROTOCOL_HEX_COLOR, PROTOCOL_JSON, VERSION_HEX_COLOR -
Method Summary
Methods inherited from interface net.kyori.adventure.platform.facet.Facet
isApplicable, isSupportedMethods inherited from interface net.kyori.adventure.platform.facet.Facet.Message
createMessage
-
Method Details
-
createBook
@Nullable B createBook(@NotNull @NotNull String title, @NotNull @NotNull String author, @NotNull @NotNull Iterable<M> pages) Creates a book.- Parameters:
title- a titleauthor- an authorpages- a collection of pages- Returns:
- a book or
null - Since:
- 4.0.0
-
openBook
Opens a book.- Parameters:
viewer- a viewerbook- a book- Since:
- 4.0.0
-