Package net.minecraft.server.network
Class MemoryServerHandshakePacketListenerImpl
java.lang.Object
net.minecraft.server.network.MemoryServerHandshakePacketListenerImpl
- All Implemented Interfaces:
PacketListener,ServerPacketListener,ServerHandshakePacketListener,ServerboundPacketListener
public class MemoryServerHandshakePacketListenerImpl
extends Object
implements ServerHandshakePacketListener
-
Field Summary
FieldsFields inherited from interface net.minecraft.network.protocol.game.ServerPacketListener
LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionMemoryServerHandshakePacketListenerImpl(MinecraftServer server, Connection connection) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleIntention(ClientIntentionPacket packet) There are two recognized intentions for initiating a handshake: logging in and acquiring server status.booleanvoidonDisconnect(DisconnectionDetails details) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.PacketListener
createDisconnectionInfo, fillCrashReport, fillListenerSpecificCrashDetails, shouldHandleMessageMethods inherited from interface net.minecraft.network.ServerboundPacketListener
flowMethods inherited from interface net.minecraft.network.protocol.handshake.ServerHandshakePacketListener
protocolMethods inherited from interface net.minecraft.network.protocol.game.ServerPacketListener
onPacketError
-
Field Details
-
server
-
connection
-
-
Constructor Details
-
MemoryServerHandshakePacketListenerImpl
-
-
Method Details
-
handleIntention
There are two recognized intentions for initiating a handshake: logging in and acquiring server status. The NetworkManager's protocol will be reconfigured according to the specified intention, although a login-intention must pass a versioncheck or receive a disconnect otherwise- Specified by:
handleIntentionin interfaceServerHandshakePacketListener
-
onDisconnect
- Specified by:
onDisconnectin interfacePacketListener
-
isAcceptingMessages
public boolean isAcceptingMessages()- Specified by:
isAcceptingMessagesin interfacePacketListener
-