Package net.minecraft.client.network
Class LanServerPinger
java.lang.Object
java.lang.Thread
net.minecraft.client.network.LanServerPinger
- All Implemented Interfaces:
Runnable
Used to send UDP multicasts to notify other clients of a local game on the same network.
These multicasts will always be sent to 224.0.2.60:4445 where other clients can listen for local games.
- Mappings:
Namespace Name named net/minecraft/client/network/LanServerPingerintermediary net/minecraft/class_1133official gur
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate static final Loggerprivate final Stringstatic final Stringprivate static final longstatic final intprivate booleanprivate final DatagramSocketprivate static final AtomicIntegerFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcreateAnnouncement(String motd, String addressPort) Creates a server announcement.voidstatic StringparseAnnouncementAddressPort(String announcement) static StringparseAnnouncementMotd(String announcement) voidrun()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, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Field Details
-
THREAD_ID
- Mappings:
Namespace Name Mixin selector named THREAD_IDLnet/minecraft/client/network/LanServerPinger;THREAD_ID:Ljava/util/concurrent/atomic/AtomicInteger;intermediary field_5525Lnet/minecraft/class_1133;field_5525:Ljava/util/concurrent/atomic/AtomicInteger;official cLgur;c:Ljava/util/concurrent/atomic/AtomicInteger;
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/network/LanServerPinger;LOGGER:Lorg/slf4j/Logger;intermediary field_5529Lnet/minecraft/class_1133;field_5529:Lorg/slf4j/Logger;official dLgur;d:Lorg/slf4j/Logger;
-
PING_ADDRESS
- See Also:
- Mappings:
Namespace Name Mixin selector named PING_ADDRESSLnet/minecraft/client/network/LanServerPinger;PING_ADDRESS:Ljava/lang/String;intermediary field_33016Lnet/minecraft/class_1133;field_33016:Ljava/lang/String;official aLgur;a:Ljava/lang/String;
-
PING_PORT
public static final int PING_PORT- See Also:
- Mappings:
Namespace Name Mixin selector named PING_PORTLnet/minecraft/client/network/LanServerPinger;PING_PORT:Iintermediary field_33017Lnet/minecraft/class_1133;field_33017:Iofficial bLgur;b:I
-
PING_INTERVAL
private static final long PING_INTERVAL- See Also:
- Mappings:
Namespace Name Mixin selector named PING_INTERVALLnet/minecraft/client/network/LanServerPinger;PING_INTERVAL:Jintermediary field_33018Lnet/minecraft/class_1133;field_33018:Jofficial eLgur;e:J
-
motd
- Mappings:
Namespace Name Mixin selector named motdLnet/minecraft/client/network/LanServerPinger;motd:Ljava/lang/String;intermediary field_5526Lnet/minecraft/class_1133;field_5526:Ljava/lang/String;official fLgur;f:Ljava/lang/String;
-
socket
- Mappings:
Namespace Name Mixin selector named socketLnet/minecraft/client/network/LanServerPinger;socket:Ljava/net/DatagramSocket;intermediary field_5528Lnet/minecraft/class_1133;field_5528:Ljava/net/DatagramSocket;official gLgur;g:Ljava/net/DatagramSocket;
-
running
private boolean running- Mappings:
Namespace Name Mixin selector named runningLnet/minecraft/client/network/LanServerPinger;running:Zintermediary field_5527Lnet/minecraft/class_1133;field_5527:Zofficial hLgur;h:Z
-
addressPort
- Mappings:
Namespace Name Mixin selector named addressPortLnet/minecraft/client/network/LanServerPinger;addressPort:Ljava/lang/String;intermediary field_5530Lnet/minecraft/class_1133;field_5530:Ljava/lang/String;official iLgur;i:Ljava/lang/String;
-
-
Constructor Details
-
LanServerPinger
- Throws:
IOException- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/network/LanServerPinger;<init>(Ljava/lang/String;Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_1133;<init>(Ljava/lang/String;Ljava/lang/String;)Vofficial <init>Lgur;<init>(Ljava/lang/String;Ljava/lang/String;)V
-
-
Method Details
-
run
public void run() -
interrupt
public void interrupt() -
createAnnouncement
Creates a server announcement.[MOTD]// Specifies the beginning of the message of the dayA message of the day// The message of the day[/MOTD]// Specifies the end of the message of the day.[AD]// Specifies the beginning of the address and the port of the local server.the address of the local server.// Such as192.146.2.1:23132[/AD]// Specifies the end of the address and port of the local server.An example of a complete announcement:
[MOTD]A Player's Server[/MOTD][AD]192.168.0.33[/AD]- Parameters:
motd- the message of the dayaddressPort- the address of the server including the IP address and port- Mappings:
Namespace Name Mixin selector named createAnnouncementLnet/minecraft/client/network/LanServerPinger;createAnnouncement(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;intermediary method_4818Lnet/minecraft/class_1133;method_4818(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;official aLgur;a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
-
parseAnnouncementMotd
- Mappings:
Namespace Name Mixin selector named parseAnnouncementMotdLnet/minecraft/client/network/LanServerPinger;parseAnnouncementMotd(Ljava/lang/String;)Ljava/lang/String;intermediary method_4819Lnet/minecraft/class_1133;method_4819(Ljava/lang/String;)Ljava/lang/String;official aLgur;a(Ljava/lang/String;)Ljava/lang/String;
-
parseAnnouncementAddressPort
- Mappings:
Namespace Name Mixin selector named parseAnnouncementAddressPortLnet/minecraft/client/network/LanServerPinger;parseAnnouncementAddressPort(Ljava/lang/String;)Ljava/lang/String;intermediary method_4820Lnet/minecraft/class_1133;method_4820(Ljava/lang/String;)Ljava/lang/String;official bLgur;b(Ljava/lang/String;)Ljava/lang/String;
-