类 LocalServerHandshakeNetworkHandler

  • 所有已实现的接口:
    PacketListener, ServerHandshakePacketListener

    public class LocalServerHandshakeNetworkHandler
    extends Object
    implements ServerHandshakePacketListener
    A server handshake network handler that exclusively handles local connections.

    A local connection is one between a Minecraft client and the Integrated Server it is running.

    另请参阅:
    ServerNetworkIo.bindLocal()
    Mappings:
    Namespace Name
    official abz
    intermediary net/minecraft/class_3240
    named net/minecraft/server/network/LocalServerHandshakeNetworkHandler
    • 字段详细资料

      • server

        private final MinecraftServer server
        Mappings:
        Namespace Name Mixin selector
        official a Labz;a:Lnet/minecraft/server/MinecraftServer;
        intermediary field_14104 Lnet/minecraft/class_3240;field_14104:Lnet/minecraft/server/MinecraftServer;
        named server Lnet/minecraft/server/network/LocalServerHandshakeNetworkHandler;server:Lnet/minecraft/server/MinecraftServer;
      • connection

        private final ClientConnection connection
        Mappings:
        Namespace Name Mixin selector
        official b Labz;b:Lnz;
        intermediary field_14103 Lnet/minecraft/class_3240;field_14103:Lnet/minecraft/class_2535;
        named connection Lnet/minecraft/server/network/LocalServerHandshakeNetworkHandler;connection:Lnet/minecraft/network/ClientConnection;
    • 构造器详细资料

      • LocalServerHandshakeNetworkHandler

        public LocalServerHandshakeNetworkHandler​(MinecraftServer server,
                                                  ClientConnection connection)
        Mappings:
        Namespace Name Mixin selector
        official <init> Labz;<init>(Lnet/minecraft/server/MinecraftServer;Lnz;)V
        intermediary <init> Lnet/minecraft/class_3240;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_2535;)V
        named <init> Lnet/minecraft/server/network/LocalServerHandshakeNetworkHandler;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/network/ClientConnection;)V
    • 方法详细资料

      • onHandshake

        public void onHandshake​(HandshakeC2SPacket packet)
        指定者:
        onHandshake 在接口中 ServerHandshakePacketListener
        Mappings:
        Namespace Name Mixin selector
        official a Lvc;a(Lvb;)V
        intermediary method_12576 Lnet/minecraft/class_2890;method_12576(Lnet/minecraft/class_2889;)V
        named onHandshake Lnet/minecraft/network/listener/ServerHandshakePacketListener;onHandshake(Lnet/minecraft/network/packet/c2s/handshake/HandshakeC2SPacket;)V
      • onDisconnected

        public void onDisconnected​(Text reason)
        Called when the connection this listener listens to has disconnected. Can be used to display the disconnection reason.
        指定者:
        onDisconnected 在接口中 PacketListener
        参数:
        reason - the reason of disconnection; may be a generic message
        Mappings:
        Namespace Name Mixin selector
        official a Loe;a(Lon;)V
        intermediary method_10839 Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_2561;)V
        named onDisconnected Lnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/text/Text;)V
      • getConnection

        public ClientConnection getConnection()
        Returns the connection this packet listener intends to listen to.
        指定者:
        getConnection 在接口中 PacketListener
        另请参阅:
        ClientConnection.getPacketListener()
        Mappings:
        Namespace Name Mixin selector
        official a Loe;a()Lnz;
        intermediary method_2872 Lnet/minecraft/class_2547;method_2872()Lnet/minecraft/class_2535;
        named getConnection Lnet/minecraft/network/listener/PacketListener;getConnection()Lnet/minecraft/network/ClientConnection;