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/ClientConfigurationNetworkHandler
intermediary net/minecraft/class_8674
official fyj
-
Field Summary
Modifier and TypeFieldDescriptionprotected ChatHud.ChatState
private final ClientRegistries
private @Nullable ClientDataPackManager
private FeatureSet
private static final Logger
private final com.mojang.authlib.GameProfile
private final DynamicRegistryManager.Immutable
Fields inherited from class net.minecraft.client.network.ClientCommonNetworkHandler
brand, client, connection, postDisconnectScreen, serverCookies, serverInfo, strictErrorHandling, transferring, worldSession
-
Constructor Summary
ConstructorDescriptionClientConfigurationNetworkHandler
(MinecraftClient client, ClientConnection connection, ClientConnectionState connectionState) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
handleCustomPayload
(CustomPayload payload) boolean
protected void
onCustomPayload
(CustomPayload payload) void
onDisconnected
(Text reason) Called when the connection this listener listens to has disconnected.void
void
onFeatures
(FeaturesS2CPacket packet) void
onReady
(ReadyS2CPacket packet) void
onResetChat
(ResetChatS2CPacket packet) void
void
private <T> T
openClientDataPack
(Function<ResourceFactory, T> opener) void
tick()
Ticks this packet listener on the game engine thread.Methods inherited from class net.minecraft.client.network.ClientCommonNetworkHandler
accepts, addCustomCrashReportInfo, createDisconnectedScreen, getBrand, getPrompt, onCookieRequest, onCustomPayload, onDisconnect, onKeepAlive, onPacketException, onPing, onResourcePackRemove, onResourcePackSend, onServerTransfer, onStoreCookie, sendPacket, sendQueuedPackets
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.listener.ClientCommonPacketListener
onCustomPayload, onDisconnect, onKeepAlive, onPing, onResourcePackRemove, onResourcePackSend, onServerTransfer, onStoreCookie
Methods inherited from interface net.minecraft.network.listener.ClientConfigurationPacketListener
getPhase
Methods inherited from interface net.minecraft.network.listener.ClientCookieRequestPacketListener
onCookieRequest
Methods inherited from interface net.minecraft.network.listener.ClientPacketListener
getSide
Methods inherited from interface net.minecraft.network.listener.PacketListener
accepts, addCustomCrashReportInfo, fillCrashReport, onPacketException
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/client/network/ClientConfigurationNetworkHandler;LOGGER:Lorg/slf4j/Logger;
intermediary field_45596
Lnet/minecraft/class_8674;field_45596:Lorg/slf4j/Logger;
official k
Lfyj;k:Lorg/slf4j/Logger;
-
profile
private final com.mojang.authlib.GameProfile profile- Mappings:
Namespace Name Mixin selector named profile
Lnet/minecraft/client/network/ClientConfigurationNetworkHandler;profile:Lcom/mojang/authlib/GameProfile;
intermediary field_45597
Lnet/minecraft/class_8674;field_45597:Lcom/mojang/authlib/GameProfile;
official l
Lfyj;l:Lcom/mojang/authlib/GameProfile;
-
enabledFeatures
- Mappings:
Namespace Name Mixin selector named enabledFeatures
Lnet/minecraft/client/network/ClientConfigurationNetworkHandler;enabledFeatures:Lnet/minecraft/resource/featuretoggle/FeatureSet;
intermediary field_45599
Lnet/minecraft/class_8674;field_45599:Lnet/minecraft/class_7699;
official m
Lfyj;m:Lcoz;
-
registryManager
- Mappings:
Namespace Name Mixin selector named registryManager
Lnet/minecraft/client/network/ClientConfigurationNetworkHandler;registryManager:Lnet/minecraft/registry/DynamicRegistryManager$Immutable;
intermediary field_45598
Lnet/minecraft/class_8674;field_45598:Lnet/minecraft/class_5455$class_6890;
official n
Lfyj;n:Ljx$b;
-
clientRegistries
- Mappings:
Namespace Name Mixin selector named clientRegistries
Lnet/minecraft/client/network/ClientConfigurationNetworkHandler;clientRegistries:Lnet/minecraft/client/network/ClientRegistries;
intermediary field_48766
Lnet/minecraft/class_8674;field_48766:Lnet/minecraft/class_9173;
official o
Lfyj;o:Lfyy;
-
dataPackManager
- Mappings:
Namespace Name Mixin selector named dataPackManager
Lnet/minecraft/client/network/ClientConfigurationNetworkHandler;dataPackManager:Lnet/minecraft/client/resource/ClientDataPackManager;
intermediary field_49123
Lnet/minecraft/class_8674;field_49123:Lnet/minecraft/class_9247;
official p
Lfyj;p:Lfyr;
-
chatState
- Mappings:
Namespace Name Mixin selector named chatState
Lnet/minecraft/client/network/ClientConfigurationNetworkHandler;chatState:Lnet/minecraft/client/gui/hud/ChatHud$ChatState;
intermediary field_50223
Lnet/minecraft/class_8674;field_50223:Lnet/minecraft/class_338$class_9477;
official j
Lfyj;j:Lfhv$b;
-
-
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;)V
intermediary <init>
Lnet/minecraft/class_8673;<init>(Lnet/minecraft/class_310;Lnet/minecraft/class_2535;Lnet/minecraft/class_8675;)V
official <init>
Lfyi;<init>(Lffw;Lvp;Lfyp;)V
-
-
Method Details
-
isConnectionOpen
public boolean isConnectionOpen()- Specified by:
isConnectionOpen
in interfacePacketListener
- Mappings:
Namespace Name Mixin selector named isConnectionOpen
Lnet/minecraft/network/listener/PacketListener;isConnectionOpen()Z
intermediary method_48106
Lnet/minecraft/class_2547;method_48106()Z
official c
Lwa;c()Z
-
onCustomPayload
- Specified by:
onCustomPayload
in classClientCommonNetworkHandler
- Mappings:
Namespace Name Mixin selector named onCustomPayload
Lnet/minecraft/client/network/ClientCommonNetworkHandler;onCustomPayload(Lnet/minecraft/network/packet/CustomPayload;)V
intermediary method_11152
Lnet/minecraft/class_8673;method_11152(Lnet/minecraft/class_8710;)V
official a
Lfyi;a(Laac;)V
-
handleCustomPayload
- Mappings:
Namespace Name Mixin selector named handleCustomPayload
Lnet/minecraft/client/network/ClientConfigurationNetworkHandler;handleCustomPayload(Lnet/minecraft/network/packet/CustomPayload;)V
intermediary method_52797
Lnet/minecraft/class_8674;method_52797(Lnet/minecraft/class_8710;)V
official b
Lfyj;b(Laac;)V
-
onDynamicRegistries
- Specified by:
onDynamicRegistries
in interfaceClientConfigurationPacketListener
- Mappings:
Namespace Name Mixin selector named onDynamicRegistries
Lnet/minecraft/network/listener/ClientConfigurationPacketListener;onDynamicRegistries(Lnet/minecraft/network/packet/s2c/config/DynamicRegistriesS2CPacket;)V
intermediary method_52795
Lnet/minecraft/class_8732;method_52795(Lnet/minecraft/class_8734;)V
official a
Laav;a(Laax;)V
-
onSynchronizeTags
- Specified by:
onSynchronizeTags
in interfaceClientCommonPacketListener
- Mappings:
Namespace Name Mixin selector named onSynchronizeTags
Lnet/minecraft/network/listener/ClientCommonPacketListener;onSynchronizeTags(Lnet/minecraft/network/packet/s2c/common/SynchronizeTagsS2CPacket;)V
intermediary method_11126
Lnet/minecraft/class_8705;method_11126(Lnet/minecraft/class_2790;)V
official a
Lzh;a(Lzq;)V
-
onFeatures
- Specified by:
onFeatures
in interfaceClientConfigurationPacketListener
- Mappings:
Namespace Name Mixin selector named onFeatures
Lnet/minecraft/network/listener/ClientConfigurationPacketListener;onFeatures(Lnet/minecraft/network/packet/s2c/config/FeaturesS2CPacket;)V
intermediary method_52796
Lnet/minecraft/class_8732;method_52796(Lnet/minecraft/class_7832;)V
official a
Laav;a(Laba;)V
-
onSelectKnownPacks
- Specified by:
onSelectKnownPacks
in interfaceClientConfigurationPacketListener
- Mappings:
Namespace Name Mixin selector named onSelectKnownPacks
Lnet/minecraft/network/listener/ClientConfigurationPacketListener;onSelectKnownPacks(Lnet/minecraft/network/packet/s2c/config/SelectKnownPacksS2CPacket;)V
intermediary method_57045
Lnet/minecraft/class_8732;method_57045(Lnet/minecraft/class_9250;)V
official a
Laav;a(Laaz;)V
-
onResetChat
- Specified by:
onResetChat
in interfaceClientConfigurationPacketListener
- Mappings:
Namespace Name Mixin selector named onResetChat
Lnet/minecraft/network/listener/ClientConfigurationPacketListener;onResetChat(Lnet/minecraft/network/packet/s2c/config/ResetChatS2CPacket;)V
intermediary method_58577
Lnet/minecraft/class_8732;method_58577(Lnet/minecraft/class_9448;)V
official a
Laav;a(Laay;)V
-
openClientDataPack
- Mappings:
Namespace Name Mixin selector named openClientDataPack
Lnet/minecraft/client/network/ClientConfigurationNetworkHandler;openClientDataPack(Ljava/util/function/Function;)Ljava/lang/Object;
intermediary method_57044
Lnet/minecraft/class_8674;method_57044(Ljava/util/function/Function;)Ljava/lang/Object;
official a
Lfyj;a(Ljava/util/function/Function;)Ljava/lang/Object;
-
onReady
- Specified by:
onReady
in interfaceClientConfigurationPacketListener
- Mappings:
Namespace Name Mixin selector named onReady
Lnet/minecraft/network/listener/ClientConfigurationPacketListener;onReady(Lnet/minecraft/network/packet/s2c/config/ReadyS2CPacket;)V
intermediary method_52794
Lnet/minecraft/class_8732;method_52794(Lnet/minecraft/class_8733;)V
official a
Laav;a(Laaw;)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:
tick
in interfaceTickablePacketListener
- Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/network/listener/TickablePacketListener;tick()V
intermediary method_18784
Lnet/minecraft/class_7633;method_18784()V
official d
Lwi;d()V
-
onDisconnected
Called when the connection this listener listens to has disconnected. Can be used to display the disconnection reason.- Specified by:
onDisconnected
in interfacePacketListener
- Overrides:
onDisconnected
in classClientCommonNetworkHandler
- Parameters:
reason
- the reason of disconnection; may be a generic message- Mappings:
Namespace Name Mixin selector named onDisconnected
Lnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/text/Text;)V
intermediary method_10839
Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_2561;)V
official a
Lwa;a(Lwu;)V
-