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
FieldsModifier and TypeFieldDescriptionprotected ChatComponent.Stateprivate ConnectionTypeprivate FeatureFlagSetprivate Map<ResourceLocation, Component> private booleanprivate KnownPacksManagerprivate final com.mojang.authlib.GameProfileprivate static final org.slf4j.Loggerprivate final RegistryAccess.Frozenprivate final RegistryDataCollectorFields inherited from class net.minecraft.client.multiplayer.ClientCommonPacketListenerImpl
connection, customReportDetails, isTransferring, minecraft, postDisconnectScreen, serverBrand, serverCookies, serverData, serverLinks, strictErrorHandling, telemetryManager -
Constructor Summary
ConstructorsConstructorDescriptionClientConfigurationPacketListenerImpl(Minecraft pMinecraft, Connection pConnection, CommonListenerCookie pCommonListenerCookie) -
Method Summary
Modifier and TypeMethodDescriptionprotected ScreencreateDisconnectScreen(DisconnectionDetails p_350769_) Returns the connection type of this packet listener.voidvoidprotected voidhandleCustomPayload(CustomPacketPayload pPayload) voidvoidvoidvoidprivate voidvoidbooleanvoidonDisconnect(DisconnectionDetails pDetails) private <T> TrunWithResources(Function<ResourceProvider, T> pResources) voidtick()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, shouldHandleMessageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.ClientboundPacketListener
flowMethods inherited from interface net.minecraft.network.protocol.common.ClientCommonPacketListener
handleCustomReportDetails, handleDisconnect, handleKeepAlive, handlePing, handleResourcePackPop, handleResourcePackPush, handleServerLinks, handleStoreCookie, handleTransferMethods inherited from interface net.minecraft.network.protocol.configuration.ClientConfigurationPacketListener
protocolMethods inherited from interface net.minecraft.network.protocol.cookie.ClientCookiePacketListener
handleRequestCookieMethods inherited from interface net.neoforged.neoforge.common.extensions.IClientCommonPacketListenerExtension
disconnect, getMainThreadEventLoop, sendMethods inherited from interface net.neoforged.neoforge.common.extensions.ICommonPacketListener
getConnection, hasChannel, hasChannel, hasChannel, sendMethods 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 pMinecraft, Connection pConnection, CommonListenerCookie pCommonListenerCookie)
-
-
Method Details
-
isAcceptingMessages
public boolean isAcceptingMessages()- Specified by:
isAcceptingMessagesin interfacePacketListener
-
handleCustomPayload
- Specified by:
handleCustomPayloadin classClientCommonPacketListenerImpl
-
handleUnknownCustomPayload
-
handleRegistryData
- Specified by:
handleRegistryDatain interfaceClientConfigurationPacketListener
-
handleUpdateTags
- Specified by:
handleUpdateTagsin interfaceClientCommonPacketListener
-
handleEnabledFeatures
- Specified by:
handleEnabledFeaturesin interfaceClientConfigurationPacketListener
-
handleSelectKnownPacks
- Specified by:
handleSelectKnownPacksin interfaceClientConfigurationPacketListener
-
handleResetChat
- Specified by:
handleResetChatin interfaceClientConfigurationPacketListener
-
runWithResources
-
handleConfigurationFinished
- Specified by:
handleConfigurationFinishedin interfaceClientConfigurationPacketListener
-
tick
public void tick()- Specified by:
tickin interfaceTickablePacketListener
-
onDisconnect
- Specified by:
onDisconnectin interfacePacketListener- Overrides:
onDisconnectin classClientCommonPacketListenerImpl
-
handleCustomPayload
- Specified by:
handleCustomPayloadin interfaceClientCommonPacketListener- Overrides:
handleCustomPayloadin classClientCommonPacketListenerImpl
-
createDisconnectScreen
- Overrides:
createDisconnectScreenin classClientCommonPacketListenerImpl
-
getConnectionType
Description copied from interface:ICommonPacketListenerReturns the connection type of this packet listener.- Specified by:
getConnectionTypein interfaceICommonPacketListener- Returns:
- the connection type of this packet listener
-