Class PlayPingS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.PlayPingS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
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 wqintermediary net/minecraft/class_6373named net/minecraft/network/packet/s2c/play/PlayPingS2CPacket
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ClientPlayPacketListener clientPlayPacketListener) intvoidwrite(PacketByteBuf buf) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable
-
Field Details
-
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 aLwq;a:Iintermediary field_33751Lnet/minecraft/class_6373;field_33751:Inamed parameterLnet/minecraft/network/packet/s2c/play/PlayPingS2CPacket;parameter:I
-
-
Constructor Details
-
PlayPingS2CPacket
public PlayPingS2CPacket(int parameter) - Mappings:
Namespace Name Mixin selector official <init>Lwq;<init>(I)Vintermediary <init>Lnet/minecraft/class_6373;<init>(I)Vnamed <init>Lnet/minecraft/network/packet/s2c/play/PlayPingS2CPacket;<init>(I)V
-
PlayPingS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>Lwq;<init>(Lsf;)Vintermediary <init>Lnet/minecraft/class_6373;<init>(Lnet/minecraft/class_2540;)Vnamed <init>Lnet/minecraft/network/packet/s2c/play/PlayPingS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
-
Method Details
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLuo;a(Lsf;)Vintermediary method_11052Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)Vnamed writeLnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLwq;a(Lur;)Vintermediary method_36949Lnet/minecraft/class_6373;method_36949(Lnet/minecraft/class_2602;)Vnamed applyLnet/minecraft/network/packet/s2c/play/PlayPingS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-
getParameter
public int getParameter()- Mappings:
Namespace Name Mixin selector official aLwq;a()Iintermediary method_36950Lnet/minecraft/class_6373;method_36950()Inamed getParameterLnet/minecraft/network/packet/s2c/play/PlayPingS2CPacket;getParameter()I
-