Class ServerPinger


  • public class ServerPinger
    extends java.lang.Object
    • Field Detail

      • SPLITTER

        private static final com.google.common.base.Splitter SPLITTER
      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • connections

        private final java.util.List<NetworkManager> connections
    • Constructor Detail

      • ServerPinger

        public ServerPinger()
    • Method Detail

      • pingServer

        public void pingServer​(ServerData p_147224_1_,
                               java.lang.Runnable p_147224_2_)
                        throws java.net.UnknownHostException
        Throws:
        java.net.UnknownHostException
      • pingLegacyServer

        private void pingLegacyServer​(ServerData p_147225_1_)
      • formatPlayerCount

        private static ITextComponent formatPlayerCount​(int p_239171_0_,
                                                        int p_239171_1_)
      • tick

        public void tick()
      • removeAll

        public void removeAll()