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 server, Connection connection, boolean transferred) -
Method Summary
Modifier and TypeMethodDescriptionvoiddisconnect(Component reason) voidfillListenerSpecificCrashDetails(CrashReport crashReport, CrashReportCategory category) private voidfinishLoginAndWaitForClient(com.mojang.authlib.GameProfile profile) voidvoidvoidhandleHello(ServerboundHelloPacket packet) voidhandleKey(ServerboundKeyPacket packet) voidbooleanprivate booleanisPlayerAlreadyInWorld(com.mojang.authlib.GameProfile profile) voidonDisconnect(DisconnectionDetails details) (package private) voidstartClientVerification(com.mojang.authlib.GameProfile authenticatedProfile) voidtick()private voidverifyLoginAndFinishConnectionSetup(com.mojang.authlib.GameProfile profile) 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 server, Connection connection, boolean transferred)
-
-
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 profile) -
onDisconnect
- Specified by:
onDisconnectin interfacePacketListener
-
getUserName
-
handleHello
- Specified by:
handleHelloin interfaceServerLoginPacketListener
-
startClientVerification
void startClientVerification(com.mojang.authlib.GameProfile authenticatedProfile) -
verifyLoginAndFinishConnectionSetup
private void verifyLoginAndFinishConnectionSetup(com.mojang.authlib.GameProfile profile) -
finishLoginAndWaitForClient
private void finishLoginAndWaitForClient(com.mojang.authlib.GameProfile profile) -
handleKey
- Specified by:
handleKeyin interfaceServerLoginPacketListener
-
handleCustomQueryPacket
- Specified by:
handleCustomQueryPacketin interfaceServerLoginPacketListener
-
handleLoginAcknowledgement
- Specified by:
handleLoginAcknowledgementin interfaceServerLoginPacketListener
-
fillListenerSpecificCrashDetails
- Specified by:
fillListenerSpecificCrashDetailsin interfacePacketListener
-
handleCookieResponse
- Specified by:
handleCookieResponsein interfaceServerCookiePacketListener
-