java.lang.Object
com.github.retrooper.packetevents.protocol.component.builtin.item.WrittenBookContent

public class WrittenBookContent extends Object
  • 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

      public static WrittenBookContent read(PacketWrapper<?> wrapper)
    • write

      public static void write(PacketWrapper<?> wrapper, WrittenBookContent content)
    • getTitle

      public Filterable<String> getTitle()
    • setTitle

      public void setTitle(Filterable<String> title)
    • getAuthor

      public String getAuthor()
    • setAuthor

      public void setAuthor(String author)
    • getGeneration

      public int getGeneration()
    • setGeneration

      public void setGeneration(int generation)
    • getPage

      @Nullable public @Nullable Filterable<net.kyori.adventure.text.Component> getPage(int index)
    • addPage

      public void addPage(Filterable<net.kyori.adventure.text.Component> page)
    • getPages

      public List<Filterable<net.kyori.adventure.text.Component>> getPages()
    • setPages

      public void setPages(List<Filterable<net.kyori.adventure.text.Component>> pages)
    • isResolved

      public boolean isResolved()
    • setResolved

      public void setResolved(boolean resolved)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object