Package net.minecraft.client.multiplayer
Class ClientHandshakePacketListenerImpl
java.lang.Object
net.minecraft.client.multiplayer.ClientHandshakePacketListenerImpl
- All Implemented Interfaces:
ClientboundPacketListener
,PacketListener
,ClientCookiePacketListener
,ClientLoginPacketListener
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Connection
private final Map
<ResourceLocation, byte[]> 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 boolean
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_, TransferState p_332707_) -
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_) void
boolean
void
onDisconnect
(Component p_104543_) private void
setEncryption
(ServerboundKeyPacket p_333847_, Cipher p_327699_, Cipher p_330168_) 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, onPacketError, shouldHandleMessage
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
minecraft
-
serverData
-
parent
-
updateStatus
-
connection
-
newWorld
private final boolean newWorld -
worldLoadDuration
-
minigameName
-
cookies
-
wasTransferredTo
private final boolean wasTransferredTo -
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_, @Nullable TransferState p_332707_)
-
-
Method Details
-
switchState
-
handleHello
- Specified by:
handleHello
in interfaceClientLoginPacketListener
-
setEncryption
-
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
-
handleRequestCookie
- Specified by:
handleRequestCookie
in interfaceClientCookiePacketListener
-
fillListenerSpecificCrashDetails
- Specified by:
fillListenerSpecificCrashDetails
in interfacePacketListener
-