Package net.minecraft.server.network
Class ServerLoginPacketListenerImpl
java.lang.Object
net.minecraft.server.network.ServerLoginPacketListenerImpl
- All Implemented Interfaces:
PacketListener
,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.GameProfile
private final byte[]
(package private) final Connection
private static final Component
(package private) static final org.slf4j.Logger
private static final int
(package private) String
(package private) final MinecraftServer
private final String
private int
private static final AtomicInteger
-
Constructor Summary
ConstructorsConstructorDescriptionServerLoginPacketListenerImpl
(MinecraftServer p_10027_, Connection p_10028_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
disconnect
(Component p_10054_) void
private void
finishLoginAndWaitForClient
(com.mojang.authlib.GameProfile p_300150_) com.mojang.authlib.GameProfile
void
void
handleHello
(ServerboundHelloPacket p_10047_) void
handleKey
(ServerboundKeyPacket p_10049_) void
boolean
private boolean
isPlayerAlreadyInWorld
(com.mojang.authlib.GameProfile p_298499_) void
onDisconnect
(Component p_10043_) (package private) void
startClientVerification
(com.mojang.authlib.GameProfile p_301095_) void
tick()
private void
verifyLoginAndFinishConnectionSetup
(com.mojang.authlib.GameProfile p_299507_) 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
fillCrashReport, shouldHandleMessage
Methods inherited from interface net.minecraft.network.ServerboundPacketListener
flow
Methods inherited from interface net.minecraft.network.protocol.login.ServerLoginPacketListener
protocol
Methods inherited from interface net.minecraft.network.protocol.game.ServerPacketListener
shouldPropagateHandlingExceptions
-
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:
-
DISCONNECT_UNEXPECTED_QUERY
-
challenge
private final byte[] challenge -
server
-
connection
-
state
-
tick
private int tick -
requestedUsername
-
authenticatedProfile
@Nullable private com.mojang.authlib.GameProfile authenticatedProfile -
serverId
- See Also:
-
-
Constructor Details
-
ServerLoginPacketListenerImpl
-
-
Method Details
-
tick
public void tick()- Specified by:
tick
in interfaceTickablePacketListener
-
isAcceptingMessages
public boolean isAcceptingMessages()- Specified by:
isAcceptingMessages
in interfacePacketListener
-
disconnect
-
isPlayerAlreadyInWorld
private boolean isPlayerAlreadyInWorld(com.mojang.authlib.GameProfile p_298499_) -
onDisconnect
- Specified by:
onDisconnect
in interfacePacketListener
-
getUserName
-
handleHello
- Specified by:
handleHello
in interfaceServerLoginPacketListener
-
startClientVerification
void startClientVerification(com.mojang.authlib.GameProfile p_301095_) -
verifyLoginAndFinishConnectionSetup
private void verifyLoginAndFinishConnectionSetup(com.mojang.authlib.GameProfile p_299507_) -
finishLoginAndWaitForClient
private void finishLoginAndWaitForClient(com.mojang.authlib.GameProfile p_300150_) -
handleKey
- Specified by:
handleKey
in interfaceServerLoginPacketListener
-
handleCustomQueryPacket
- Specified by:
handleCustomQueryPacket
in interfaceServerLoginPacketListener
-
handleLoginAcknowledgement
- Specified by:
handleLoginAcknowledgement
in interfaceServerLoginPacketListener
-
getAuthenticatedProfile
@Nullable public com.mojang.authlib.GameProfile getAuthenticatedProfile() -
fillListenerSpecificCrashDetails
- Specified by:
fillListenerSpecificCrashDetails
in interfacePacketListener
-