Class WrittenBookContent
java.lang.Object
com.github.retrooper.packetevents.protocol.component.builtin.item.WrittenBookContent
-
Constructor Summary
ConstructorDescriptionWrittenBookContent
(Filterable<String> title, String author, int generation, List<Filterable<net.kyori.adventure.text.Component>> pages, boolean resolved) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPage
(Filterable<net.kyori.adventure.text.Component> page) boolean
int
@Nullable Filterable
<net.kyori.adventure.text.Component> getPage
(int index) List
<Filterable<net.kyori.adventure.text.Component>> getPages()
getTitle()
int
hashCode()
boolean
static WrittenBookContent
read
(PacketWrapper<?> wrapper) void
void
setGeneration
(int generation) void
setPages
(List<Filterable<net.kyori.adventure.text.Component>> pages) void
setResolved
(boolean resolved) void
setTitle
(Filterable<String> title) static void
write
(PacketWrapper<?> wrapper, WrittenBookContent content)
-
Constructor Details
-
WrittenBookContent
public WrittenBookContent(Filterable<String> title, String author, int generation, List<Filterable<net.kyori.adventure.text.Component>> pages, boolean resolved)
-
-
Method Details
-
read
-
write
-
getTitle
-
setTitle
-
getAuthor
-
setAuthor
-
getGeneration
public int getGeneration() -
setGeneration
public void setGeneration(int generation) -
getPage
-
addPage
-
getPages
-
setPages
-
isResolved
public boolean isResolved() -
setResolved
public void setResolved(boolean resolved) -
equals
-
hashCode
public int hashCode()
-