Package net.minecraft.server.network
Class ServerHandshakePacketListenerImpl
java.lang.Object
net.minecraft.server.network.ServerHandshakePacketListenerImpl
- All Implemented Interfaces:
PacketListener,ServerPacketListener,ServerHandshakePacketListener,ServerboundPacketListener
public class ServerHandshakePacketListenerImpl
extends Object
implements ServerHandshakePacketListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Connectionprivate static final Componentprivate final MinecraftServerFields inherited from interface net.minecraft.network.protocol.game.ServerPacketListener
LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionServerHandshakePacketListenerImpl(MinecraftServer pServer, Connection pConnection) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidbeginLogin(ClientIntentionPacket pPacket, boolean pTransferred) voidhandleIntention(ClientIntentionPacket pPacket) There are two recognized intentions for initiating a handshake: logging in and acquiring server status.booleanvoidonDisconnect(DisconnectionDetails pDetails) 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
-
IGNORE_STATUS_REASON
-
server
-
connection
-
-
Constructor Details
-
ServerHandshakePacketListenerImpl
-
-
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
-
beginLogin
-
onDisconnect
- Specified by:
onDisconnectin interfacePacketListener
-
isAcceptingMessages
public boolean isAcceptingMessages()- Specified by:
isAcceptingMessagesin interfacePacketListener
-