Package net.minecraft.server.network
Class ServerLoginPacketListenerImpl
java.lang.Object
net.minecraft.server.network.ServerLoginPacketListenerImpl
- All Implemented Interfaces:
PacketListener
,ServerPacketListener
,ServerLoginPacketListener
,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 final byte[]
(package private) final Connection
private ServerPlayer
com.mojang.authlib.GameProfile
(package private) static final org.slf4j.Logger
private static final int
private static final RandomSource
(package private) final MinecraftServer
private final String
(package private) ServerLoginPacketListenerImpl.State
private int
private static final AtomicInteger
-
Constructor Summary
ConstructorsConstructorDescriptionServerLoginPacketListenerImpl
(MinecraftServer p_10027_, Connection p_10028_) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.mojang.authlib.GameProfile
createFakeProfile
(com.mojang.authlib.GameProfile p_10039_) void
disconnect
(Component p_10054_) void
void
void
handleHello
(ServerboundHelloPacket p_10047_) void
handleKey
(ServerboundKeyPacket p_10049_) boolean
static boolean
isValidUsername
(String p_203793_) void
onDisconnect
(Component p_10043_) private void
placeNewPlayer
(ServerPlayer p_143700_) void
tick()
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.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:
-
RANDOM
-
challenge
private final byte[] challenge -
server
-
connection
-
state
-
tick
private int tick -
gameProfile
@Nullable public com.mojang.authlib.GameProfile gameProfile -
serverId
- See Also:
-
delayedAcceptPlayer
-
-
Constructor Details
-
ServerLoginPacketListenerImpl
-
-
Method Details
-
tick
public void tick()- Specified by:
tick
in interfaceTickablePacketListener
-
isAcceptingMessages
public boolean isAcceptingMessages()- Specified by:
isAcceptingMessages
in interfacePacketListener
-
disconnect
-
handleAcceptedLogin
public void handleAcceptedLogin() -
placeNewPlayer
-
onDisconnect
- Specified by:
onDisconnect
in interfacePacketListener
-
getUserName
-
handleHello
- Specified by:
handleHello
in interfaceServerLoginPacketListener
-
isValidUsername
-
handleKey
- Specified by:
handleKey
in interfaceServerLoginPacketListener
-
handleCustomQueryPacket
- Specified by:
handleCustomQueryPacket
in interfaceServerLoginPacketListener
-
createFakeProfile
protected com.mojang.authlib.GameProfile createFakeProfile(com.mojang.authlib.GameProfile p_10039_)
-