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