Package net.minecraft.server.network
Class ServerLoginPacketListenerImpl
java.lang.Object
net.minecraft.server.network.ServerLoginPacketListenerImpl
- All Implemented Interfaces:
PacketListener,ServerCookiePacketListener,ServerPacketListener,ServerLoginPacketListener,ServerboundPacketListener,TickablePacketListener
public class ServerLoginPacketListenerImpl
extends Object
implements ServerLoginPacketListener, TickablePacketListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.mojang.authlib.GameProfileprivate final byte[](package private) final Connection(package private) static final org.slf4j.Loggerprivate static final int(package private) String(package private) final MinecraftServerprivate final Stringprivate intHow long has player been trying to login into the server.private final booleanprivate static final AtomicInteger -
Constructor Summary
ConstructorsConstructorDescriptionServerLoginPacketListenerImpl(MinecraftServer pServer, Connection pConnection, boolean pTransferred) -
Method Summary
Modifier and TypeMethodDescriptionvoiddisconnect(Component pReason) voidfillListenerSpecificCrashDetails(CrashReport pCrashReport, CrashReportCategory pCategory) private voidfinishLoginAndWaitForClient(com.mojang.authlib.GameProfile pProfile) voidvoidvoidhandleHello(ServerboundHelloPacket pPacket) voidhandleKey(ServerboundKeyPacket pPacket) voidbooleanprivate booleanisPlayerAlreadyInWorld(com.mojang.authlib.GameProfile pProfile) voidonDisconnect(DisconnectionDetails pDetails) (package private) voidstartClientVerification(com.mojang.authlib.GameProfile pAuthenticatedProfile) voidtick()private voidverifyLoginAndFinishConnectionSetup(com.mojang.authlib.GameProfile pProfile) 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, shouldHandleMessageMethods inherited from interface net.minecraft.network.ServerboundPacketListener
flowMethods inherited from interface net.minecraft.network.protocol.login.ServerLoginPacketListener
protocolMethods inherited from interface net.minecraft.network.protocol.game.ServerPacketListener
onPacketError
-
Field Details
-
UNIQUE_THREAD_ID
-
LOGGER
static final org.slf4j.Logger LOGGER -
MAX_TICKS_BEFORE_LOGIN
private static final int MAX_TICKS_BEFORE_LOGIN- See Also:
-
challenge
private final byte[] challenge -
server
-
connection
-
state
-
tick
private int tickHow long has player been trying to login into the server. -
requestedUsername
-
authenticatedProfile
@Nullable private com.mojang.authlib.GameProfile authenticatedProfile -
serverId
- See Also:
-
transferred
private final boolean transferred
-
-
Constructor Details
-
ServerLoginPacketListenerImpl
public ServerLoginPacketListenerImpl(MinecraftServer pServer, Connection pConnection, boolean pTransferred)
-
-
Method Details
-
tick
public void tick()- Specified by:
tickin interfaceTickablePacketListener
-
isAcceptingMessages
public boolean isAcceptingMessages()- Specified by:
isAcceptingMessagesin interfacePacketListener
-
disconnect
-
isPlayerAlreadyInWorld
private boolean isPlayerAlreadyInWorld(com.mojang.authlib.GameProfile pProfile) -
onDisconnect
- Specified by:
onDisconnectin interfacePacketListener
-
getUserName
-
handleHello
- Specified by:
handleHelloin interfaceServerLoginPacketListener
-
startClientVerification
void startClientVerification(com.mojang.authlib.GameProfile pAuthenticatedProfile) -
verifyLoginAndFinishConnectionSetup
private void verifyLoginAndFinishConnectionSetup(com.mojang.authlib.GameProfile pProfile) -
finishLoginAndWaitForClient
private void finishLoginAndWaitForClient(com.mojang.authlib.GameProfile pProfile) -
handleKey
- Specified by:
handleKeyin interfaceServerLoginPacketListener
-
handleCustomQueryPacket
- Specified by:
handleCustomQueryPacketin interfaceServerLoginPacketListener
-
handleLoginAcknowledgement
- Specified by:
handleLoginAcknowledgementin interfaceServerLoginPacketListener
-
fillListenerSpecificCrashDetails
public void fillListenerSpecificCrashDetails(CrashReport pCrashReport, CrashReportCategory pCategory) - Specified by:
fillListenerSpecificCrashDetailsin interfacePacketListener
-
handleCookieResponse
- Specified by:
handleCookieResponsein interfaceServerCookiePacketListener
-