Package net.minecraft.client.multiplayer
Class ClientHandshakePacketListenerImpl
java.lang.Object
net.minecraft.client.multiplayer.ClientHandshakePacketListenerImpl
- All Implemented Interfaces:
ClientboundPacketListener
,PacketListener
,ClientLoginPacketListener
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Connection
private static final org.slf4j.Logger
private final Minecraft
private String
private final boolean
private final Screen
private final ServerData
private final AtomicReference<ClientHandshakePacketListenerImpl.State>
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_) void
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_) private void
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.ClientboundPacketListener
flow
Methods inherited from interface net.minecraft.network.protocol.login.ClientLoginPacketListener
protocol
Methods inherited from interface net.minecraft.network.PacketListener
fillCrashReport, shouldHandleMessage, shouldPropagateHandlingExceptions
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
minecraft
-
serverData
-
parent
-
updateStatus
-
connection
-
newWorld
private final boolean newWorld -
worldLoadDuration
-
minigameName
-
state
-
-
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
-
switchState
-
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
-
fillListenerSpecificCrashDetails
- Specified by:
fillListenerSpecificCrashDetails
in interfacePacketListener
-