Package net.minecraft.client.multiplayer
Class LanServerPingThread
- java.lang.Object
-
- java.lang.Thread
-
- net.minecraft.client.multiplayer.LanServerPingThread
-
- All Implemented Interfaces:
java.lang.Runnable
public class LanServerPingThread extends java.lang.Thread
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
isRunning
private static org.apache.logging.log4j.Logger
LOGGER
private java.lang.String
motd
private java.lang.String
serverAddress
private java.net.DatagramSocket
socket
private static java.util.concurrent.atomic.AtomicInteger
UNIQUE_THREAD_ID
-
Constructor Summary
Constructors Constructor Description LanServerPingThread(java.lang.String p_i1321_1_, java.lang.String p_i1321_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
createPingString(java.lang.String p_77525_0_, java.lang.String p_77525_1_)
void
interrupt()
static java.lang.String
parseAddress(java.lang.String p_77523_0_)
static java.lang.String
parseMotd(java.lang.String p_77524_0_)
void
run()
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
UNIQUE_THREAD_ID
private static final java.util.concurrent.atomic.AtomicInteger UNIQUE_THREAD_ID
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
motd
private final java.lang.String motd
-
socket
private final java.net.DatagramSocket socket
-
isRunning
private boolean isRunning
-
serverAddress
private final java.lang.String serverAddress
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
interrupt
public void interrupt()
- Overrides:
interrupt
in classjava.lang.Thread
-
createPingString
public static java.lang.String createPingString(java.lang.String p_77525_0_, java.lang.String p_77525_1_)
-
parseMotd
public static java.lang.String parseMotd(java.lang.String p_77524_0_)
-
parseAddress
public static java.lang.String parseAddress(java.lang.String p_77523_0_)
-
-