2022-06-14 13:17:52 -04:00
|
|
|
CLASS net/minecraft/class_1133 net/minecraft/client/network/LanServerPinger
|
2020-04-30 07:19:49 -04:00
|
|
|
COMMENT Used to send UDP multicasts to notify other clients of a local game on the same network.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>These multicasts will always be sent to {@code 224.0.2.60:4445} where other clients can listen for local games.
|
2021-05-13 12:59:27 -04:00
|
|
|
FIELD field_33016 PING_ADDRESS Ljava/lang/String;
|
|
|
|
FIELD field_33017 PING_PORT I
|
|
|
|
FIELD field_33018 PING_INTERVAL J
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_5525 THREAD_ID Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
FIELD field_5526 motd Ljava/lang/String;
|
2020-04-14 10:01:24 -04:00
|
|
|
FIELD field_5527 running Z
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_5528 socket Ljava/net/DatagramSocket;
|
2022-01-19 12:26:32 -05:00
|
|
|
FIELD field_5529 LOGGER Lorg/slf4j/Logger;
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_5530 addressPort Ljava/lang/String;
|
2018-12-12 12:22:18 -05:00
|
|
|
METHOD <init> (Ljava/lang/String;Ljava/lang/String;)V
|
2018-11-04 07:22:38 -05:00
|
|
|
ARG 1 motd
|
2019-07-31 10:20:12 -04:00
|
|
|
ARG 2 addressPort
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_4818 createAnnouncement (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
2020-04-30 07:19:49 -04:00
|
|
|
COMMENT Creates a server announcement.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <pre>
|
2021-01-21 13:44:55 -05:00
|
|
|
COMMENT {@code [MOTD]} // Specifies the beginning of the message of the day
|
|
|
|
COMMENT {@code A message of the day} // The message of the day
|
|
|
|
COMMENT {@code [/MOTD]} // Specifies the end of the message of the day.
|
|
|
|
COMMENT {@code [AD]} // Specifies the beginning of the address and the port of the local server.
|
|
|
|
COMMENT {@code the address of the local server.} // Such as {@code 192.146.2.1:23132}
|
|
|
|
COMMENT {@code [/AD]} // Specifies the end of the address and port of the local server.
|
2020-04-30 07:19:49 -04:00
|
|
|
COMMENT </pre>
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>An example of a complete announcement:
|
|
|
|
COMMENT {@code [MOTD]A Player's Server[/MOTD][AD]192.168.0.33[/AD]}
|
2017-05-13 02:02:51 -04:00
|
|
|
ARG 0 motd
|
2020-04-30 07:19:49 -04:00
|
|
|
COMMENT the message of the day
|
2017-05-13 02:02:51 -04:00
|
|
|
ARG 1 addressPort
|
2020-04-30 07:19:49 -04:00
|
|
|
COMMENT the address of the server including the IP address and port
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_4819 parseAnnouncementMotd (Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
ARG 0 announcement
|
|
|
|
METHOD method_4820 parseAnnouncementAddressPort (Ljava/lang/String;)Ljava/lang/String;
|
2017-05-13 02:02:51 -04:00
|
|
|
ARG 0 announcement
|