Class GeyserLegacyPingPassthrough

java.lang.Object
org.geysermc.geyser.ping.GeyserLegacyPingPassthrough
All Implemented Interfaces:
Runnable, IGeyserPingPassthrough

public class GeyserLegacyPingPassthrough extends Object implements IGeyserPingPassthrough, Runnable
  • Constructor Details

    • GeyserLegacyPingPassthrough

      public GeyserLegacyPingPassthrough(GeyserImpl geyser)
  • Method Details

    • init

      public static @Nullable IGeyserPingPassthrough init(GeyserImpl geyser)
      Start legacy ping passthrough thread
      Parameters:
      geyser - Geyser
      Returns:
      GeyserPingPassthrough, or null if not initialized
    • getPingInformation

      public GeyserPingInfo getPingInformation(InetSocketAddress inetSocketAddress)
      Description copied from interface: IGeyserPingPassthrough
      Gets the ping information, including the MOTD and player count, from the server
      Specified by:
      getPingInformation in interface IGeyserPingPassthrough
      Parameters:
      inetSocketAddress - the ip address of the client pinging the server
      Returns:
      the ping information
    • run

      public void run()
      Specified by:
      run in interface Runnable