Package net.minecraft.server.network
Class ServerHandshakeNetworkHandler
java.lang.Object
net.minecraft.server.network.ServerHandshakeNetworkHandler
- All Implemented Interfaces:
PacketListener
,ServerHandshakePacketListener
,ServerPacketListener
- Mappings:
Namespace Name official aep
intermediary net/minecraft/class_3246
named net/minecraft/server/network/ServerHandshakeNetworkHandler
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ClientConnection
private static final Text
private final MinecraftServer
-
Constructor Summary
ConstructorDescriptionServerHandshakeNetworkHandler
(MinecraftServer server, ClientConnection connection) -
Method Summary
Modifier and TypeMethodDescriptionReturns the connection this packet listener intends to listen to.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.ServerPacketListener
shouldCrashOnException
-
Field Details
-
IGNORING_STATUS_REQUEST_MESSAGE
- Mappings:
Namespace Name Mixin selector official a
Laep;a:Lqk;
intermediary field_24457
Lnet/minecraft/class_3246;field_24457:Lnet/minecraft/class_2561;
named IGNORING_STATUS_REQUEST_MESSAGE
Lnet/minecraft/server/network/ServerHandshakeNetworkHandler;IGNORING_STATUS_REQUEST_MESSAGE:Lnet/minecraft/text/Text;
-
server
- Mappings:
Namespace Name Mixin selector official b
Laep;b:Lnet/minecraft/server/MinecraftServer;
intermediary field_14154
Lnet/minecraft/class_3246;field_14154:Lnet/minecraft/server/MinecraftServer;
named server
Lnet/minecraft/server/network/ServerHandshakeNetworkHandler;server:Lnet/minecraft/server/MinecraftServer;
-
connection
- Mappings:
Namespace Name Mixin selector official c
Laep;c:Lpw;
intermediary field_14153
Lnet/minecraft/class_3246;field_14153:Lnet/minecraft/class_2535;
named connection
Lnet/minecraft/server/network/ServerHandshakeNetworkHandler;connection:Lnet/minecraft/network/ClientConnection;
-
-
Constructor Details
-
ServerHandshakeNetworkHandler
- Mappings:
Namespace Name Mixin selector official <init>
Laep;<init>(Lnet/minecraft/server/MinecraftServer;Lpw;)V
intermediary <init>
Lnet/minecraft/class_3246;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_2535;)V
named <init>
Lnet/minecraft/server/network/ServerHandshakeNetworkHandler;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/network/ClientConnection;)V
-
-
Method Details
-
onHandshake
- Specified by:
onHandshake
in interfaceServerHandshakePacketListener
- Mappings:
Namespace Name Mixin selector official a
Lxf;a(Lxe;)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
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 official a
Lqb;a(Lqk;)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
Returns the connection this packet listener intends to listen to.- Specified by:
getConnection
in interfacePacketListener
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lqb;a()Lpw;
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;
-