Package net.minecraft.server.network
Class LocalServerHandshakeNetworkHandler
java.lang.Object
net.minecraft.server.network.LocalServerHandshakeNetworkHandler
- All Implemented Interfaces:
PacketListener
,ServerCrashSafePacketListener
,ServerHandshakePacketListener
,ServerPacketListener
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.
- See Also:
- Mappings:
Namespace Name named net/minecraft/server/network/LocalServerHandshakeNetworkHandler
intermediary net/minecraft/class_3240
official asa
-
Field Summary
Fields inherited from interface net.minecraft.network.listener.ServerCrashSafePacketListener
LOGGER
-
Constructor Summary
ConstructorDescriptionLocalServerHandshakeNetworkHandler
(MinecraftServer server, ClientConnection connection) -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
onDisconnected
(Text reason) Called when the connection this listener listens to has disconnected.void
onHandshake
(HandshakeC2SPacket packet) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.listener.PacketListener
accepts, addCustomCrashReportInfo, fillCrashReport
Methods inherited from interface net.minecraft.network.listener.ServerCrashSafePacketListener
onPacketException
Methods inherited from interface net.minecraft.network.listener.ServerHandshakePacketListener
getPhase
Methods inherited from interface net.minecraft.network.listener.ServerPacketListener
getSide
-
Field Details
-
server
- Mappings:
Namespace Name Mixin selector named server
Lnet/minecraft/server/network/LocalServerHandshakeNetworkHandler;server:Lnet/minecraft/server/MinecraftServer;
intermediary field_14104
Lnet/minecraft/class_3240;field_14104:Lnet/minecraft/server/MinecraftServer;
official b
Lasa;b:Lnet/minecraft/server/MinecraftServer;
-
connection
- Mappings:
Namespace Name Mixin selector named connection
Lnet/minecraft/server/network/LocalServerHandshakeNetworkHandler;connection:Lnet/minecraft/network/ClientConnection;
intermediary field_14103
Lnet/minecraft/class_3240;field_14103:Lnet/minecraft/class_2535;
official c
Lasa;c:Lwk;
-
-
Constructor Details
-
LocalServerHandshakeNetworkHandler
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/server/network/LocalServerHandshakeNetworkHandler;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/network/ClientConnection;)V
intermediary <init>
Lnet/minecraft/class_3240;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_2535;)V
official <init>
Lasa;<init>(Lnet/minecraft/server/MinecraftServer;Lwk;)V
-
-
Method Details
-
onHandshake
- Specified by:
onHandshake
in interfaceServerHandshakePacketListener
- Mappings:
Namespace Name Mixin selector named onHandshake
Lnet/minecraft/network/listener/ServerHandshakePacketListener;onHandshake(Lnet/minecraft/network/packet/c2s/handshake/HandshakeC2SPacket;)V
intermediary method_12576
Lnet/minecraft/class_2890;method_12576(Lnet/minecraft/class_2889;)V
official a
Laja;a(Laix;)V
-
onDisconnected
Called when the connection this listener listens to has disconnected. Can be used to display the disconnection reason.- Specified by:
onDisconnected
in interfacePacketListener
- Parameters:
reason
- the reason of disconnection; may be a generic message- Mappings:
Namespace Name Mixin selector named onDisconnected
Lnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/text/Text;)V
intermediary method_10839
Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_2561;)V
official a
Lwv;a(Lxp;)V
-
isConnectionOpen
public boolean isConnectionOpen()- Specified by:
isConnectionOpen
in interfacePacketListener
- Mappings:
Namespace Name Mixin selector named isConnectionOpen
Lnet/minecraft/network/listener/PacketListener;isConnectionOpen()Z
intermediary method_48106
Lnet/minecraft/class_2547;method_48106()Z
official c
Lwv;c()Z
-