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
,TickablePacketListener
,IClientCommonPacketListenerExtension
public class ClientConfigurationPacketListenerImpl
extends ClientCommonPacketListenerImpl
implements TickablePacketListener, ClientConfigurationPacketListener
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.multiplayer.ClientCommonPacketListenerImpl
ClientCommonPacketListenerImpl.DeferredPacket, ClientCommonPacketListenerImpl.PackConfirmScreen
-
Field Summary
Modifier and TypeFieldDescriptionprivate FeatureFlagSet
private Map<ResourceLocation,
Component> private boolean
private boolean
private final com.mojang.authlib.GameProfile
private static final org.slf4j.Logger
private RegistryAccess.Frozen
Fields inherited from class net.minecraft.client.multiplayer.ClientCommonPacketListenerImpl
connection, minecraft, postDisconnectScreen, serverBrand, serverData, telemetryManager
-
Constructor Summary
ConstructorDescriptionClientConfigurationPacketListenerImpl
(Minecraft p_295262_, Connection p_296339_, CommonListenerCookie p_294706_) -
Method Summary
Modifier and TypeMethodDescriptionprotected Screen
createDisconnectScreen
(Component p_296470_) void
protected void
handleCustomPayload
(ClientboundCustomPayloadPacket p_295727_, CustomPacketPayload p_295411_) void
void
handleRegistryData
(ClientboundRegistryDataPacket p_295757_) private void
handleUnknownCustomPayload
(CustomPacketPayload p_296412_) boolean
void
onDisconnect
(Component p_314649_) protected RegistryAccess.Frozen
void
tick()
Methods inherited from class net.minecraft.client.multiplayer.ClientCommonPacketListenerImpl
fillListenerSpecificCrashDetails, getConnection, getMinecraft, handleCustomPayload, handleDisconnect, handleKeepAlive, handlePing, handleResourcePackPop, handleResourcePackPush, handleUpdateTags, preparePackPrompt, send, sendDeferredPackets, serverBrand
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
handleCustomPayload, handleDisconnect, handleKeepAlive, handlePing, handleResourcePackPop, handleResourcePackPush, handleUpdateTags
Methods inherited from interface net.minecraft.network.protocol.configuration.ClientConfigurationPacketListener
protocol
Methods inherited from interface net.neoforged.neoforge.common.extensions.IClientCommonPacketListenerExtension
getConnection, getMainThreadEventLoop, getMinecraft, isConnected, isConnected, isVanillaConnection, send, send
Methods inherited from interface net.minecraft.network.PacketListener
fillCrashReport, fillListenerSpecificCrashDetails, shouldHandleMessage, shouldPropagateHandlingExceptions
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
localGameProfile
private final com.mojang.authlib.GameProfile localGameProfile -
receivedRegistries
-
enabledFeatures
-
isModdedConnection
private boolean isModdedConnection -
isVanillaConnection
private boolean isVanillaConnection -
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
-
registryAccess
- Specified by:
registryAccess
in classClientCommonPacketListenerImpl
-
handleCustomPayload
protected void handleCustomPayload(ClientboundCustomPayloadPacket p_295727_, CustomPacketPayload p_295411_) - Specified by:
handleCustomPayload
in classClientCommonPacketListenerImpl
-
handleUnknownCustomPayload
-
handleRegistryData
- Specified by:
handleRegistryData
in interfaceClientConfigurationPacketListener
-
handleEnabledFeatures
- Specified by:
handleEnabledFeatures
in interfaceClientConfigurationPacketListener
-
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
-
createDisconnectScreen
- Overrides:
createDisconnectScreen
in classClientCommonPacketListenerImpl
-