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.CommonDialogAccess, ClientCommonPacketListenerImpl.DeferredPacket, ClientCommonPacketListenerImpl.PackConfirmScreen -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ChatComponent.Stateprivate ConnectionTypestatic final Componentprivate FeatureFlagSetprivate Map<ResourceLocation, Component> private booleanprivate KnownPacksManagerprivate final LevelLoadTrackerprivate final com.mojang.authlib.GameProfile(package private) static final org.slf4j.Loggerprivate final RegistryAccess.Frozenprivate final RegistryDataCollectorprivate booleanFields inherited from class net.minecraft.client.multiplayer.ClientCommonPacketListenerImpl
connection, customReportDetails, isTransferring, minecraft, postDisconnectScreen, seenInsecureChatWarning, seenPlayers, serverBrand, serverCookies, serverData, telemetryManager -
Constructor Summary
ConstructorsConstructorDescriptionClientConfigurationPacketListenerImpl(Minecraft p_295262_, Connection p_296339_, CommonListenerCookie p_294706_) -
Method Summary
Modifier and TypeMethodDescriptionprotected DialogConnectionAccessprotected ScreencreateDisconnectScreen(DisconnectionDetails p_350769_) Returns the connection type of this packet listener.voidvoidvoidprotected voidhandleCustomPayload(CustomPacketPayload p_295411_) voidvoidhandleRegistryData(ClientboundRegistryDataPacket p_295757_) voidhandleResetChat(ClientboundResetChatPacket p_338215_) voidprivate voidvoidhandleUpdateTags(ClientboundUpdateTagsPacket p_321623_) booleanvoidonDisconnect(DisconnectionDetails p_351005_) private <T> TrunWithResources(Function<ResourceProvider, T> pResources) voidtick()Methods inherited from class net.minecraft.client.multiplayer.ClientCommonPacketListenerImpl
clearDialog, createDisconnectionInfo, fillListenerSpecificCrashDetails, getConnection, getPacketProcessor, handleClearDialog, handleCustomReportDetails, handleDisconnect, handleKeepAlive, handlePing, handleRequestCookie, handleResourcePackPop, handleResourcePackPush, handleServerLinks, handleShowDialog, handleStoreCookie, handleTransfer, onPacketError, preparePackPrompt, send, sendDeferredPackets, serverBrand, serverLinks, shouldHandleMessage, showDialog, showDialogMethods 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
handleClearDialog, handleCustomReportDetails, handleDisconnect, handleKeepAlive, handlePing, handleResourcePackPop, handleResourcePackPush, handleServerLinks, handleShowDialog, 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, sendMethods inherited from interface net.neoforged.neoforge.common.extensions.ICommonPacketListener
getConnection, getPacketProcessor, hasChannel, hasChannel, hasChannel, sendMethods inherited from interface net.minecraft.network.PacketListener
createDisconnectionInfo, fillCrashReport, fillListenerSpecificCrashDetails, onPacketError, shouldHandleMessage
-
Field Details
-
LOGGER
static final org.slf4j.Logger LOGGER -
DISCONNECTED_MESSAGE
-
levelLoadTracker
-
localGameProfile
private final com.mojang.authlib.GameProfile localGameProfile -
enabledFeatures
-
receivedRegistries
-
registryDataCollector
-
knownPacks
-
chatState
-
seenCodeOfConduct
private boolean seenCodeOfConduct -
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:
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
-
handleCodeOfConduct
- Specified by:
handleCodeOfConductin interfaceClientConfigurationPacketListener
-
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
-
createDialogAccess
- Specified by:
createDialogAccessin classClientCommonPacketListenerImpl
-