Package net.minecraft.client.multiplayer
Class ClientHandshakePacketListenerImpl
java.lang.Object
net.minecraft.client.multiplayer.ClientHandshakePacketListenerImpl
- All Implemented Interfaces:
PacketListener
,ClientLoginPacketListener
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Connection
private com.mojang.authlib.GameProfile
private static final org.slf4j.Logger
private final Minecraft
private String
private final boolean
private final Screen
private final ServerData
private final Duration
-
Constructor Summary
ConstructorDescriptionClientHandshakePacketListenerImpl
(Connection p_261697_, Minecraft p_261835_, ServerData p_261938_, Screen p_261783_, boolean p_261562_, Duration p_261673_, Consumer<Component> p_261945_) -
Method Summary
Modifier and TypeMethodDescriptionprivate Component
authenticateServer
(String p_104532_) private com.mojang.authlib.minecraft.MinecraftSessionService
void
void
handleCustomQuery
(ClientboundCustomQueryPacket p_104545_) void
handleDisconnect
(ClientboundLoginDisconnectPacket p_104553_) void
handleGameProfile
(ClientboundGameProfilePacket p_104547_) void
handleHello
(ClientboundHelloPacket p_104549_) boolean
void
onDisconnect
(Component p_104543_) void
setMinigameName
(String p_286653_) 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
shouldPropagateHandlingExceptions
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
minecraft
-
serverData
-
parent
-
updateStatus
-
connection
-
localGameProfile
private com.mojang.authlib.GameProfile localGameProfile -
newWorld
private final boolean newWorld -
worldLoadDuration
-
minigameName
-
-
Constructor Details
-
ClientHandshakePacketListenerImpl
public ClientHandshakePacketListenerImpl(Connection p_261697_, Minecraft p_261835_, @Nullable ServerData p_261938_, @Nullable Screen p_261783_, boolean p_261562_, @Nullable Duration p_261673_, Consumer<Component> p_261945_)
-
-
Method Details
-
handleHello
- Specified by:
handleHello
in interfaceClientLoginPacketListener
-
authenticateServer
-
getMinecraftSessionService
private com.mojang.authlib.minecraft.MinecraftSessionService getMinecraftSessionService() -
handleGameProfile
- Specified by:
handleGameProfile
in interfaceClientLoginPacketListener
-
onDisconnect
- Specified by:
onDisconnect
in interfacePacketListener
-
isAcceptingMessages
public boolean isAcceptingMessages()- Specified by:
isAcceptingMessages
in interfacePacketListener
-
handleDisconnect
- Specified by:
handleDisconnect
in interfaceClientLoginPacketListener
-
handleCompression
- Specified by:
handleCompression
in interfaceClientLoginPacketListener
-
handleCustomQuery
- Specified by:
handleCustomQuery
in interfaceClientLoginPacketListener
-
setMinigameName
-