Package net.minecraft.client.multiplayer
Class ClientConfigurationPacketListenerImpl
java.lang.Object
net.minecraft.client.multiplayer.ClientCommonPacketListenerImpl
net.minecraft.client.multiplayer.ClientConfigurationPacketListenerImpl
- All Implemented Interfaces:
ClientboundPacketListener
,PacketListener
,ClientCommonPacketListener
,ClientConfigurationPacketListener
,ClientCookiePacketListener
,TickablePacketListener
,IClientCommonPacketListenerExtension
,ICommonPacketListener
public class ClientConfigurationPacketListenerImpl
extends ClientCommonPacketListenerImpl
implements ClientConfigurationPacketListener, TickablePacketListener
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.multiplayer.ClientCommonPacketListenerImpl
ClientCommonPacketListenerImpl.DeferredPacket, ClientCommonPacketListenerImpl.PackConfirmScreen
-
Field Summary
Modifier and TypeFieldDescriptionprotected ChatComponent.State
private ConnectionType
private FeatureFlagSet
private Map
<ResourceLocation, Component> private boolean
private KnownPacksManager
private final com.mojang.authlib.GameProfile
private static final org.slf4j.Logger
private final RegistryAccess.Frozen
private final RegistryDataCollector
Fields inherited from class net.minecraft.client.multiplayer.ClientCommonPacketListenerImpl
connection, customReportDetails, isTransferring, minecraft, postDisconnectScreen, serverBrand, serverCookies, serverData, serverLinks, strictErrorHandling, telemetryManager
-
Constructor Summary
ConstructorDescriptionClientConfigurationPacketListenerImpl
(Minecraft p_295262_, Connection p_296339_, CommonListenerCookie p_294706_) -
Method Summary
Modifier and TypeMethodDescriptionprotected Screen
createDisconnectScreen
(DisconnectionDetails p_350769_) Returns the connection type of this packet listener.void
void
protected void
handleCustomPayload
(CustomPacketPayload p_295411_) void
void
handleRegistryData
(ClientboundRegistryDataPacket p_295757_) void
handleResetChat
(ClientboundResetChatPacket p_338215_) void
private void
handleUnknownCustomPayload
(CustomPacketPayload p_296412_) void
handleUpdateTags
(ClientboundUpdateTagsPacket p_321623_) boolean
void
onDisconnect
(DisconnectionDetails p_351005_) private <T> T
runWithResources
(Function<ResourceProvider, T> p_325978_) void
tick()
Methods inherited from class net.minecraft.client.multiplayer.ClientCommonPacketListenerImpl
createDisconnectionInfo, fillListenerSpecificCrashDetails, getConnection, handleCustomReportDetails, handleDisconnect, handleKeepAlive, handlePing, handleRequestCookie, handleResourcePackPop, handleResourcePackPush, handleServerLinks, handleStoreCookie, handleTransfer, onPacketError, preparePackPrompt, send, sendDeferredPackets, serverBrand, shouldHandleMessage
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.common.ClientCommonPacketListener
handleCustomReportDetails, handleDisconnect, handleKeepAlive, handlePing, handleResourcePackPop, handleResourcePackPush, handleServerLinks, handleStoreCookie, handleTransfer
Methods inherited from interface net.minecraft.network.protocol.configuration.ClientConfigurationPacketListener
protocol
Methods inherited from interface net.minecraft.network.protocol.cookie.ClientCookiePacketListener
handleRequestCookie
Methods inherited from interface net.neoforged.neoforge.common.extensions.IClientCommonPacketListenerExtension
disconnect, getMainThreadEventLoop, send
Methods inherited from interface net.neoforged.neoforge.common.extensions.ICommonPacketListener
getConnection, hasChannel, hasChannel, hasChannel, send
Methods inherited from interface net.minecraft.network.PacketListener
createDisconnectionInfo, fillCrashReport, fillListenerSpecificCrashDetails, onPacketError, shouldHandleMessage
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
localGameProfile
private final com.mojang.authlib.GameProfile localGameProfile -
enabledFeatures
-
receivedRegistries
-
registryDataCollector
-
knownPacks
-
chatState
-
connectionType
-
initializedConnection
private boolean initializedConnection -
failureReasons
-
-
Constructor Details
-
ClientConfigurationPacketListenerImpl
public ClientConfigurationPacketListenerImpl(Minecraft p_295262_, Connection p_296339_, CommonListenerCookie p_294706_)
-
-
Method Details
-
isAcceptingMessages
public boolean isAcceptingMessages()- Specified by:
isAcceptingMessages
in interfacePacketListener
-
handleCustomPayload
- Specified by:
handleCustomPayload
in classClientCommonPacketListenerImpl
-
handleUnknownCustomPayload
-
handleRegistryData
- Specified by:
handleRegistryData
in interfaceClientConfigurationPacketListener
-
handleUpdateTags
- Specified by:
handleUpdateTags
in interfaceClientCommonPacketListener
-
handleEnabledFeatures
- Specified by:
handleEnabledFeatures
in interfaceClientConfigurationPacketListener
-
handleSelectKnownPacks
- Specified by:
handleSelectKnownPacks
in interfaceClientConfigurationPacketListener
-
handleResetChat
- Specified by:
handleResetChat
in interfaceClientConfigurationPacketListener
-
runWithResources
-
handleConfigurationFinished
- Specified by:
handleConfigurationFinished
in interfaceClientConfigurationPacketListener
-
tick
public void tick()- Specified by:
tick
in interfaceTickablePacketListener
-
onDisconnect
- Specified by:
onDisconnect
in interfacePacketListener
- Overrides:
onDisconnect
in classClientCommonPacketListenerImpl
-
handleCustomPayload
- Specified by:
handleCustomPayload
in interfaceClientCommonPacketListener
- Overrides:
handleCustomPayload
in classClientCommonPacketListenerImpl
-
createDisconnectScreen
- Overrides:
createDisconnectScreen
in classClientCommonPacketListenerImpl
-
getConnectionType
Description copied from interface:ICommonPacketListener
Returns the connection type of this packet listener.- Specified by:
getConnectionType
in interfaceICommonPacketListener
- Returns:
- the connection type of this packet listener
-