Class NbtQueryResponseS2CPacket

java.lang.Object
net.minecraft.network.packet.s2c.play.NbtQueryResponseS2CPacket
All Implemented Interfaces:
Packet<ClientPlayPacketListener>

public class NbtQueryResponseS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Mappings:
Namespace Name
official td
intermediary net/minecraft/class_2774
named net/minecraft/network/packet/s2c/play/NbtQueryResponseS2CPacket
  • Field Details

    • transactionId

      private final int transactionId
      Mappings:
      Namespace Name Mixin selector
      official a Ltd;a:I
      intermediary field_12691 Lnet/minecraft/class_2774;field_12691:I
      named transactionId Lnet/minecraft/network/packet/s2c/play/NbtQueryResponseS2CPacket;transactionId:I
    • nbt

      @Nullable private final @Nullable NbtCompound nbt
      Mappings:
      Namespace Name Mixin selector
      official b Ltd;b:Lna;
      intermediary field_12690 Lnet/minecraft/class_2774;field_12690:Lnet/minecraft/class_2487;
      named nbt Lnet/minecraft/network/packet/s2c/play/NbtQueryResponseS2CPacket;nbt:Lnet/minecraft/nbt/NbtCompound;
  • Constructor Details

    • NbtQueryResponseS2CPacket

      public NbtQueryResponseS2CPacket(int transactionId, @Nullable @Nullable NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ltd;<init>(ILna;)V
      intermediary <init> Lnet/minecraft/class_2774;<init>(ILnet/minecraft/class_2487;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/NbtQueryResponseS2CPacket;<init>(ILnet/minecraft/nbt/NbtCompound;)V
    • NbtQueryResponseS2CPacket

      public NbtQueryResponseS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ltd;<init>(Log;)V
      intermediary <init> Lnet/minecraft/class_2774;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/NbtQueryResponseS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
  • Method Details

    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lpk;a(Log;)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(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Ltd;a(Lpn;)V
      intermediary method_11909 Lnet/minecraft/class_2774;method_11909(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/NbtQueryResponseS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • getTransactionId

      public int getTransactionId()
      Mappings:
      Namespace Name Mixin selector
      official b Ltd;b()I
      intermediary method_11910 Lnet/minecraft/class_2774;method_11910()I
      named getTransactionId Lnet/minecraft/network/packet/s2c/play/NbtQueryResponseS2CPacket;getTransactionId()I
    • getNbt

      @Nullable public @Nullable NbtCompound getNbt()
      Mappings:
      Namespace Name Mixin selector
      official c Ltd;c()Lna;
      intermediary method_11911 Lnet/minecraft/class_2774;method_11911()Lnet/minecraft/class_2487;
      named getNbt Lnet/minecraft/network/packet/s2c/play/NbtQueryResponseS2CPacket;getNbt()Lnet/minecraft/nbt/NbtCompound;
    • isWritingErrorSkippable

      public boolean isWritingErrorSkippable()
      Returns whether a throwable in writing of this packet allows the connection to simply skip the packet's sending than disconnecting.
      Specified by:
      isWritingErrorSkippable in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lpk;a()Z
      intermediary method_11051 Lnet/minecraft/class_2596;method_11051()Z
      named isWritingErrorSkippable Lnet/minecraft/network/Packet;isWritingErrorSkippable()Z