Package net.minecraft.network.listener
Interface ServerQueryPingPacketListener
- All Superinterfaces:
PacketListener
- All Known Subinterfaces:
ServerPlayPacketListener
,ServerQueryPacketListener
- All Known Implementing Classes:
ServerPlayNetworkHandler
,ServerQueryNetworkHandler
- Mappings:
Namespace Name official adl
intermediary net/minecraft/class_8740
named net/minecraft/network/listener/ServerQueryPingPacketListener
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onQueryPing
(QueryPingC2SPacket packet) Handles a packet from client to query the "ping" (connection latency).Methods inherited from interface net.minecraft.network.listener.PacketListener
accepts, addCustomCrashReportInfo, fillCrashReport, getSide, getState, isConnectionOpen, onDisconnected, shouldCrashOnException
-
Method Details
-
onQueryPing
Handles a packet from client to query the "ping" (connection latency). This is different fromCommonPingS2CPacket
, which can be sent by the server to request acknowledgment.- Mappings:
Namespace Name Mixin selector official a
Ladl;a(Lagj;)V
intermediary method_12697
Lnet/minecraft/class_8740;method_12697(Lnet/minecraft/class_2935;)V
named onQueryPing
Lnet/minecraft/network/listener/ServerQueryPingPacketListener;onQueryPing(Lnet/minecraft/network/packet/c2s/query/QueryPingC2SPacket;)V
-