Package net.minecraft.network.listener
Interface ServerQueryPingPacketListener
- All Superinterfaces:
PacketListener
- All Known Subinterfaces:
ServerPlayPacketListener,ServerQueryPacketListener
- All Known Implementing Classes:
ServerPlayNetworkHandler,ServerQueryNetworkHandler
- Mappings:
Namespace Name named net/minecraft/network/listener/ServerQueryPingPacketListenerintermediary net/minecraft/class_8740official akr
-
Method Summary
Modifier and TypeMethodDescriptionvoidonQueryPing(QueryPingC2SPacket packet) Handles a packet from client to query the "ping" (connection latency).Methods inherited from interface net.minecraft.network.listener.PacketListener
accepts, addCustomCrashReportInfo, createDisconnectionInfo, fillCrashReport, getPhase, getSide, isConnectionOpen, onDisconnected, onPacketException
-
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 named onQueryPingLnet/minecraft/network/listener/ServerQueryPingPacketListener;onQueryPing(Lnet/minecraft/network/packet/c2s/query/QueryPingC2SPacket;)Vintermediary method_12697Lnet/minecraft/class_8740;method_12697(Lnet/minecraft/class_2935;)Vofficial aLakr;a(Laks;)V
-