net.minecraft.client.network

public class ClientLoginNetworkHandler

implements ClientLoginPacketListener

net.minecraft.client.multiplayer.ClientHandshakePacketListenerImpl
net.minecraft.class_635
net.minecraft.client.network.ClientLoginNetworkHandler

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_3710
LOGGER
private final MinecraftClient
minecraft
field_3708
client
private final ServerInfo
serverData
field_40481
serverInfo
private final Screen
parent
field_3706
parentScreen
private final Consumer<Text>
updateStatus
field_3711
statusConsumer
private final ClientConnection
connection
field_3707
connection
private final boolean
newWorld
field_41383
newWorld
private final Duration
worldLoadDuration
field_41384
worldLoadTime
private String
minigameName
field_44809
minigameName
private final ClientChunkLoadProgress
levelLoadTracker
field_61722
clientChunkLoadProgress
private final Map<Identifier, byte[]>
cookies
field_48400
serverCookies
private final boolean
wasTransferredTo
field_48401
hasCookies
private final Map<UUID, PlayerListEntry>
seenPlayers
field_62024
playersByUuid
private final boolean
seenInsecureChatWarning
field_62025
seenInsecureChatWarning
private SecretKey
pendingSecretKey
field_1_12128
secretKey
private int
pendingCompressionThreshold
field_1_12127
compressionThreshold
private final AtomicReference<ClientLoginNetworkHandler$State>
state
field_46192
state

Constructor summary

ModifierConstructor
public (ClientConnection connection, MinecraftClient client, ServerInfo serverInfo, Screen parentScreen, boolean newWorld, Duration worldLoadTime, Consumer<Text> statusConsumer, ClientChunkLoadProgress clientChunkLoadProgress, CookieStorage cookieStorage)

Method summary

Modifier and TypeMethod
private void
switchState(ClientHandshakePacketListenerImpl$State toState)
method_53872(class_635$class_8798 arg0)
switchTo(ClientLoginNetworkHandler$State state)
public void
handleKey(ClientboundKeyPacket packet)
method_12587(class_1_1875 arg0)
onHello(LoginKeyS2CPacket arg0)
private void
sendKeys(ServerboundKeyPacket setKeyPacket, SecretKey secretKey)
method_1_11968(class_1_1876 arg0, SecretKey arg1)
setKey(LoginKeyC2SPacket response, SecretKey secretKey)
private Text
authenticateServer(String digest)
method_2892(String arg0)
joinServerSession(String serverId)
public void
handleLoginFinished(ClientboundLoginFinishedPacket packet)
method_12588(class_2901 arg0)
onSuccess(LoginSuccessS2CPacket arg0)
public void
onDisconnect(DisconnectionDetails details)
method_10839(class_9812 arg0)
onDisconnected(DisconnectionInfo arg0)
public boolean
isAcceptingMessages()
method_48106()
isConnectionOpen()
public void
handleDisconnect(ClientboundLoginDisconnectPacket packet)
method_12584(class_2909 arg0)
onDisconnect(LoginDisconnectS2CPacket arg0)
public void
handleCompression(ClientboundSetupCompressionPacket packet)
method_12585(class_2907 arg0)
onCompression(LoginCompressionS2CPacket arg0)
public void
handleCustomQuery(ClientboundCustomQueryPacket packet)
method_12586(class_2899 arg0)
onQueryRequest(LoginQueryRequestS2CPacket arg0)
public void
setMinigameName(String minigameName)
method_51768(String arg0)
setMinigameName(String minigameName)
public void
handleRequestCookie(ClientboundCookieRequestPacket packet)
method_55845(class_9088 arg0)
onCookieRequest(CookieRequestS2CPacket arg0)
public void
handleEnableOptions(ClientboundApplyOptionsPacket packet)
method_1_11955(class_1_1884 arg0)
onApplyOptions(LoginApplyOptionsS2CPacket arg0)
private void
applyConnectionOptions(byte options, Packet<? extends ServerLoginPacketListener> response)
method_1_11965(byte arg0, class_2596<? extends class_2911> arg1)
setOptions(byte options, Packet<? extends ServerLoginPacketListener> response)
private void
applyInboundConnectionOptions(byte options)
method_1_11966(byte arg0)
setInboundOptions(byte options)
private void
applyOutboundConnectionOptions(byte options)
method_1_11967(byte arg0)
setOutboundOptions(byte options)
public void
fillListenerSpecificCrashDetails(CrashReport report, CrashReportCategory connectionDetails)
method_55597(class_128 arg0, class_129 arg1)
addCustomCrashReportInfo(CrashReport arg0, CrashReportSection arg1)
private String
lambda$fillListenerSpecificCrashDetails$2()
method_64895()
method_64895()
private String
lambda$fillListenerSpecificCrashDetails$1()
method_55614()
method_55614()
private String
lambda$fillListenerSpecificCrashDetails$0()
method_55615()
method_55615()
private void
lambda$handleKey$0(String arg0, ServerboundKeyPacket arg1, SecretKey arg2)
method_2894(String arg0, class_1_1876 arg1, SecretKey arg2)
method_2894(String serverId, LoginKeyC2SPacket packet, SecretKey arg2)
private static ClientLoginNetworkHandler$State
lambda$switchState$0(ClientHandshakePacketListenerImpl$State arg0, ClientHandshakePacketListenerImpl$State arg1)
method_53873(class_635$class_8798 arg0, class_635$class_8798 arg1)
method_53873(ClientLoginNetworkHandler$State arg0, ClientLoginNetworkHandler$State currentState)