Package org.geysermc.geyser.ping
Class GeyserLegacyPingPassthrough
java.lang.Object
java.lang.Thread
org.geysermc.geyser.ping.GeyserLegacyPingPassthrough
- All Implemented Interfaces:
Runnable,IGeyserPingPassthrough
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPingInformation(InetSocketAddress inetSocketAddress) Gets the ping information, including the MOTD and player count, from the serverstatic @Nullable IGeyserPingPassthroughinit(GeyserImpl geyser) Start legacy ping passthrough threadvoidrun()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, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
GeyserLegacyPingPassthrough
-
-
Method Details
-
init
Start legacy ping passthrough thread- Parameters:
geyser- Geyser- Returns:
- GeyserPingPassthrough, or null if not initialized
-
getPingInformation
Description copied from interface:IGeyserPingPassthroughGets the ping information, including the MOTD and player count, from the server- Specified by:
getPingInformationin interfaceIGeyserPingPassthrough- Parameters:
inetSocketAddress- the ip address of the client pinging the server- Returns:
- the ping information
-
run
public void run()
-