Class JavaKeepAliveTranslator

java.lang.Object
org.geysermc.geyser.translator.protocol.PacketTranslator<org.geysermc.mcprotocollib.protocol.packet.common.clientbound.ClientboundKeepAlivePacket>
org.geysermc.geyser.translator.protocol.java.JavaKeepAliveTranslator

public class JavaKeepAliveTranslator extends PacketTranslator<org.geysermc.mcprotocollib.protocol.packet.common.clientbound.ClientboundKeepAlivePacket>
Used to forward the keep alive packet to the client in order to get back a reliable ping.
  • Constructor Details

    • JavaKeepAliveTranslator

      public JavaKeepAliveTranslator()
  • Method Details

    • translate

      public void translate(GeyserSession session, org.geysermc.mcprotocollib.protocol.packet.common.clientbound.ClientboundKeepAlivePacket packet)
      Specified by:
      translate in class PacketTranslator<org.geysermc.mcprotocollib.protocol.packet.common.clientbound.ClientboundKeepAlivePacket>