Class ClientCommonNetworkHandler

java.lang.Object
net.minecraft.client.network.ClientCommonNetworkHandler
All Implemented Interfaces:
ClientCommonPacketListener, ClientCookieRequestPacketListener, ClientPacketListener, PacketListener
Direct Known Subclasses:
ClientConfigurationNetworkHandler, ClientPlayNetworkHandler

@Environment(CLIENT) public abstract class ClientCommonNetworkHandler extends Object implements ClientCommonPacketListener
Mappings:
Namespace Name
named net/minecraft/client/network/ClientCommonNetworkHandler
intermediary net/minecraft/class_8673
official fyw
  • Field Details

    • LOST_CONNECTION_TEXT

      private static final Text LOST_CONNECTION_TEXT
      Mappings:
      Namespace Name Mixin selector
      named LOST_CONNECTION_TEXT Lnet/minecraft/client/network/ClientCommonNetworkHandler;LOST_CONNECTION_TEXT:Lnet/minecraft/text/Text;
      intermediary field_45594 Lnet/minecraft/class_8673;field_45594:Lnet/minecraft/class_2561;
      official l Lfyw;l:Lwy;
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/network/ClientCommonNetworkHandler;LOGGER:Lorg/slf4j/Logger;
      intermediary field_45944 Lnet/minecraft/class_8673;field_45944:Lorg/slf4j/Logger;
      official m Lfyw;m:Lorg/slf4j/Logger;
    • client

      protected final MinecraftClient client
      Mappings:
      Namespace Name Mixin selector
      named client Lnet/minecraft/client/network/ClientCommonNetworkHandler;client:Lnet/minecraft/client/MinecraftClient;
      intermediary field_45588 Lnet/minecraft/class_8673;field_45588:Lnet/minecraft/class_310;
      official a Lfyw;a:Lfgi;
    • connection

      protected final ClientConnection connection
      Mappings:
      Namespace Name Mixin selector
      named connection Lnet/minecraft/client/network/ClientCommonNetworkHandler;connection:Lnet/minecraft/network/ClientConnection;
      intermediary field_45589 Lnet/minecraft/class_8673;field_45589:Lnet/minecraft/class_2535;
      official b Lfyw;b:Lvs;
    • serverInfo

      @Nullable protected final @Nullable ServerInfo serverInfo
      Mappings:
      Namespace Name Mixin selector
      named serverInfo Lnet/minecraft/client/network/ClientCommonNetworkHandler;serverInfo:Lnet/minecraft/client/network/ServerInfo;
      intermediary field_45590 Lnet/minecraft/class_8673;field_45590:Lnet/minecraft/class_642;
      official c Lfyw;c:Lfzn;
    • brand

      @Nullable protected @Nullable String brand
      Mappings:
      Namespace Name Mixin selector
      named brand Lnet/minecraft/client/network/ClientCommonNetworkHandler;brand:Ljava/lang/String;
      intermediary field_45591 Lnet/minecraft/class_8673;field_45591:Ljava/lang/String;
      official d Lfyw;d:Ljava/lang/String;
    • worldSession

      protected final WorldSession worldSession
      Mappings:
      Namespace Name Mixin selector
      named worldSession Lnet/minecraft/client/network/ClientCommonNetworkHandler;worldSession:Lnet/minecraft/client/session/telemetry/WorldSession;
      intermediary field_45592 Lnet/minecraft/class_8673;field_45592:Lnet/minecraft/class_7975;
      official e Lfyw;e:Lgvl;
    • postDisconnectScreen

      @Nullable protected final @Nullable Screen postDisconnectScreen
      Mappings:
      Namespace Name Mixin selector
      named postDisconnectScreen Lnet/minecraft/client/network/ClientCommonNetworkHandler;postDisconnectScreen:Lnet/minecraft/client/gui/screen/Screen;
      intermediary field_45593 Lnet/minecraft/class_8673;field_45593:Lnet/minecraft/class_437;
      official f Lfyw;f:Lfnx;
    • transferring

      protected boolean transferring
      Mappings:
      Namespace Name Mixin selector
      named transferring Lnet/minecraft/client/network/ClientCommonNetworkHandler;transferring:Z
      intermediary field_51516 Lnet/minecraft/class_8673;field_51516:Z
      official g Lfyw;g:Z
    • strictErrorHandling

      @Deprecated(forRemoval=true) protected final boolean strictErrorHandling
      Deprecated, for removal: This API element is subject to removal in a future version.
      Mappings:
      Namespace Name Mixin selector
      named strictErrorHandling Lnet/minecraft/client/network/ClientCommonNetworkHandler;strictErrorHandling:Z
      intermediary field_51520 Lnet/minecraft/class_8673;field_51520:Z
      official h Lfyw;h:Z
    • queuedPackets

      private final List<ClientCommonNetworkHandler.QueuedPacket> queuedPackets
      Mappings:
      Namespace Name Mixin selector
      named queuedPackets Lnet/minecraft/client/network/ClientCommonNetworkHandler;queuedPackets:Ljava/util/List;
      intermediary field_45595 Lnet/minecraft/class_8673;field_45595:Ljava/util/List;
      official n Lfyw;n:Ljava/util/List;
    • serverCookies

      protected final Map<Identifier,byte[]> serverCookies
      Mappings:
      Namespace Name Mixin selector
      named serverCookies Lnet/minecraft/client/network/ClientCommonNetworkHandler;serverCookies:Ljava/util/Map;
      intermediary field_48399 Lnet/minecraft/class_8673;field_48399:Ljava/util/Map;
      official i Lfyw;i:Ljava/util/Map;
    • field_52154

      protected Map<String,String> field_52154
      Mappings:
      Namespace Name Mixin selector
      named field_52154 Lnet/minecraft/client/network/ClientCommonNetworkHandler;field_52154:Ljava/util/Map;
      intermediary field_52154 Lnet/minecraft/class_8673;field_52154:Ljava/util/Map;
      official j Lfyw;j:Ljava/util/Map;
    • field_52155

      protected class_9782 field_52155
      Mappings:
      Namespace Name Mixin selector
      named field_52155 Lnet/minecraft/client/network/ClientCommonNetworkHandler;field_52155:Lnet/minecraft/class_9782;
      intermediary field_52155 Lnet/minecraft/class_8673;field_52155:Lnet/minecraft/class_9782;
      official k Lfyw;k:Lali;
  • Constructor Details

    • ClientCommonNetworkHandler

      protected ClientCommonNetworkHandler(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> Lfyw;<init>(Lfgi;Lvs;Lfzd;)V
  • Method Details

    • onPacketException

      public void onPacketException(Packet packet, Exception exception)
      Specified by:
      onPacketException in interface PacketListener
      Mappings:
      Namespace Name Mixin selector
      named onPacketException Lnet/minecraft/network/listener/PacketListener;onPacketException(Lnet/minecraft/network/packet/Packet;Ljava/lang/Exception;)V
      intermediary method_59807 Lnet/minecraft/class_2547;method_59807(Lnet/minecraft/class_2596;Ljava/lang/Exception;)V
      official a Lwe;a(Lzf;Ljava/lang/Exception;)V
    • method_60881

      public class_9812 method_60881(Text text, Throwable throwable)
      Specified by:
      method_60881 in interface PacketListener
      Mappings:
      Namespace Name Mixin selector
      named method_60881 Lnet/minecraft/network/listener/PacketListener;method_60881(Lnet/minecraft/text/Text;Ljava/lang/Throwable;)Lnet/minecraft/class_9812;
      intermediary method_60881 Lnet/minecraft/class_2547;method_60881(Lnet/minecraft/class_2561;Ljava/lang/Throwable;)Lnet/minecraft/class_9812;
      official a Lwe;a(Lwy;Ljava/lang/Throwable;)Lvu;
    • method_60882

      private Optional<Path> method_60882(@Nullable @Nullable Packet packet, Throwable throwable)
      Mappings:
      Namespace Name Mixin selector
      named method_60882 Lnet/minecraft/client/network/ClientCommonNetworkHandler;method_60882(Lnet/minecraft/network/packet/Packet;Ljava/lang/Throwable;)Ljava/util/Optional;
      intermediary method_60882 Lnet/minecraft/class_8673;method_60882(Lnet/minecraft/class_2596;Ljava/lang/Throwable;)Ljava/util/Optional;
      official a Lfyw;a(Lzf;Ljava/lang/Throwable;)Ljava/util/Optional;
    • accepts

      public boolean accepts(Packet<?> packet)
      Specified by:
      accepts in interface PacketListener
      Mappings:
      Namespace Name Mixin selector
      named accepts Lnet/minecraft/network/listener/PacketListener;accepts(Lnet/minecraft/network/packet/Packet;)Z
      intermediary method_52413 Lnet/minecraft/class_2547;method_52413(Lnet/minecraft/class_2596;)Z
      official a Lwe;a(Lzf;)Z
    • onKeepAlive

      public void onKeepAlive(KeepAliveS2CPacket packet)
      Specified by:
      onKeepAlive in interface ClientCommonPacketListener
      Mappings:
      Namespace Name Mixin selector
      named onKeepAlive Lnet/minecraft/network/listener/ClientCommonPacketListener;onKeepAlive(Lnet/minecraft/network/packet/s2c/common/KeepAliveS2CPacket;)V
      intermediary method_52782 Lnet/minecraft/class_8705;method_52782(Lnet/minecraft/class_2670;)V
      official a Lzl;a(Lzp;)V
    • onPing

      public void onPing(CommonPingS2CPacket packet)
      Specified by:
      onPing in interface ClientCommonPacketListener
      Mappings:
      Namespace Name Mixin selector
      named onPing Lnet/minecraft/network/listener/ClientCommonPacketListener;onPing(Lnet/minecraft/network/packet/s2c/common/CommonPingS2CPacket;)V
      intermediary method_52783 Lnet/minecraft/class_8705;method_52783(Lnet/minecraft/class_6373;)V
      official a Lzl;a(Lzq;)V
    • onCustomPayload

      public void onCustomPayload(CustomPayloadS2CPacket packet)
      Specified by:
      onCustomPayload in interface ClientCommonPacketListener
      Mappings:
      Namespace Name Mixin selector
      named onCustomPayload Lnet/minecraft/network/listener/ClientCommonPacketListener;onCustomPayload(Lnet/minecraft/network/packet/s2c/common/CustomPayloadS2CPacket;)V
      intermediary method_52780 Lnet/minecraft/class_8705;method_52780(Lnet/minecraft/class_2658;)V
      official a Lzl;a(Lzm;)V
    • onCustomPayload

      protected abstract void onCustomPayload(CustomPayload payload)
      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 Lfyw;a(Laai;)V
    • onResourcePackSend

      public void onResourcePackSend(ResourcePackSendS2CPacket packet)
      Specified by:
      onResourcePackSend in interface ClientCommonPacketListener
      Mappings:
      Namespace Name Mixin selector
      named onResourcePackSend Lnet/minecraft/network/listener/ClientCommonPacketListener;onResourcePackSend(Lnet/minecraft/network/packet/s2c/common/ResourcePackSendS2CPacket;)V
      intermediary method_52784 Lnet/minecraft/class_8705;method_52784(Lnet/minecraft/class_2720;)V
      official a Lzl;a(Lzs;)V
    • onResourcePackRemove

      public void onResourcePackRemove(ResourcePackRemoveS2CPacket packet)
      Specified by:
      onResourcePackRemove in interface ClientCommonPacketListener
      Mappings:
      Namespace Name Mixin selector
      named onResourcePackRemove Lnet/minecraft/network/listener/ClientCommonPacketListener;onResourcePackRemove(Lnet/minecraft/network/packet/s2c/common/ResourcePackRemoveS2CPacket;)V
      intermediary method_55512 Lnet/minecraft/class_8705;method_55512(Lnet/minecraft/class_9053;)V
      official a Lzl;a(Lzr;)V
    • getPrompt

      static Text getPrompt(Text requirementPrompt, @Nullable @Nullable Text customPrompt)
      Mappings:
      Namespace Name Mixin selector
      named getPrompt Lnet/minecraft/client/network/ClientCommonNetworkHandler;getPrompt(Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)Lnet/minecraft/text/Text;
      intermediary method_52778 Lnet/minecraft/class_8673;method_52778(Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)Lnet/minecraft/class_2561;
      official a Lfyw;a(Lwy;Lwy;)Lwy;
    • getParsedResourcePackUrl

      @Nullable private static @Nullable URL getParsedResourcePackUrl(String url)
      Mappings:
      Namespace Name Mixin selector
      named getParsedResourcePackUrl Lnet/minecraft/client/network/ClientCommonNetworkHandler;getParsedResourcePackUrl(Ljava/lang/String;)Ljava/net/URL;
      intermediary method_52773 Lnet/minecraft/class_8673;method_52773(Ljava/lang/String;)Ljava/net/URL;
      official a Lfyw;a(Ljava/lang/String;)Ljava/net/URL;
    • onCookieRequest

      public void onCookieRequest(CookieRequestS2CPacket packet)
      Specified by:
      onCookieRequest in interface ClientCookieRequestPacketListener
      Mappings:
      Namespace Name Mixin selector
      named onCookieRequest Lnet/minecraft/network/listener/ClientCookieRequestPacketListener;onCookieRequest(Lnet/minecraft/network/packet/s2c/common/CookieRequestS2CPacket;)V
      intermediary method_55845 Lnet/minecraft/class_9087;method_55845(Lnet/minecraft/class_9088;)V
      official a Labn;a(Labo;)V
    • onStoreCookie

      public void onStoreCookie(StoreCookieS2CPacket packet)
      Specified by:
      onStoreCookie in interface ClientCommonPacketListener
      Mappings:
      Namespace Name Mixin selector
      named onStoreCookie Lnet/minecraft/network/listener/ClientCommonPacketListener;onStoreCookie(Lnet/minecraft/network/packet/s2c/common/StoreCookieS2CPacket;)V
      intermediary method_56149 Lnet/minecraft/class_8705;method_56149(Lnet/minecraft/class_9150;)V
      official a Lzl;a(Lzu;)V
    • method_60883

      public void method_60883(class_9814 class_9814)
      Specified by:
      method_60883 in interface ClientCommonPacketListener
      Mappings:
      Namespace Name Mixin selector
      named method_60883 Lnet/minecraft/network/listener/ClientCommonPacketListener;method_60883(Lnet/minecraft/class_9814;)V
      intermediary method_60883 Lnet/minecraft/class_8705;method_60883(Lnet/minecraft/class_9814;)V
      official a Lzl;a(Lzn;)V
    • method_60884

      public void method_60884(class_9815 class_9815)
      Specified by:
      method_60884 in interface ClientCommonPacketListener
      Mappings:
      Namespace Name Mixin selector
      named method_60884 Lnet/minecraft/network/listener/ClientCommonPacketListener;method_60884(Lnet/minecraft/class_9815;)V
      intermediary method_60884 Lnet/minecraft/class_8705;method_60884(Lnet/minecraft/class_9815;)V
      official a Lzl;a(Lzt;)V
    • onServerTransfer

      public void onServerTransfer(ServerTransferS2CPacket packet)
      Specified by:
      onServerTransfer in interface ClientCommonPacketListener
      Mappings:
      Namespace Name Mixin selector
      named onServerTransfer Lnet/minecraft/network/listener/ClientCommonPacketListener;onServerTransfer(Lnet/minecraft/network/packet/s2c/common/ServerTransferS2CPacket;)V
      intermediary method_56150 Lnet/minecraft/class_8705;method_56150(Lnet/minecraft/class_9151;)V
      official a Lzl;a(Lzv;)V
    • onDisconnect

      public void onDisconnect(DisconnectS2CPacket packet)
      Specified by:
      onDisconnect in interface ClientCommonPacketListener
      Mappings:
      Namespace Name Mixin selector
      named onDisconnect Lnet/minecraft/network/listener/ClientCommonPacketListener;onDisconnect(Lnet/minecraft/network/packet/s2c/common/DisconnectS2CPacket;)V
      intermediary method_52781 Lnet/minecraft/class_8705;method_52781(Lnet/minecraft/class_2661;)V
      official a Lzl;a(Lzo;)V
    • sendQueuedPackets

      protected void sendQueuedPackets()
      Mappings:
      Namespace Name Mixin selector
      named sendQueuedPackets Lnet/minecraft/client/network/ClientCommonNetworkHandler;sendQueuedPackets()V
      intermediary method_52789 Lnet/minecraft/class_8673;method_52789()V
      official e Lfyw;e()V
    • sendPacket

      public void sendPacket(Packet<?> packet)
      Mappings:
      Namespace Name Mixin selector
      named sendPacket Lnet/minecraft/client/network/ClientCommonNetworkHandler;sendPacket(Lnet/minecraft/network/packet/Packet;)V
      intermediary method_52787 Lnet/minecraft/class_8673;method_52787(Lnet/minecraft/class_2596;)V
      official b Lfyw;b(Lzf;)V
    • onDisconnected

      public void onDisconnected(class_9812 class_9812)
      Called when the connection this listener listens to has disconnected. Can be used to display the disconnection reason.
      Specified by:
      onDisconnected in interface PacketListener
      Mappings:
      Namespace Name Mixin selector
      named onDisconnected Lnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/class_9812;)V
      intermediary method_10839 Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_9812;)V
      official a Lwe;a(Lvu;)V
    • addCustomCrashReportInfo

      public void addCustomCrashReportInfo(CrashReport crashReport, CrashReportSection crashReportSection)
      Specified by:
      addCustomCrashReportInfo in interface PacketListener
      Mappings:
      Namespace Name Mixin selector
      named addCustomCrashReportInfo Lnet/minecraft/network/listener/PacketListener;addCustomCrashReportInfo(Lnet/minecraft/util/crash/CrashReport;Lnet/minecraft/util/crash/CrashReportSection;)V
      intermediary method_55597 Lnet/minecraft/class_2547;method_55597(Lnet/minecraft/class_128;Lnet/minecraft/class_129;)V
      official a Lwe;a(Lo;Lp;)V
    • createDisconnectedScreen

      protected Screen createDisconnectedScreen(class_9812 class_9812)
      Mappings:
      Namespace Name Mixin selector
      named createDisconnectedScreen Lnet/minecraft/client/network/ClientCommonNetworkHandler;createDisconnectedScreen(Lnet/minecraft/class_9812;)Lnet/minecraft/client/gui/screen/Screen;
      intermediary method_52786 Lnet/minecraft/class_8673;method_52786(Lnet/minecraft/class_9812;)Lnet/minecraft/class_437;
      official b Lfyw;b(Lvu;)Lfnx;
    • getBrand

      @Nullable public @Nullable String getBrand()
      Mappings:
      Namespace Name Mixin selector
      named getBrand Lnet/minecraft/client/network/ClientCommonNetworkHandler;getBrand()Ljava/lang/String;
      intermediary method_52790 Lnet/minecraft/class_8673;method_52790()Ljava/lang/String;
      official f Lfyw;f()Ljava/lang/String;
    • send

      private void send(Packet<? extends ServerPacketListener> packet, BooleanSupplier sendCondition, Duration expiry)
      Mappings:
      Namespace Name Mixin selector
      named send Lnet/minecraft/client/network/ClientCommonNetworkHandler;send(Lnet/minecraft/network/packet/Packet;Ljava/util/function/BooleanSupplier;Ljava/time/Duration;)V
      intermediary method_52779 Lnet/minecraft/class_8673;method_52779(Lnet/minecraft/class_2596;Ljava/util/function/BooleanSupplier;Ljava/time/Duration;)V
      official a Lfyw;a(Lzf;Ljava/util/function/BooleanSupplier;Ljava/time/Duration;)V
    • createConfirmServerResourcePackScreen

      private Screen createConfirmServerResourcePackScreen(UUID id, URL url, String hash, boolean required, @Nullable @Nullable Text prompt)
      Mappings:
      Namespace Name Mixin selector
      named createConfirmServerResourcePackScreen Lnet/minecraft/client/network/ClientCommonNetworkHandler;createConfirmServerResourcePackScreen(Ljava/util/UUID;Ljava/net/URL;Ljava/lang/String;ZLnet/minecraft/text/Text;)Lnet/minecraft/client/gui/screen/Screen;
      intermediary method_55609 Lnet/minecraft/class_8673;method_55609(Ljava/util/UUID;Ljava/net/URL;Ljava/lang/String;ZLnet/minecraft/class_2561;)Lnet/minecraft/class_437;
      official a Lfyw;a(Ljava/util/UUID;Ljava/net/URL;Ljava/lang/String;ZLwy;)Lfnx;