类 LanServerPinger

  • 所有已实现的接口:
    Runnable

    @Environment(CLIENT)
    public class LanServerPinger
    extends Thread
    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
    official ezk
    intermediary net/minecraft/class_1133
    named net/minecraft/server/LanServerPinger
    • 字段详细资料

      • THREAD_ID

        private static final AtomicInteger THREAD_ID
        Mappings:
        Namespace Name Mixin selector
        official c Lezk;c:Ljava/util/concurrent/atomic/AtomicInteger;
        intermediary field_5525 Lnet/minecraft/class_1133;field_5525:Ljava/util/concurrent/atomic/AtomicInteger;
        named THREAD_ID Lnet/minecraft/server/LanServerPinger;THREAD_ID:Ljava/util/concurrent/atomic/AtomicInteger;
      • LOGGER

        private static final Logger LOGGER
        Mappings:
        Namespace Name Mixin selector
        official d Lezk;d:Lorg/apache/logging/log4j/Logger;
        intermediary field_5529 Lnet/minecraft/class_1133;field_5529:Lorg/apache/logging/log4j/Logger;
        named LOGGER Lnet/minecraft/server/LanServerPinger;LOGGER:Lorg/apache/logging/log4j/Logger;
      • field_33016

        public static final String field_33016
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official a Lezk;a:Ljava/lang/String;
        intermediary field_33016 Lnet/minecraft/class_1133;field_33016:Ljava/lang/String;
        named field_33016 Lnet/minecraft/server/LanServerPinger;field_33016:Ljava/lang/String;
      • field_33017

        public static final int field_33017
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official b Lezk;b:I
        intermediary field_33017 Lnet/minecraft/class_1133;field_33017:I
        named field_33017 Lnet/minecraft/server/LanServerPinger;field_33017:I
      • field_33018

        private static final long field_33018
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official e Lezk;e:J
        intermediary field_33018 Lnet/minecraft/class_1133;field_33018:J
        named field_33018 Lnet/minecraft/server/LanServerPinger;field_33018:J
      • motd

        private final String motd
        Mappings:
        Namespace Name Mixin selector
        official f Lezk;f:Ljava/lang/String;
        intermediary field_5526 Lnet/minecraft/class_1133;field_5526:Ljava/lang/String;
        named motd Lnet/minecraft/server/LanServerPinger;motd:Ljava/lang/String;
      • socket

        private final DatagramSocket socket
        Mappings:
        Namespace Name Mixin selector
        official g Lezk;g:Ljava/net/DatagramSocket;
        intermediary field_5528 Lnet/minecraft/class_1133;field_5528:Ljava/net/DatagramSocket;
        named socket Lnet/minecraft/server/LanServerPinger;socket:Ljava/net/DatagramSocket;
      • running

        private boolean running
        Mappings:
        Namespace Name Mixin selector
        official h Lezk;h:Z
        intermediary field_5527 Lnet/minecraft/class_1133;field_5527:Z
        named running Lnet/minecraft/server/LanServerPinger;running:Z
      • addressPort

        private final String addressPort
        Mappings:
        Namespace Name Mixin selector
        official i Lezk;i:Ljava/lang/String;
        intermediary field_5530 Lnet/minecraft/class_1133;field_5530:Ljava/lang/String;
        named addressPort Lnet/minecraft/server/LanServerPinger;addressPort:Ljava/lang/String;
    • 构造器详细资料

      • LanServerPinger

        public LanServerPinger​(String motd,
                               String addressPort)
                        throws IOException
        抛出:
        IOException
        Mappings:
        Namespace Name Mixin selector
        official <init> Lezk;<init>(Ljava/lang/String;Ljava/lang/String;)V
        intermediary <init> Lnet/minecraft/class_1133;<init>(Ljava/lang/String;Ljava/lang/String;)V
        named <init> Lnet/minecraft/server/LanServerPinger;<init>(Ljava/lang/String;Ljava/lang/String;)V
    • 方法详细资料

      • run

        public void run()
        指定者:
        run 在接口中 Runnable
        覆盖:
        run 在类中 Thread
        Mappings:
        Namespace Name Mixin selector
        official run Lezk;run()V
        intermediary run Lnet/minecraft/class_1133;run()V
        named run Lnet/minecraft/server/LanServerPinger;run()V
      • interrupt

        public void interrupt()
        覆盖:
        interrupt 在类中 Thread
        Mappings:
        Namespace Name Mixin selector
        official interrupt Lezk;interrupt()V
        intermediary interrupt Lnet/minecraft/class_1133;interrupt()V
        named interrupt Lnet/minecraft/server/LanServerPinger;interrupt()V
      • createAnnouncement

        public static String createAnnouncement​(String motd,
                                                String addressPort)
        Creates a server announcement.
         [MOTD] // Specifies the beginning of the message of the day
         A 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 as 192.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]

        参数:
        motd - the message of the day
        addressPort - the address of the server including the IP address and port
        Mappings:
        Namespace Name Mixin selector
        official a Lezk;a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
        intermediary method_4818 Lnet/minecraft/class_1133;method_4818(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
        named createAnnouncement Lnet/minecraft/server/LanServerPinger;createAnnouncement(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
      • parseAnnouncementMotd

        public static String parseAnnouncementMotd​(String announcement)
        Mappings:
        Namespace Name Mixin selector
        official a Lezk;a(Ljava/lang/String;)Ljava/lang/String;
        intermediary method_4819 Lnet/minecraft/class_1133;method_4819(Ljava/lang/String;)Ljava/lang/String;
        named parseAnnouncementMotd Lnet/minecraft/server/LanServerPinger;parseAnnouncementMotd(Ljava/lang/String;)Ljava/lang/String;
      • parseAnnouncementAddressPort

        public static String parseAnnouncementAddressPort​(String announcement)
        Mappings:
        Namespace Name Mixin selector
        official b Lezk;b(Ljava/lang/String;)Ljava/lang/String;
        intermediary method_4820 Lnet/minecraft/class_1133;method_4820(Ljava/lang/String;)Ljava/lang/String;
        named parseAnnouncementAddressPort Lnet/minecraft/server/LanServerPinger;parseAnnouncementAddressPort(Ljava/lang/String;)Ljava/lang/String;