Class CommonPingS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.common.CommonPingS2CPacket
- All Implemented Interfaces:
Packet<ClientCommonPacketListener>
A packet sent by the server; the client will reply with a pong packet on the
first tick after it receives this packet, with the same
parameter
.- See Also:
- Mappings:
Namespace Name official zl
intermediary net/minecraft/class_6373
named net/minecraft/network/packet/s2c/common/CommonPingS2CPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PacketCodec
<PacketByteBuf, CommonPingS2CPacket> private final int
The parameter of this ping packet. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ClientCommonPacketListener clientCommonPacketListener) int
private void
write
(PacketByteBuf buf) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable, transitionsNetworkState
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lzl;a:Lys;
intermediary field_48624
Lnet/minecraft/class_6373;field_48624:Lnet/minecraft/class_9139;
named CODEC
Lnet/minecraft/network/packet/s2c/common/CommonPingS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
-
parameter
private final int parameterThe parameter of this ping packet.If this number represents a tick, this could measure the network delay in ticks. It is possible to be a tick number given the reply packet is sent on the client on the main thread's tick, and the number is sent as a regular int than a varint.
- Mappings:
Namespace Name Mixin selector official b
Lzl;b:I
intermediary field_33751
Lnet/minecraft/class_6373;field_33751:I
named parameter
Lnet/minecraft/network/packet/s2c/common/CommonPingS2CPacket;parameter:I
-
-
Constructor Details
-
CommonPingS2CPacket
public CommonPingS2CPacket(int parameter) - Mappings:
Namespace Name Mixin selector official <init>
Lzl;<init>(I)V
intermediary <init>
Lnet/minecraft/class_6373;<init>(I)V
named <init>
Lnet/minecraft/network/packet/s2c/common/CommonPingS2CPacket;<init>(I)V
-
CommonPingS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>
Lzl;<init>(Lvu;)V
intermediary <init>
Lnet/minecraft/class_6373;<init>(Lnet/minecraft/class_2540;)V
named <init>
Lnet/minecraft/network/packet/s2c/common/CommonPingS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector official a
Lzl;a(Lvu;)V
intermediary method_56464
Lnet/minecraft/class_6373;method_56464(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/network/packet/s2c/common/CommonPingS2CPacket;write(Lnet/minecraft/network/PacketByteBuf;)V
-
getPacketId
- Specified by:
getPacketId
in interfacePacket<ClientCommonPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lzb;a()Lzd;
intermediary method_55846
Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
named getPacketId
Lnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
-
apply
- Specified by:
apply
in interfacePacket<ClientCommonPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lzl;a(Lzh;)V
intermediary method_36949
Lnet/minecraft/class_6373;method_36949(Lnet/minecraft/class_8705;)V
named apply
Lnet/minecraft/network/packet/s2c/common/CommonPingS2CPacket;apply(Lnet/minecraft/network/listener/ClientCommonPacketListener;)V
-
getParameter
public int getParameter()- Mappings:
Namespace Name Mixin selector official b
Lzl;b()I
intermediary method_36950
Lnet/minecraft/class_6373;method_36950()I
named getParameter
Lnet/minecraft/network/packet/s2c/common/CommonPingS2CPacket;getParameter()I
-