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,ClientPacketListener,PacketListener,TickablePacketListener
@Environment(CLIENT)
public class ClientConfigurationNetworkHandler
extends ClientCommonNetworkHandler
implements TickablePacketListener, ClientConfigurationPacketListener
- Mappings:
Namespace Name official fnqintermediary net/minecraft/class_8674named net/minecraft/client/network/ClientConfigurationNetworkHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FeatureSetprivate static final Loggerprivate final com.mojang.authlib.GameProfileprivate DynamicRegistryManager.ImmutableFields inherited from class net.minecraft.client.network.ClientCommonNetworkHandler
brand, client, connection, postDisconnectScreen, serverInfo, worldSession -
Constructor Summary
ConstructorsConstructorDescriptionClientConfigurationNetworkHandler(MinecraftClient client, ClientConnection connection, ClientConnectionState connectionState) -
Method Summary
Modifier and TypeMethodDescriptionprotected DynamicRegistryManager.Immutableprivate voidhandleCustomPayload(CustomPayload payload) booleanprotected voidonCustomPayload(CustomPayload payload) voidonDisconnected(Text reason) Called when the connection this listener listens to has disconnected.voidvoidonFeatures(FeaturesS2CPacket packet) voidonReady(ReadyS2CPacket packet) voidtick()Ticks this packet listener on the game engine thread.Methods inherited from class net.minecraft.client.network.ClientCommonNetworkHandler
addCustomCrashReportInfo, createDisconnectedScreen, getBrand, getPrompt, onCustomPayload, onDisconnect, onKeepAlive, onPing, onResourcePackRemove, onResourcePackSend, onSynchronizeTags, sendPacket, sendQueuedPacketsMethods 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
onCustomPayload, onDisconnect, onKeepAlive, onPing, onResourcePackRemove, onResourcePackSend, onSynchronizeTagsMethods inherited from interface net.minecraft.network.listener.ClientConfigurationPacketListener
getStateMethods inherited from interface net.minecraft.network.listener.ClientPacketListener
getSideMethods inherited from interface net.minecraft.network.listener.PacketListener
accepts, addCustomCrashReportInfo, fillCrashReport, shouldCrashOnException
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official gLfnq;g:Lorg/slf4j/Logger;intermediary field_45596Lnet/minecraft/class_8674;field_45596:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/client/network/ClientConfigurationNetworkHandler;LOGGER:Lorg/slf4j/Logger;
-
profile
private final com.mojang.authlib.GameProfile profile- Mappings:
Namespace Name Mixin selector official hLfnq;h:Lcom/mojang/authlib/GameProfile;intermediary field_45597Lnet/minecraft/class_8674;field_45597:Lcom/mojang/authlib/GameProfile;named profileLnet/minecraft/client/network/ClientConfigurationNetworkHandler;profile:Lcom/mojang/authlib/GameProfile;
-
registryManager
- Mappings:
Namespace Name Mixin selector official iLfnq;i:Liu$b;intermediary field_45598Lnet/minecraft/class_8674;field_45598:Lnet/minecraft/class_5455$class_6890;named registryManagerLnet/minecraft/client/network/ClientConfigurationNetworkHandler;registryManager:Lnet/minecraft/registry/DynamicRegistryManager$Immutable;
-
enabledFeatures
- Mappings:
Namespace Name Mixin selector official jLfnq;j:Lchs;intermediary field_45599Lnet/minecraft/class_8674;field_45599:Lnet/minecraft/class_7699;named enabledFeaturesLnet/minecraft/client/network/ClientConfigurationNetworkHandler;enabledFeatures:Lnet/minecraft/resource/featuretoggle/FeatureSet;
-
-
Constructor Details
-
ClientConfigurationNetworkHandler
public ClientConfigurationNetworkHandler(MinecraftClient client, ClientConnection connection, ClientConnectionState connectionState) - Mappings:
Namespace Name Mixin selector official <init>Lfnp;<init>(Levi;Lug;Lfnw;)Vintermediary <init>Lnet/minecraft/class_8673;<init>(Lnet/minecraft/class_310;Lnet/minecraft/class_2535;Lnet/minecraft/class_8675;)Vnamed <init>Lnet/minecraft/client/network/ClientCommonNetworkHandler;<init>(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/network/ClientConnection;Lnet/minecraft/client/network/ClientConnectionState;)V
-
-
Method Details
-
isConnectionOpen
public boolean isConnectionOpen()- Specified by:
isConnectionOpenin interfacePacketListener- Mappings:
Namespace Name Mixin selector official cLuo;c()Zintermediary method_48106Lnet/minecraft/class_2547;method_48106()Znamed isConnectionOpenLnet/minecraft/network/listener/PacketListener;isConnectionOpen()Z
-
getRegistryManager
- Specified by:
getRegistryManagerin classClientCommonNetworkHandler- Mappings:
Namespace Name Mixin selector official fLfnp;f()Liu$b;intermediary method_29091Lnet/minecraft/class_8673;method_29091()Lnet/minecraft/class_5455$class_6890;named getRegistryManagerLnet/minecraft/client/network/ClientCommonNetworkHandler;getRegistryManager()Lnet/minecraft/registry/DynamicRegistryManager$Immutable;
-
onCustomPayload
- Specified by:
onCustomPayloadin classClientCommonNetworkHandler- Mappings:
Namespace Name Mixin selector official aLfnp;a(Lya;)Vintermediary method_11152Lnet/minecraft/class_8673;method_11152(Lnet/minecraft/class_8710;)Vnamed onCustomPayloadLnet/minecraft/client/network/ClientCommonNetworkHandler;onCustomPayload(Lnet/minecraft/network/packet/CustomPayload;)V
-
handleCustomPayload
- Mappings:
Namespace Name Mixin selector official bLfnq;b(Lya;)Vintermediary method_52797Lnet/minecraft/class_8674;method_52797(Lnet/minecraft/class_8710;)Vnamed handleCustomPayloadLnet/minecraft/client/network/ClientConfigurationNetworkHandler;handleCustomPayload(Lnet/minecraft/network/packet/CustomPayload;)V
-
onDynamicRegistries
- Specified by:
onDynamicRegistriesin interfaceClientConfigurationPacketListener- Mappings:
Namespace Name Mixin selector official aLyt;a(Lyv;)Vintermediary method_52795Lnet/minecraft/class_8732;method_52795(Lnet/minecraft/class_8734;)Vnamed onDynamicRegistriesLnet/minecraft/network/listener/ClientConfigurationPacketListener;onDynamicRegistries(Lnet/minecraft/network/packet/s2c/config/DynamicRegistriesS2CPacket;)V
-
onFeatures
- Specified by:
onFeaturesin interfaceClientConfigurationPacketListener- Mappings:
Namespace Name Mixin selector official aLyt;a(Lyw;)Vintermediary method_52796Lnet/minecraft/class_8732;method_52796(Lnet/minecraft/class_7832;)Vnamed onFeaturesLnet/minecraft/network/listener/ClientConfigurationPacketListener;onFeatures(Lnet/minecraft/network/packet/s2c/config/FeaturesS2CPacket;)V
-
onReady
- Specified by:
onReadyin interfaceClientConfigurationPacketListener- Mappings:
Namespace Name Mixin selector official aLyt;a(Lyu;)Vintermediary method_52794Lnet/minecraft/class_8732;method_52794(Lnet/minecraft/class_8733;)Vnamed onReadyLnet/minecraft/network/listener/ClientConfigurationPacketListener;onReady(Lnet/minecraft/network/packet/s2c/config/ReadyS2CPacket;)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 official eLuu;e()Vintermediary method_18784Lnet/minecraft/class_7633;method_18784()Vnamed tickLnet/minecraft/network/listener/TickablePacketListener;tick()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- Parameters:
reason- the reason of disconnection; may be a generic message- Mappings:
Namespace Name Mixin selector official aLuo;a(Lvf;)Vintermediary method_10839Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_2561;)Vnamed onDisconnectedLnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/text/Text;)V
-