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 tf
intermediary net/minecraft/class_2820
named net/minecraft/network/packet/c2s/play/BookUpdateC2SPacket
  • Field Details

    • book

      private ItemStack book
      Mappings:
      Namespace Name Mixin selector
      official a Ltf;a:Lbnv;
      intermediary field_12863 Lnet/minecraft/class_2820;field_12863:Lnet/minecraft/class_1799;
      named book Lnet/minecraft/network/packet/c2s/play/BookUpdateC2SPacket;book:Lnet/minecraft/item/ItemStack;
    • signed

      private boolean signed
      Mappings:
      Namespace Name Mixin selector
      official b Ltf;b:Z
      intermediary field_12864 Lnet/minecraft/class_2820;field_12864:Z
      named signed Lnet/minecraft/network/packet/c2s/play/BookUpdateC2SPacket;signed:Z
    • slot

      private int slot
      Mappings:
      Namespace Name Mixin selector
      official c Ltf;c:I
      intermediary field_26897 Lnet/minecraft/class_2820;field_26897:I
      named slot Lnet/minecraft/network/packet/c2s/play/BookUpdateC2SPacket;slot:I
  • Constructor Details

    • BookUpdateC2SPacket

      public BookUpdateC2SPacket()
    • BookUpdateC2SPacket

      @Environment(CLIENT) public BookUpdateC2SPacket​(ItemStack book, boolean signed, int slot)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ltf;<init>(Lbnv;ZI)V
      intermediary <init> Lnet/minecraft/class_2820;<init>(Lnet/minecraft/class_1799;ZI)V
      named <init> Lnet/minecraft/network/packet/c2s/play/BookUpdateC2SPacket;<init>(Lnet/minecraft/item/ItemStack;ZI)V
  • Method Details

    • read

      public void read​(PacketByteBuf buf) throws IOException
      Specified by:
      read in interface Packet<ServerPlayPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lpa;a(Lnw;)V
      intermediary method_11053 Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)V
      named read Lnet/minecraft/network/Packet;read(Lnet/minecraft/network/PacketByteBuf;)V
    • write

      public void write​(PacketByteBuf buf) throws IOException
      Specified by:
      write in interface Packet<ServerPlayPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Lpa;b(Lnw;)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 Ltf;a(Lss;)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
    • getBook

      public ItemStack getBook()
      Mappings:
      Namespace Name Mixin selector
      official b Ltf;b()Lbnv;
      intermediary method_12237 Lnet/minecraft/class_2820;method_12237()Lnet/minecraft/class_1799;
      named getBook Lnet/minecraft/network/packet/c2s/play/BookUpdateC2SPacket;getBook()Lnet/minecraft/item/ItemStack;
    • wasSigned

      public boolean wasSigned()
      Mappings:
      Namespace Name Mixin selector
      official c Ltf;c()Z
      intermediary method_12238 Lnet/minecraft/class_2820;method_12238()Z
      named wasSigned Lnet/minecraft/network/packet/c2s/play/BookUpdateC2SPacket;wasSigned()Z
    • getSlot

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