类 ServerLoginPacketListenerImpl
java.lang.Object
net.minecraft.server.network.ServerLoginPacketListenerImpl
public class ServerLoginPacketListenerImpl
extends Object
implements ServerLoginPacketListener, TickablePacketListener
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final byte[]
(专用程序包) final Connection
private ServerPlayer
com.mojang.authlib.GameProfile
(专用程序包) static final org.slf4j.Logger
private static final int
private static final RandomSource
(专用程序包) final MinecraftServer
private final String
private int
private static final AtomicInteger
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected com.mojang.authlib.GameProfile
createFakeProfile
(com.mojang.authlib.GameProfile pOriginal) void
disconnect
(Component pReason) void
void
void
handleHello
(ServerboundHelloPacket pPacket) void
handleKey
(ServerboundKeyPacket pPacket) boolean
static boolean
isValidUsername
(String pUsername) void
onDisconnect
(Component pReason) private void
placeNewPlayer
(ServerPlayer p_143700_) void
tick()
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.network.protocol.game.ServerPacketListener
shouldPropagateHandlingExceptions
-
字段详细资料
-
UNIQUE_THREAD_ID
-
LOGGER
static final org.slf4j.Logger LOGGER -
MAX_TICKS_BEFORE_LOGIN
private static final int MAX_TICKS_BEFORE_LOGIN- 另请参阅:
-
RANDOM
-
challenge
private final byte[] challenge -
server
-
connection
-
state
-
tick
private int tick -
gameProfile
@Nullable public com.mojang.authlib.GameProfile gameProfile -
serverId
- 另请参阅:
-
delayedAcceptPlayer
-
-
构造器详细资料
-
ServerLoginPacketListenerImpl
-
-
方法详细资料
-
tick
public void tick()- 指定者:
tick
在接口中TickablePacketListener
-
isAcceptingMessages
public boolean isAcceptingMessages()- 指定者:
isAcceptingMessages
在接口中PacketListener
-
disconnect
-
handleAcceptedLogin
public void handleAcceptedLogin() -
placeNewPlayer
-
onDisconnect
- 指定者:
onDisconnect
在接口中PacketListener
-
getUserName
-
handleHello
- 指定者:
handleHello
在接口中ServerLoginPacketListener
-
isValidUsername
-
handleKey
- 指定者:
handleKey
在接口中ServerLoginPacketListener
-
handleCustomQueryPacket
-
createFakeProfile
protected com.mojang.authlib.GameProfile createFakeProfile(com.mojang.authlib.GameProfile pOriginal)
-