Class CommonPongC2SPacket

java.lang.Object
net.minecraft.network.packet.c2s.common.CommonPongC2SPacket
All Implemented Interfaces:
Packet<ServerCommonPacketListener>

public class CommonPongC2SPacket extends Object implements Packet<ServerCommonPacketListener>
This is a packet that is sent by the client during tick after receiving a play ping packet from the server, passing the parameter back to the server.
See Also:
Mappings:
Namespace Name
named net/minecraft/network/packet/c2s/common/CommonPongC2SPacket
intermediary net/minecraft/class_6374
official zw
  • Field Details

    • CODEC

      public static final PacketCodec<PacketByteBuf,CommonPongC2SPacket> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/network/packet/c2s/common/CommonPongC2SPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_48648 Lnet/minecraft/class_6374;field_48648:Lnet/minecraft/class_9139;
      official a Lzw;a:Lys;
    • parameter

      private final int parameter
      Mappings:
      Namespace Name Mixin selector
      named parameter Lnet/minecraft/network/packet/c2s/common/CommonPongC2SPacket;parameter:I
      intermediary field_33752 Lnet/minecraft/class_6374;field_33752:I
      official b Lzw;b:I
  • Constructor Details

    • CommonPongC2SPacket

      public CommonPongC2SPacket(int parameter)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/c2s/common/CommonPongC2SPacket;<init>(I)V
      intermediary <init> Lnet/minecraft/class_6374;<init>(I)V
      official <init> Lzw;<init>(I)V
    • CommonPongC2SPacket

      private CommonPongC2SPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/c2s/common/CommonPongC2SPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary <init> Lnet/minecraft/class_6374;<init>(Lnet/minecraft/class_2540;)V
      official <init> Lzw;<init>(Lvr;)V
  • Method Details

    • write

      private void write(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/network/packet/c2s/common/CommonPongC2SPacket;write(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary method_56477 Lnet/minecraft/class_6374;method_56477(Lnet/minecraft/class_2540;)V
      official a Lzw;a(Lvr;)V
    • getPacketId

      public PacketType<CommonPongC2SPacket> getPacketId()
      Specified by:
      getPacketId in interface Packet<ServerCommonPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named getPacketId Lnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
      intermediary method_55846 Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
      official a Lzb;a()Lzd;
    • apply

      public void apply(ServerCommonPacketListener serverCommonPacketListener)
      Specified by:
      apply in interface Packet<ServerCommonPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/network/packet/c2s/common/CommonPongC2SPacket;apply(Lnet/minecraft/network/listener/ServerCommonPacketListener;)V
      intermediary method_36959 Lnet/minecraft/class_6374;method_36959(Lnet/minecraft/class_8706;)V
      official a Lzw;a(Lzs;)V
    • getParameter

      public int getParameter()
      Mappings:
      Namespace Name Mixin selector
      named getParameter Lnet/minecraft/network/packet/c2s/common/CommonPongC2SPacket;getParameter()I
      intermediary method_36960 Lnet/minecraft/class_6374;method_36960()I
      official b Lzw;b()I