Package net.minecraft.client.network
Class ClientConfigurationNetworkHandler
java.lang.Object
net.minecraft.client.network.ClientCommonNetworkHandler
net.minecraft.client.network.ClientConfigurationNetworkHandler
- All Implemented Interfaces:
ClientCommonPacketListener,ClientConfigurationPacketListener,ClientCookieRequestPacketListener,ClientPacketListener,PacketListener,TickablePacketListener
@Environment(CLIENT)
public class ClientConfigurationNetworkHandler
extends ClientCommonNetworkHandler
implements ClientConfigurationPacketListener, TickablePacketListener
- Mappings:
Namespace Name named net/minecraft/client/network/ClientConfigurationNetworkHandlerintermediary net/minecraft/class_8674official hdn
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.network.ClientCommonNetworkHandler
ClientCommonNetworkHandler.CommonDialogNetworkAccess -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ChatHud.ChatStateprivate final ClientChunkLoadProgressprivate final ClientRegistriesstatic final Textprivate ClientDataPackManagerprivate FeatureSet(package private) static final Loggerprivate final com.mojang.authlib.GameProfileprivate booleanprivate final DynamicRegistryManager.ImmutableFields inherited from class net.minecraft.client.network.ClientCommonNetworkHandler
brand, client, connection, customReportDetails, postDisconnectScreen, seenInsecureChatWarning, seenPlayers, serverCookies, serverInfo, transferring, worldSession -
Constructor Summary
ConstructorsConstructorDescriptionClientConfigurationNetworkHandler(MinecraftClient client, ClientConnection connection, ClientConnectionState connectionState) -
Method Summary
Modifier and TypeMethodDescriptionprotected DialogNetworkAccessprivate voidhandleCustomPayload(CustomPayload payload) booleanvoidprotected voidonCustomPayload(CustomPayload payload) voidCalled when the connection this listener listens to has disconnected.voidvoidonFeatures(FeaturesS2CPacket packet) voidonReady(ReadyS2CPacket packet) voidonResetChat(ResetChatS2CPacket packet) voidvoidprivate <T> TopenClientDataPack(Function<ResourceFactory, T> opener) voidtick()Ticks this packet listener on the game engine thread.Methods inherited from class net.minecraft.client.network.ClientCommonNetworkHandler
accepts, addCustomCrashReportInfo, clearDialog, createDisconnectedScreen, createDisconnectionInfo, getBrand, getPrompt, getServerLinks, onClearDialog, onCookieRequest, onCustomPayload, onCustomReportDetails, onDisconnect, onKeepAlive, onPacketException, onPing, onResourcePackRemove, onResourcePackSend, onServerLinks, onServerTransfer, onShowDialog, onStoreCookie, sendPacket, sendQueuedPackets, 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.listener.ClientCommonPacketListener
onClearDialog, onCustomPayload, onCustomReportDetails, onDisconnect, onKeepAlive, onPing, onResourcePackRemove, onResourcePackSend, onServerLinks, onServerTransfer, onShowDialog, onStoreCookieMethods inherited from interface net.minecraft.network.listener.ClientConfigurationPacketListener
getPhaseMethods inherited from interface net.minecraft.network.listener.ClientCookieRequestPacketListener
onCookieRequestMethods inherited from interface net.minecraft.network.listener.ClientPacketListener
getSideMethods inherited from interface net.minecraft.network.listener.PacketListener
accepts, addCustomCrashReportInfo, createDisconnectionInfo, fillCrashReport, onPacketException
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/network/ClientConfigurationNetworkHandler;LOGGER:Lorg/slf4j/Logger;intermediary field_45596Lnet/minecraft/class_8674;field_45596:Lorg/slf4j/Logger;official nLhdn;n:Lorg/slf4j/Logger;
-
CODE_OF_CONDUCT_DISCONNECT_REASON
- Mappings:
Namespace Name Mixin selector named CODE_OF_CONDUCT_DISCONNECT_REASONLnet/minecraft/client/network/ClientConfigurationNetworkHandler;CODE_OF_CONDUCT_DISCONNECT_REASON:Lnet/minecraft/text/Text;intermediary field_63065Lnet/minecraft/class_8674;field_63065:Lnet/minecraft/class_2561;official lLhdn;l:Lyi;
-
chunkLoadProgress
- Mappings:
Namespace Name Mixin selector named chunkLoadProgressLnet/minecraft/client/network/ClientConfigurationNetworkHandler;chunkLoadProgress:Lnet/minecraft/client/world/ClientChunkLoadProgress;intermediary field_61721Lnet/minecraft/class_8674;field_61721:Lnet/minecraft/class_11653;official oLhdn;o:Lhdz;
-
profile
private final com.mojang.authlib.GameProfile profile- Mappings:
Namespace Name Mixin selector named profileLnet/minecraft/client/network/ClientConfigurationNetworkHandler;profile:Lcom/mojang/authlib/GameProfile;intermediary field_45597Lnet/minecraft/class_8674;field_45597:Lcom/mojang/authlib/GameProfile;official pLhdn;p:Lcom/mojang/authlib/GameProfile;
-
enabledFeatures
- Mappings:
Namespace Name Mixin selector named enabledFeaturesLnet/minecraft/client/network/ClientConfigurationNetworkHandler;enabledFeatures:Lnet/minecraft/resource/featuretoggle/FeatureSet;intermediary field_45599Lnet/minecraft/class_8674;field_45599:Lnet/minecraft/class_7699;official qLhdn;q:Ldfo;
-
registryManager
- Mappings:
Namespace Name Mixin selector named registryManagerLnet/minecraft/client/network/ClientConfigurationNetworkHandler;registryManager:Lnet/minecraft/registry/DynamicRegistryManager$Immutable;intermediary field_45598Lnet/minecraft/class_8674;field_45598:Lnet/minecraft/class_5455$class_6890;official rLhdn;r:Ljt$b;
-
clientRegistries
- Mappings:
Namespace Name Mixin selector named clientRegistriesLnet/minecraft/client/network/ClientConfigurationNetworkHandler;clientRegistries:Lnet/minecraft/client/network/ClientRegistries;intermediary field_48766Lnet/minecraft/class_8674;field_48766:Lnet/minecraft/class_9173;official sLhdn;s:Lhee;
-
dataPackManager
- Mappings:
Namespace Name Mixin selector named dataPackManagerLnet/minecraft/client/network/ClientConfigurationNetworkHandler;dataPackManager:Lnet/minecraft/client/resource/ClientDataPackManager;intermediary field_49123Lnet/minecraft/class_8674;field_49123:Lnet/minecraft/class_9247;official tLhdn;t:Lhdx;
-
chatState
- Mappings:
Namespace Name Mixin selector named chatStateLnet/minecraft/client/network/ClientConfigurationNetworkHandler;chatState:Lnet/minecraft/client/gui/hud/ChatHud$ChatState;intermediary field_50223Lnet/minecraft/class_8674;field_50223:Lnet/minecraft/class_338$class_9477;official mLhdn;m:Lghm$i;
-
receivedCodeOfConduct
private boolean receivedCodeOfConduct- Mappings:
Namespace Name Mixin selector named receivedCodeOfConductLnet/minecraft/client/network/ClientConfigurationNetworkHandler;receivedCodeOfConduct:Zintermediary field_62595Lnet/minecraft/class_8674;field_62595:Zofficial uLhdn;u:Z
-
-
Constructor Details
-
ClientConfigurationNetworkHandler
public ClientConfigurationNetworkHandler(MinecraftClient client, ClientConnection connection, ClientConnectionState connectionState) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/network/ClientCommonNetworkHandler;<init>(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/network/ClientConnection;Lnet/minecraft/client/network/ClientConnectionState;)Vintermediary <init>Lnet/minecraft/class_8673;<init>(Lnet/minecraft/class_310;Lnet/minecraft/class_2535;Lnet/minecraft/class_8675;)Vofficial <init>Lhdm;<init>(Lgds;Lwv;Lhdw;)V
-
-
Method Details
-
isConnectionOpen
public boolean isConnectionOpen()- Specified by:
isConnectionOpenin interfacePacketListener- Mappings:
Namespace Name Mixin selector named isConnectionOpenLnet/minecraft/network/listener/PacketListener;isConnectionOpen()Zintermediary method_48106Lnet/minecraft/class_2547;method_48106()Zofficial cLxl;c()Z
-
onCustomPayload
- Specified by:
onCustomPayloadin classClientCommonNetworkHandler- Mappings:
Namespace Name Mixin selector named onCustomPayloadLnet/minecraft/client/network/ClientCommonNetworkHandler;onCustomPayload(Lnet/minecraft/network/packet/CustomPayload;)Vintermediary method_11152Lnet/minecraft/class_8673;method_11152(Lnet/minecraft/class_8710;)Vofficial aLhdm;a(Lace;)V
-
handleCustomPayload
- Mappings:
Namespace Name Mixin selector named handleCustomPayloadLnet/minecraft/client/network/ClientConfigurationNetworkHandler;handleCustomPayload(Lnet/minecraft/network/packet/CustomPayload;)Vintermediary method_52797Lnet/minecraft/class_8674;method_52797(Lnet/minecraft/class_8710;)Vofficial bLhdn;b(Lace;)V
-
onDynamicRegistries
- Specified by:
onDynamicRegistriesin interfaceClientConfigurationPacketListener- Mappings:
Namespace Name Mixin selector named onDynamicRegistriesLnet/minecraft/network/listener/ClientConfigurationPacketListener;onDynamicRegistries(Lnet/minecraft/network/packet/s2c/config/DynamicRegistriesS2CPacket;)Vintermediary method_52795Lnet/minecraft/class_8732;method_52795(Lnet/minecraft/class_8734;)Vofficial aLaci;a(Lacl;)V
-
onSynchronizeTags
- Specified by:
onSynchronizeTagsin interfaceClientCommonPacketListener- Mappings:
Namespace Name Mixin selector named onSynchronizeTagsLnet/minecraft/network/listener/ClientCommonPacketListener;onSynchronizeTags(Lnet/minecraft/network/packet/s2c/common/SynchronizeTagsS2CPacket;)Vintermediary method_11126Lnet/minecraft/class_8705;method_11126(Lnet/minecraft/class_2790;)Vofficial aLabh;a(Labu;)V
-
onFeatures
- Specified by:
onFeaturesin interfaceClientConfigurationPacketListener- Mappings:
Namespace Name Mixin selector named onFeaturesLnet/minecraft/network/listener/ClientConfigurationPacketListener;onFeatures(Lnet/minecraft/network/packet/s2c/config/FeaturesS2CPacket;)Vintermediary method_52796Lnet/minecraft/class_8732;method_52796(Lnet/minecraft/class_7832;)Vofficial aLaci;a(Laco;)V
-
onSelectKnownPacks
- Specified by:
onSelectKnownPacksin interfaceClientConfigurationPacketListener- Mappings:
Namespace Name Mixin selector named onSelectKnownPacksLnet/minecraft/network/listener/ClientConfigurationPacketListener;onSelectKnownPacks(Lnet/minecraft/network/packet/s2c/config/SelectKnownPacksS2CPacket;)Vintermediary method_57045Lnet/minecraft/class_8732;method_57045(Lnet/minecraft/class_9250;)Vofficial aLaci;a(Lacn;)V
-
onResetChat
- Specified by:
onResetChatin interfaceClientConfigurationPacketListener- Mappings:
Namespace Name Mixin selector named onResetChatLnet/minecraft/network/listener/ClientConfigurationPacketListener;onResetChat(Lnet/minecraft/network/packet/s2c/config/ResetChatS2CPacket;)Vintermediary method_58577Lnet/minecraft/class_8732;method_58577(Lnet/minecraft/class_9448;)Vofficial aLaci;a(Lacm;)V
-
openClientDataPack
- Mappings:
Namespace Name Mixin selector named openClientDataPackLnet/minecraft/client/network/ClientConfigurationNetworkHandler;openClientDataPack(Ljava/util/function/Function;)Ljava/lang/Object;intermediary method_57044Lnet/minecraft/class_8674;method_57044(Ljava/util/function/Function;)Ljava/lang/Object;official aLhdn;a(Ljava/util/function/Function;)Ljava/lang/Object;
-
onCodeOfConduct
- Specified by:
onCodeOfConductin interfaceClientConfigurationPacketListener- Mappings:
Namespace Name Mixin selector named onCodeOfConductLnet/minecraft/network/listener/ClientConfigurationPacketListener;onCodeOfConduct(Lnet/minecraft/network/packet/s2c/config/CodeOfConductS2CPacket;)Vintermediary method_73257Lnet/minecraft/class_8732;method_73257(Lnet/minecraft/class_11751;)Vofficial aLaci;a(Lacj;)V
-
onReady
- Specified by:
onReadyin interfaceClientConfigurationPacketListener- Mappings:
Namespace Name Mixin selector named onReadyLnet/minecraft/network/listener/ClientConfigurationPacketListener;onReady(Lnet/minecraft/network/packet/s2c/config/ReadyS2CPacket;)Vintermediary method_52794Lnet/minecraft/class_8732;method_52794(Lnet/minecraft/class_8733;)Vofficial aLaci;a(Lack;)V
-
tick
public void tick()Ticks this packet listener on the game engine thread. The listener is responsible for synchronizing between the game engine and netty event loop threads.- Specified by:
tickin interfaceTickablePacketListener- Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/network/listener/TickablePacketListener;tick()Vintermediary method_18784Lnet/minecraft/class_7633;method_18784()Vofficial dLxw;d()V
-
onDisconnected
Called when the connection this listener listens to has disconnected. Can be used to display the disconnection reason.- Specified by:
onDisconnectedin interfacePacketListener- Overrides:
onDisconnectedin classClientCommonNetworkHandler- Mappings:
Namespace Name Mixin selector named onDisconnectedLnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/network/DisconnectionInfo;)Vintermediary method_10839Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_9812;)Vofficial aLxl;a(Lwx;)V
-
createDialogNetworkAccess
- Specified by:
createDialogNetworkAccessin classClientCommonNetworkHandler- Mappings:
Namespace Name Mixin selector named createDialogNetworkAccessLnet/minecraft/client/network/ClientCommonNetworkHandler;createDialogNetworkAccess()Lnet/minecraft/client/gui/screen/dialog/DialogNetworkAccess;intermediary method_72017Lnet/minecraft/class_8673;method_72017()Lnet/minecraft/class_11513;official eLhdm;e()Lgqz;
-