java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.inventory.ServerboundEditBookPacket
All Implemented Interfaces:
Packet, MinecraftPacket

public class ServerboundEditBookPacket extends Object implements MinecraftPacket
  • Constructor Details

    • ServerboundEditBookPacket

      public ServerboundEditBookPacket(io.netty.buffer.ByteBuf in)
    • ServerboundEditBookPacket

      public ServerboundEditBookPacket(int slot, List<String> pages, @Nullable String title)
  • Method Details

    • serialize

      public void serialize(io.netty.buffer.ByteBuf out)
      Specified by:
      serialize in interface MinecraftPacket
    • getSlot

      public int getSlot()
    • getPages

      public List<String> getPages()
    • getTitle

      public @Nullable String getTitle()
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class Object
    • withSlot

      public @NonNull ServerboundEditBookPacket withSlot(int slot)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPages

      public @NonNull ServerboundEditBookPacket withPages(List<String> pages)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withTitle

      public @NonNull ServerboundEditBookPacket withTitle(@Nullable String title)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).