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 Connectionprivate ServerPlayercom.mojang.authlib.GameProfile(package private) static final org.slf4j.Loggerprivate static final intprivate static final RandomSource(package private) final MinecraftServerprivate final String(package private) ServerLoginPacketListenerImpl.Stateprivate intprivate static final AtomicInteger -
Constructor Summary
ConstructorsConstructorDescriptionServerLoginPacketListenerImpl(MinecraftServer p_10027_, Connection p_10028_) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.mojang.authlib.GameProfilecreateFakeProfile(com.mojang.authlib.GameProfile p_10039_) voiddisconnect(Component p_10054_) voidvoidvoidhandleHello(ServerboundHelloPacket p_10047_) voidhandleKey(ServerboundKeyPacket p_10049_) booleanstatic booleanisValidUsername(String p_203793_) voidonDisconnect(Component p_10043_) private voidplaceNewPlayer(ServerPlayer p_143700_) voidtick()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
tickin interfaceTickablePacketListener
-
isAcceptingMessages
public boolean isAcceptingMessages()- Specified by:
isAcceptingMessagesin interfacePacketListener
-
disconnect
-
handleAcceptedLogin
public void handleAcceptedLogin() -
placeNewPlayer
-
onDisconnect
- Specified by:
onDisconnectin interfacePacketListener
-
getUserName
-
handleHello
- Specified by:
handleHelloin interfaceServerLoginPacketListener
-
isValidUsername
-
handleKey
- Specified by:
handleKeyin interfaceServerLoginPacketListener
-
handleCustomQueryPacket
- Specified by:
handleCustomQueryPacketin interfaceServerLoginPacketListener
-
createFakeProfile
protected com.mojang.authlib.GameProfile createFakeProfile(com.mojang.authlib.GameProfile p_10039_)
-