Class BookUpdateC2SPacket

java.lang.Object
net.minecraft.network.packet.c2s.play.BookUpdateC2SPacket
All Implemented Interfaces:
Packet<ServerPlayPacketListener>

public class BookUpdateC2SPacket extends Object implements Packet<ServerPlayPacketListener>
Mappings:
Namespace Name
official vd
intermediary net/minecraft/class_2820
named net/minecraft/network/packet/c2s/play/BookUpdateC2SPacket
  • Field Details

    • field_34038

      public static final int field_34038
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lvd;a:I
      intermediary field_34038 Lnet/minecraft/class_2820;field_34038:I
      named field_34038 Lnet/minecraft/network/packet/c2s/play/BookUpdateC2SPacket;field_34038:I
    • MAX_TITLE_LENGTH

      private static final int MAX_TITLE_LENGTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lvd;b:I
      intermediary field_34039 Lnet/minecraft/class_2820;field_34039:I
      named MAX_TITLE_LENGTH Lnet/minecraft/network/packet/c2s/play/BookUpdateC2SPacket;MAX_TITLE_LENGTH:I
    • MAX_PAGE_LENGTH

      private static final int MAX_PAGE_LENGTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lvd;c:I
      intermediary field_34040 Lnet/minecraft/class_2820;field_34040:I
      named MAX_PAGE_LENGTH Lnet/minecraft/network/packet/c2s/play/BookUpdateC2SPacket;MAX_PAGE_LENGTH:I
    • MAX_PAGES

      private static final int MAX_PAGES
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lvd;d:I
      intermediary field_34046 Lnet/minecraft/class_2820;field_34046:I
      named MAX_PAGES Lnet/minecraft/network/packet/c2s/play/BookUpdateC2SPacket;MAX_PAGES:I
    • slot

      private final int slot
      Mappings:
      Namespace Name Mixin selector
      official e Lvd;e:I
      intermediary field_26897 Lnet/minecraft/class_2820;field_26897:I
      named slot Lnet/minecraft/network/packet/c2s/play/BookUpdateC2SPacket;slot:I
    • pages

      private final List<String> pages
      Mappings:
      Namespace Name Mixin selector
      official f Lvd;f:Ljava/util/List;
      intermediary field_34041 Lnet/minecraft/class_2820;field_34041:Ljava/util/List;
      named pages Lnet/minecraft/network/packet/c2s/play/BookUpdateC2SPacket;pages:Ljava/util/List;
    • title

      private final Optional<String> title
      Mappings:
      Namespace Name Mixin selector
      official g Lvd;g:Ljava/util/Optional;
      intermediary field_34042 Lnet/minecraft/class_2820;field_34042:Ljava/util/Optional;
      named title Lnet/minecraft/network/packet/c2s/play/BookUpdateC2SPacket;title:Ljava/util/Optional;
  • Constructor Details

    • BookUpdateC2SPacket

      public BookUpdateC2SPacket(int slot, List<String> pages, Optional<String> title)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lvd;<init>(ILjava/util/List;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_2820;<init>(ILjava/util/List;Ljava/util/Optional;)V
      named <init> Lnet/minecraft/network/packet/c2s/play/BookUpdateC2SPacket;<init>(ILjava/util/List;Ljava/util/Optional;)V
    • BookUpdateC2SPacket

      public BookUpdateC2SPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lvd;<init>(Lph;)V
      intermediary <init> Lnet/minecraft/class_2820;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/c2s/play/BookUpdateC2SPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
  • Method Details

    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ServerPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lql;a(Lph;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • apply

      public void apply(ServerPlayPacketListener serverPlayPacketListener)
      Specified by:
      apply in interface Packet<ServerPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lvd;a(Lur;)V
      intermediary method_12236 Lnet/minecraft/class_2820;method_12236(Lnet/minecraft/class_2792;)V
      named apply Lnet/minecraft/network/packet/c2s/play/BookUpdateC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
    • getPages

      public List<String> getPages()
      Mappings:
      Namespace Name Mixin selector
      official b Lvd;b()Ljava/util/List;
      intermediary method_37442 Lnet/minecraft/class_2820;method_37442()Ljava/util/List;
      named getPages Lnet/minecraft/network/packet/c2s/play/BookUpdateC2SPacket;getPages()Ljava/util/List;
    • getTitle

      public Optional<String> getTitle()
      Mappings:
      Namespace Name Mixin selector
      official c Lvd;c()Ljava/util/Optional;
      intermediary method_37445 Lnet/minecraft/class_2820;method_37445()Ljava/util/Optional;
      named getTitle Lnet/minecraft/network/packet/c2s/play/BookUpdateC2SPacket;getTitle()Ljava/util/Optional;
    • getSlot

      public int getSlot()
      Mappings:
      Namespace Name Mixin selector
      official d Lvd;d()I
      intermediary method_12235 Lnet/minecraft/class_2820;method_12235()I
      named getSlot Lnet/minecraft/network/packet/c2s/play/BookUpdateC2SPacket;getSlot()I