Class ClientConnection

All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler

public class ClientConnection extends SimpleChannelInboundHandler<Packet<?>>
Mappings:
Namespace Name
official hw
intermediary net/minecraft/class_1957
named net/minecraft/network/ClientConnection
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official g Lhw;g:Lorg/apache/logging/log4j/Logger;
      intermediary field_8426 Lnet/minecraft/class_1957;field_8426:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/network/ClientConnection;LOGGER:Lorg/apache/logging/log4j/Logger;
    • MARKER_NETWORK

      public static final Marker MARKER_NETWORK
      Mappings:
      Namespace Name Mixin selector
      official a Lhw;a:Lorg/apache/logging/log4j/Marker;
      intermediary field_8418 Lnet/minecraft/class_1957;field_8418:Lorg/apache/logging/log4j/Marker;
      named MARKER_NETWORK Lnet/minecraft/network/ClientConnection;MARKER_NETWORK:Lorg/apache/logging/log4j/Marker;
    • MARKER_NETWORK_PACKETS

      public static final Marker MARKER_NETWORK_PACKETS
      Mappings:
      Namespace Name Mixin selector
      official b Lhw;b:Lorg/apache/logging/log4j/Marker;
      intermediary field_8419 Lnet/minecraft/class_1957;field_8419:Lorg/apache/logging/log4j/Marker;
      named MARKER_NETWORK_PACKETS Lnet/minecraft/network/ClientConnection;MARKER_NETWORK_PACKETS:Lorg/apache/logging/log4j/Marker;
    • ATTR_KEY_PROTOCOL

      public static final AttributeKey<NetworkState> ATTR_KEY_PROTOCOL
      Mappings:
      Namespace Name Mixin selector
      official c Lhw;c:Lio/netty/util/AttributeKey;
      intermediary field_8421 Lnet/minecraft/class_1957;field_8421:Lio/netty/util/AttributeKey;
      named ATTR_KEY_PROTOCOL Lnet/minecraft/network/ClientConnection;ATTR_KEY_PROTOCOL:Lio/netty/util/AttributeKey;
    • field_11553

      public static final Lazy<NioEventLoopGroup> field_11553
      Mappings:
      Namespace Name Mixin selector
      official d Lhw;d:Lxn;
      intermediary field_11553 Lnet/minecraft/class_1957;field_11553:Lnet/minecraft/class_2603;
      named field_11553 Lnet/minecraft/network/ClientConnection;field_11553:Lnet/minecraft/util/Lazy;
    • field_11554

      public static final Lazy<EpollEventLoopGroup> field_11554
      Mappings:
      Namespace Name Mixin selector
      official e Lhw;e:Lxn;
      intermediary field_11554 Lnet/minecraft/class_1957;field_11554:Lnet/minecraft/class_2603;
      named field_11554 Lnet/minecraft/network/ClientConnection;field_11554:Lnet/minecraft/util/Lazy;
    • field_11555

      public static final Lazy<DefaultEventLoopGroup> field_11555
      Mappings:
      Namespace Name Mixin selector
      official f Lhw;f:Lxn;
      intermediary field_11555 Lnet/minecraft/class_1957;field_11555:Lnet/minecraft/class_2603;
      named field_11555 Lnet/minecraft/network/ClientConnection;field_11555:Lnet/minecraft/util/Lazy;
    • field_11556

      private final NetworkSide field_11556
      Mappings:
      Namespace Name Mixin selector
      official h Lhw;h:Liw;
      intermediary field_11556 Lnet/minecraft/class_1957;field_11556:Lnet/minecraft/class_2569;
      named field_11556 Lnet/minecraft/network/ClientConnection;field_11556:Lnet/minecraft/network/NetworkSide;
    • packetQueue

      private final Queue<ClientConnection.PacketWrapper> packetQueue
      Mappings:
      Namespace Name Mixin selector
      official i Lhw;i:Ljava/util/Queue;
      intermediary field_8429 Lnet/minecraft/class_1957;field_8429:Ljava/util/Queue;
      named packetQueue Lnet/minecraft/network/ClientConnection;packetQueue:Ljava/util/Queue;
    • field_11557

      private final ReentrantReadWriteLock field_11557
      Mappings:
      Namespace Name Mixin selector
      official j Lhw;j:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
      intermediary field_11557 Lnet/minecraft/class_1957;field_11557:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
      named field_11557 Lnet/minecraft/network/ClientConnection;field_11557:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
    • channel

      private Channel channel
      Mappings:
      Namespace Name Mixin selector
      official k Lhw;k:Lio/netty/channel/Channel;
      intermediary field_8430 Lnet/minecraft/class_1957;field_8430:Lio/netty/channel/Channel;
      named channel Lnet/minecraft/network/ClientConnection;channel:Lio/netty/channel/Channel;
    • address

      private SocketAddress address
      Mappings:
      Namespace Name Mixin selector
      official l Lhw;l:Ljava/net/SocketAddress;
      intermediary field_8431 Lnet/minecraft/class_1957;field_8431:Ljava/net/SocketAddress;
      named address Lnet/minecraft/network/ClientConnection;address:Ljava/net/SocketAddress;
    • field_8432

      private PacketListener field_8432
      Mappings:
      Namespace Name Mixin selector
      official m Lhw;m:Lib;
      intermediary field_8432 Lnet/minecraft/class_1957;field_8432:Lnet/minecraft/class_701;
      named field_8432 Lnet/minecraft/network/ClientConnection;field_8432:Lnet/minecraft/network/listener/PacketListener;
    • field_8434

      private Text field_8434
      Mappings:
      Namespace Name Mixin selector
      official n Lhw;n:Lij;
      intermediary field_8434 Lnet/minecraft/class_1957;field_8434:Lnet/minecraft/class_1982;
      named field_8434 Lnet/minecraft/network/ClientConnection;field_8434:Lnet/minecraft/text/Text;
    • encrypted

      private boolean encrypted
      Mappings:
      Namespace Name Mixin selector
      official o Lhw;o:Z
      intermediary field_8435 Lnet/minecraft/class_1957;field_8435:Z
      named encrypted Lnet/minecraft/network/ClientConnection;encrypted:Z
    • disconnected

      private boolean disconnected
      Mappings:
      Namespace Name Mixin selector
      official p Lhw;p:Z
      intermediary field_11558 Lnet/minecraft/class_1957;field_11558:Z
      named disconnected Lnet/minecraft/network/ClientConnection;disconnected:Z
    • field_21500

      private int field_21500
      Mappings:
      Namespace Name Mixin selector
      official q Lhw;q:I
      intermediary field_21500 Lnet/minecraft/class_1957;field_21500:I
      named field_21500 Lnet/minecraft/network/ClientConnection;field_21500:I
    • field_21501

      private int field_21501
      Mappings:
      Namespace Name Mixin selector
      official r Lhw;r:I
      intermediary field_21501 Lnet/minecraft/class_1957;field_21501:I
      named field_21501 Lnet/minecraft/network/ClientConnection;field_21501:I
    • field_21502

      private float field_21502
      Mappings:
      Namespace Name Mixin selector
      official s Lhw;s:F
      intermediary field_21502 Lnet/minecraft/class_1957;field_21502:F
      named field_21502 Lnet/minecraft/network/ClientConnection;field_21502:F
    • field_21503

      private float field_21503
      Mappings:
      Namespace Name Mixin selector
      official t Lhw;t:F
      intermediary field_21503 Lnet/minecraft/class_1957;field_21503:F
      named field_21503 Lnet/minecraft/network/ClientConnection;field_21503:F
    • field_21504

      private int field_21504
      Mappings:
      Namespace Name Mixin selector
      official u Lhw;u:I
      intermediary field_21504 Lnet/minecraft/class_1957;field_21504:I
      named field_21504 Lnet/minecraft/network/ClientConnection;field_21504:I
    • field_21505

      private boolean field_21505
      Mappings:
      Namespace Name Mixin selector
      official v Lhw;v:Z
      intermediary field_21505 Lnet/minecraft/class_1957;field_21505:Z
      named field_21505 Lnet/minecraft/network/ClientConnection;field_21505:Z
  • Constructor Details

    • ClientConnection

      public ClientConnection(NetworkSide networkSide)
  • Method Details

    • channelActive

      public void channelActive(ChannelHandlerContext channelHandlerContext) throws Exception
      Specified by:
      channelActive in interface ChannelInboundHandler
      Overrides:
      channelActive in class ChannelInboundHandlerAdapter
      Throws:
      Exception
      Mappings:
      Namespace Name Mixin selector
      official channelActive Lhw;channelActive(Lio/netty/channel/ChannelHandlerContext;)V
      intermediary channelActive Lnet/minecraft/class_1957;channelActive(Lio/netty/channel/ChannelHandlerContext;)V
      named channelActive Lnet/minecraft/network/ClientConnection;channelActive(Lio/netty/channel/ChannelHandlerContext;)V
    • setState

      public void setState(NetworkState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lhw;a(Lhx;)V
      intermediary method_7392 Lnet/minecraft/class_1957;method_7392(Lnet/minecraft/class_1962;)V
      named setState Lnet/minecraft/network/ClientConnection;setState(Lnet/minecraft/network/NetworkState;)V
    • channelInactive

      public void channelInactive(ChannelHandlerContext channelHandlerContext) throws Exception
      Specified by:
      channelInactive in interface ChannelInboundHandler
      Overrides:
      channelInactive in class ChannelInboundHandlerAdapter
      Throws:
      Exception
      Mappings:
      Namespace Name Mixin selector
      official channelInactive Lhw;channelInactive(Lio/netty/channel/ChannelHandlerContext;)V
      intermediary channelInactive Lnet/minecraft/class_1957;channelInactive(Lio/netty/channel/ChannelHandlerContext;)V
      named channelInactive Lnet/minecraft/network/ClientConnection;channelInactive(Lio/netty/channel/ChannelHandlerContext;)V
    • exceptionCaught

      public void exceptionCaught(ChannelHandlerContext channelHandlerContext, Throwable throwable)
      Specified by:
      exceptionCaught in interface ChannelHandler
      Specified by:
      exceptionCaught in interface ChannelInboundHandler
      Overrides:
      exceptionCaught in class ChannelInboundHandlerAdapter
      Mappings:
      Namespace Name Mixin selector
      official exceptionCaught Lhw;exceptionCaught(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Throwable;)V
      intermediary exceptionCaught Lnet/minecraft/class_1957;exceptionCaught(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Throwable;)V
      named exceptionCaught Lnet/minecraft/network/ClientConnection;exceptionCaught(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Throwable;)V
    • channelRead0

      protected void channelRead0(ChannelHandlerContext channelHandlerContext, Packet<?> packet) throws Exception
      Specified by:
      channelRead0 in class SimpleChannelInboundHandler<Packet<?>>
      Throws:
      Exception
      Mappings:
      Namespace Name Mixin selector
      official a Lhw;a(Lio/netty/channel/ChannelHandlerContext;Liv;)V
      intermediary method_7396 Lnet/minecraft/class_1957;method_7396(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/class_700;)V
      named channelRead0 Lnet/minecraft/network/ClientConnection;channelRead0(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/network/Packet;)V
    • method_20159

      private static <T extends PacketListener> void method_20159(Packet<T> packet, PacketListener packetListener)
      Mappings:
      Namespace Name Mixin selector
      official a Lhw;a(Liv;Lib;)V
      intermediary method_20159 Lnet/minecraft/class_1957;method_20159(Lnet/minecraft/class_700;Lnet/minecraft/class_701;)V
      named method_20159 Lnet/minecraft/network/ClientConnection;method_20159(Lnet/minecraft/network/Packet;Lnet/minecraft/network/listener/PacketListener;)V
    • setPacketListener

      public void setPacketListener(PacketListener listener)
      Mappings:
      Namespace Name Mixin selector
      official a Lhw;a(Lib;)V
      intermediary method_7393 Lnet/minecraft/class_1957;method_7393(Lnet/minecraft/class_701;)V
      named setPacketListener Lnet/minecraft/network/ClientConnection;setPacketListener(Lnet/minecraft/network/listener/PacketListener;)V
    • send

      public void send(Packet<?> packet)
      Mappings:
      Namespace Name Mixin selector
      official a Lhw;a(Liv;)V
      intermediary method_10588 Lnet/minecraft/class_1957;method_10588(Lnet/minecraft/class_700;)V
      named send Lnet/minecraft/network/ClientConnection;send(Lnet/minecraft/network/Packet;)V
    • method_20160

      public void method_20160(Packet<?> packet, @Nullable GenericFutureListener<? extends Future<? super Void>> genericFutureListener)
      Mappings:
      Namespace Name Mixin selector
      official a Lhw;a(Liv;Lio/netty/util/concurrent/GenericFutureListener;)V
      intermediary method_20160 Lnet/minecraft/class_1957;method_20160(Lnet/minecraft/class_700;Lio/netty/util/concurrent/GenericFutureListener;)V
      named method_20160 Lnet/minecraft/network/ClientConnection;method_20160(Lnet/minecraft/network/Packet;Lio/netty/util/concurrent/GenericFutureListener;)V
    • method_20161

      private void method_20161(Packet<?> packet, @Nullable GenericFutureListener<? extends Future<? super Void>> genericFutureListener)
      Mappings:
      Namespace Name Mixin selector
      official b Lhw;b(Liv;Lio/netty/util/concurrent/GenericFutureListener;)V
      intermediary method_20161 Lnet/minecraft/class_1957;method_20161(Lnet/minecraft/class_700;Lio/netty/util/concurrent/GenericFutureListener;)V
      named method_20161 Lnet/minecraft/network/ClientConnection;method_20161(Lnet/minecraft/network/Packet;Lio/netty/util/concurrent/GenericFutureListener;)V
    • sendQueuedPackets

      private void sendQueuedPackets()
      Mappings:
      Namespace Name Mixin selector
      official o Lhw;o()V
      intermediary method_7407 Lnet/minecraft/class_1957;method_7407()V
      named sendQueuedPackets Lnet/minecraft/network/ClientConnection;sendQueuedPackets()V
    • tick

      public void tick()
      Mappings:
      Namespace Name Mixin selector
      official a Lhw;a()V
      intermediary method_7390 Lnet/minecraft/class_1957;method_7390()V
      named tick Lnet/minecraft/network/ClientConnection;tick()V
    • getAddress

      public SocketAddress getAddress()
      Mappings:
      Namespace Name Mixin selector
      official b Lhw;b()Ljava/net/SocketAddress;
      intermediary method_7400 Lnet/minecraft/class_1957;method_7400()Ljava/net/SocketAddress;
      named getAddress Lnet/minecraft/network/ClientConnection;getAddress()Ljava/net/SocketAddress;
    • disconnect

      public void disconnect(Text disconnectReason)
      Mappings:
      Namespace Name Mixin selector
      official a Lhw;a(Lij;)V
      intermediary method_7394 Lnet/minecraft/class_1957;method_7394(Lnet/minecraft/class_1982;)V
      named disconnect Lnet/minecraft/network/ClientConnection;disconnect(Lnet/minecraft/text/Text;)V
    • isLocal

      public boolean isLocal()
      Mappings:
      Namespace Name Mixin selector
      official c Lhw;c()Z
      intermediary method_7402 Lnet/minecraft/class_1957;method_7402()Z
      named isLocal Lnet/minecraft/network/ClientConnection;isLocal()Z
    • connect

      @Environment(CLIENT) public static ClientConnection connect(InetAddress address, int port, boolean shouldUseNativeTransport)
      Mappings:
      Namespace Name Mixin selector
      official a Lhw;a(Ljava/net/InetAddress;IZ)Lhw;
      intermediary method_10590 Lnet/minecraft/class_1957;method_10590(Ljava/net/InetAddress;IZ)Lnet/minecraft/class_1957;
      named connect Lnet/minecraft/network/ClientConnection;connect(Ljava/net/InetAddress;IZ)Lnet/minecraft/network/ClientConnection;
    • connectLocal

      @Environment(CLIENT) public static ClientConnection connectLocal(SocketAddress address)
      Mappings:
      Namespace Name Mixin selector
      official a Lhw;a(Ljava/net/SocketAddress;)Lhw;
      intermediary method_7398 Lnet/minecraft/class_1957;method_7398(Ljava/net/SocketAddress;)Lnet/minecraft/class_1957;
      named connectLocal Lnet/minecraft/network/ClientConnection;connectLocal(Ljava/net/SocketAddress;)Lnet/minecraft/network/ClientConnection;
    • setupEncryption

      public void setupEncryption(SecretKey secretKey)
      Mappings:
      Namespace Name Mixin selector
      official a Lhw;a(Ljavax/crypto/SecretKey;)V
      intermediary method_7399 Lnet/minecraft/class_1957;method_7399(Ljavax/crypto/SecretKey;)V
      named setupEncryption Lnet/minecraft/network/ClientConnection;setupEncryption(Ljavax/crypto/SecretKey;)V
    • isEncrypted

      @Environment(CLIENT) public boolean isEncrypted()
      Mappings:
      Namespace Name Mixin selector
      official f Lhw;f()Z
      intermediary method_10591 Lnet/minecraft/class_1957;method_10591()Z
      named isEncrypted Lnet/minecraft/network/ClientConnection;isEncrypted()Z
    • isOpen

      public boolean isOpen()
      Mappings:
      Namespace Name Mixin selector
      official g Lhw;g()Z
      intermediary method_7403 Lnet/minecraft/class_1957;method_7403()Z
      named isOpen Lnet/minecraft/network/ClientConnection;isOpen()Z
    • hasChannel

      public boolean hasChannel()
      Mappings:
      Namespace Name Mixin selector
      official h Lhw;h()Z
      intermediary method_10592 Lnet/minecraft/class_1957;method_10592()Z
      named hasChannel Lnet/minecraft/network/ClientConnection;hasChannel()Z
    • getPacketListener

      public PacketListener getPacketListener()
      Mappings:
      Namespace Name Mixin selector
      official i Lhw;i()Lib;
      intermediary method_7404 Lnet/minecraft/class_1957;method_7404()Lnet/minecraft/class_701;
      named getPacketListener Lnet/minecraft/network/ClientConnection;getPacketListener()Lnet/minecraft/network/listener/PacketListener;
    • getDisconnectReason

      @Nullable public Text getDisconnectReason()
      Mappings:
      Namespace Name Mixin selector
      official j Lhw;j()Lij;
      intermediary method_7405 Lnet/minecraft/class_1957;method_7405()Lnet/minecraft/class_1982;
      named getDisconnectReason Lnet/minecraft/network/ClientConnection;getDisconnectReason()Lnet/minecraft/text/Text;
    • disableAutoRead

      public void disableAutoRead()
      Mappings:
      Namespace Name Mixin selector
      official k Lhw;k()V
      intermediary method_7406 Lnet/minecraft/class_1957;method_7406()V
      named disableAutoRead Lnet/minecraft/network/ClientConnection;disableAutoRead()V
    • setCompressionThreshold

      public void setCompressionThreshold(int compressionThreshold)
      Mappings:
      Namespace Name Mixin selector
      official a Lhw;a(I)V
      intermediary method_10587 Lnet/minecraft/class_1957;method_10587(I)V
      named setCompressionThreshold Lnet/minecraft/network/ClientConnection;setCompressionThreshold(I)V
    • handleDisconnection

      public void handleDisconnection()
      Mappings:
      Namespace Name Mixin selector
      official l Lhw;l()V
      intermediary method_10593 Lnet/minecraft/class_1957;method_10593()V
      named handleDisconnection Lnet/minecraft/network/ClientConnection;handleDisconnection()V
    • method_20162

      @Environment(CLIENT) public float method_20162()
      Mappings:
      Namespace Name Mixin selector
      official m Lhw;m()F
      intermediary method_20162 Lnet/minecraft/class_1957;method_20162()F
      named method_20162 Lnet/minecraft/network/ClientConnection;method_20162()F
    • method_20163

      @Environment(CLIENT) public float method_20163()
      Mappings:
      Namespace Name Mixin selector
      official n Lhw;n()F
      intermediary method_20163 Lnet/minecraft/class_1957;method_20163()F
      named method_20163 Lnet/minecraft/network/ClientConnection;method_20163()F