Package net.minecraft.server.network
Class LocalServerHandshakeNetworkHandler
java.lang.Object
net.minecraft.server.network.LocalServerHandshakeNetworkHandler
- All Implemented Interfaces:
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.
- See Also:
ServerNetworkIo.bindLocal()- Mappings:
Namespace Name official achintermediary net/minecraft/class_3240named net/minecraft/server/network/LocalServerHandshakeNetworkHandler
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLocalServerHandshakeNetworkHandler(MinecraftServer server, ClientConnection connection) -
Method Summary
Modifier and TypeMethodDescriptionReturns the connection this packet listener intends to listen to.voidonDisconnected(Text reason)Called when the connection this listener listens to has disconnected.voidonHandshake(HandshakeC2SPacket packet)
-
Field Details
-
server
- Mappings:
Namespace Name Mixin selector official aLach;a:Lnet/minecraft/server/MinecraftServer;intermediary field_14104Lnet/minecraft/class_3240;field_14104:Lnet/minecraft/server/MinecraftServer;named serverLnet/minecraft/server/network/LocalServerHandshakeNetworkHandler;server:Lnet/minecraft/server/MinecraftServer;
-
connection
- Mappings:
Namespace Name Mixin selector official bLach;b:Loe;intermediary field_14103Lnet/minecraft/class_3240;field_14103:Lnet/minecraft/class_2535;named connectionLnet/minecraft/server/network/LocalServerHandshakeNetworkHandler;connection:Lnet/minecraft/network/ClientConnection;
-
-
Constructor Details
-
LocalServerHandshakeNetworkHandler
- Mappings:
Namespace Name Mixin selector official <init>Lach;<init>(Lnet/minecraft/server/MinecraftServer;Loe;)Vintermediary <init>Lnet/minecraft/class_3240;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_2535;)Vnamed <init>Lnet/minecraft/server/network/LocalServerHandshakeNetworkHandler;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/network/ClientConnection;)V
-
-
Method Details
-
onHandshake
- Specified by:
onHandshakein interfaceServerHandshakePacketListener- Mappings:
Namespace Name Mixin selector official aLvj;a(Lvi;)Vintermediary method_12576Lnet/minecraft/class_2890;method_12576(Lnet/minecraft/class_2889;)Vnamed onHandshakeLnet/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:
onDisconnectedin interfacePacketListener- Parameters:
reason- the reason of disconnection; may be a generic message- Mappings:
Namespace Name Mixin selector official aLoj;a(Los;)Vintermediary method_10839Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_2561;)Vnamed onDisconnectedLnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/text/Text;)V
-
getConnection
Returns the connection this packet listener intends to listen to.- Specified by:
getConnectionin interfacePacketListener- See Also:
ClientConnection.getPacketListener()- Mappings:
Namespace Name Mixin selector official aLoj;a()Loe;intermediary method_2872Lnet/minecraft/class_2547;method_2872()Lnet/minecraft/class_2535;named getConnectionLnet/minecraft/network/listener/PacketListener;getConnection()Lnet/minecraft/network/ClientConnection;
-