Package net.minecraft.client.multiplayer
Class ServerStatusPinger
java.lang.Object
net.minecraft.client.multiplayer.ServerStatusPinger
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Componentprivate final List<Connection> private static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentformatPlayerCount(int p_105467_, int p_105468_) (package private) voidonPingFailed(Component p_171815_, ServerData p_171816_) (package private) voidpingLegacyServer(InetSocketAddress p_171812_, ServerAddress p_295436_, ServerData p_171813_) voidpingServer(ServerData p_105460_, Runnable p_105461_, Runnable p_316316_) voidvoidtick()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
CANT_CONNECT_MESSAGE
-
connections
-
-
Constructor Details
-
ServerStatusPinger
public ServerStatusPinger()
-
-
Method Details
-
pingServer
public void pingServer(ServerData p_105460_, Runnable p_105461_, Runnable p_316316_) throws UnknownHostException - Throws:
UnknownHostException
-
onPingFailed
-
pingLegacyServer
-
formatPlayerCount
-
tick
public void tick() -
removeAll
public void removeAll()
-