Package net.minecraft.client.multiplayer
Class ClientHandshakePacketListenerImpl
java.lang.Object
net.minecraft.client.multiplayer.ClientHandshakePacketListenerImpl
- All Implemented Interfaces:
PacketListener,ClientLoginPacketListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Connectionprivate com.mojang.authlib.GameProfileprivate static final org.slf4j.Loggerprivate final Minecraftprivate Stringprivate final booleanprivate final Screenprivate final ServerDataprivate final Duration -
Constructor Summary
ConstructorsConstructorDescriptionClientHandshakePacketListenerImpl(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 ComponentauthenticateServer(String p_104532_) private com.mojang.authlib.minecraft.MinecraftSessionServicevoidvoidhandleCustomQuery(ClientboundCustomQueryPacket p_104545_) voidhandleDisconnect(ClientboundLoginDisconnectPacket p_104553_) voidhandleGameProfile(ClientboundGameProfilePacket p_104547_) voidhandleHello(ClientboundHelloPacket p_104549_) booleanvoidonDisconnect(Component p_104543_) voidsetMinigameName(String p_286653_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
handleHelloin interfaceClientLoginPacketListener
-
authenticateServer
-
getMinecraftSessionService
private com.mojang.authlib.minecraft.MinecraftSessionService getMinecraftSessionService() -
handleGameProfile
- Specified by:
handleGameProfilein interfaceClientLoginPacketListener
-
onDisconnect
- Specified by:
onDisconnectin interfacePacketListener
-
isAcceptingMessages
public boolean isAcceptingMessages()- Specified by:
isAcceptingMessagesin interfacePacketListener
-
handleDisconnect
- Specified by:
handleDisconnectin interfaceClientLoginPacketListener
-
handleCompression
- Specified by:
handleCompressionin interfaceClientLoginPacketListener
-
handleCustomQuery
- Specified by:
handleCustomQueryin interfaceClientLoginPacketListener
-
setMinigameName
-