Package net.minecraft.client.network
Class ServerPinger
- java.lang.Object
-
- net.minecraft.client.network.ServerPinger
-
public class ServerPinger extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<NetworkManager>
connections
private static org.apache.logging.log4j.Logger
LOGGER
private static com.google.common.base.Splitter
SPLITTER
-
Constructor Summary
Constructors Constructor Description ServerPinger()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static ITextComponent
formatPlayerCount(int p_239171_0_, int p_239171_1_)
private void
pingLegacyServer(ServerData p_147225_1_)
void
pingServer(ServerData p_147224_1_, java.lang.Runnable p_147224_2_)
void
removeAll()
void
tick()
-
-
-
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
-
-
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()
-
-