Class JavaKeepAliveTranslator
java.lang.Object
org.geysermc.geyser.translator.protocol.PacketTranslator<com.github.steveice10.mc.protocol.packet.ingame.clientbound.ClientboundKeepAlivePacket>
org.geysermc.geyser.translator.protocol.java.JavaKeepAliveTranslator
public class JavaKeepAliveTranslator
extends PacketTranslator<com.github.steveice10.mc.protocol.packet.ingame.clientbound.ClientboundKeepAlivePacket>
Used to forward the keep alive packet to the client in order to get back a reliable ping.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
translate(GeyserSession session, com.github.steveice10.mc.protocol.packet.ingame.clientbound.ClientboundKeepAlivePacket packet)
Methods inherited from class org.geysermc.geyser.translator.protocol.PacketTranslator
shouldExecuteInEventLoop
-
Constructor Details
-
JavaKeepAliveTranslator
public JavaKeepAliveTranslator()
-
-
Method Details
-
translate
public void translate(GeyserSession session, com.github.steveice10.mc.protocol.packet.ingame.clientbound.ClientboundKeepAlivePacket packet)- Specified by:
translate
in classPacketTranslator<com.github.steveice10.mc.protocol.packet.ingame.clientbound.ClientboundKeepAlivePacket>
-