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 Connection
private static final Component
private final MinecraftServer
Fields inherited from interface net.minecraft.network.protocol.game.ServerPacketListener
LOGGER
-
Constructor Summary
ConstructorsConstructorDescriptionServerHandshakePacketListenerImpl
(MinecraftServer pServer, Connection pConnection) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
beginLogin
(ClientIntentionPacket pPacket, boolean pTransferred) void
handleIntention
(ClientIntentionPacket pPacket) There are two recognized intentions for initiating a handshake: logging in and acquiring server status.boolean
void
onDisconnect
(DisconnectionDetails pDetails) 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.PacketListener
createDisconnectionInfo, fillCrashReport, fillListenerSpecificCrashDetails, shouldHandleMessage
Methods inherited from interface net.minecraft.network.ServerboundPacketListener
flow
Methods inherited from interface net.minecraft.network.protocol.handshake.ServerHandshakePacketListener
protocol
Methods 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:
handleIntention
in interfaceServerHandshakePacketListener
-
beginLogin
-
onDisconnect
- Specified by:
onDisconnect
in interfacePacketListener
-
isAcceptingMessages
public boolean isAcceptingMessages()- Specified by:
isAcceptingMessages
in interfacePacketListener
-