Package net.minecraft.network
Class ClientConnection
java.lang.Object
- All Implemented Interfaces:
ChannelHandler,ChannelInboundHandler
- Mappings:
Namespace Name official hwintermediary net/minecraft/class_1957named net/minecraft/network/ClientConnection
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SocketAddressstatic final AttributeKey<NetworkState>private Channelprivate booleanprivate booleanstatic final Lazy<NioEventLoopGroup>static final Lazy<EpollEventLoopGroup>static final Lazy<DefaultEventLoopGroup>private final NetworkSideprivate final ReentrantReadWriteLockprivate intprivate intprivate floatprivate floatprivate intprivate booleanprivate PacketListenerprivate Textprivate static final Loggerstatic final Markerstatic final Markerprivate final Queue<ClientConnection.PacketWrapper> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelActive(ChannelHandlerContext channelHandlerContext) voidchannelInactive(ChannelHandlerContext channelHandlerContext) protected voidchannelRead0(ChannelHandlerContext channelHandlerContext, Packet<?> packet) static ClientConnectionconnect(InetAddress address, int port, boolean shouldUseNativeTransport) static ClientConnectionconnectLocal(SocketAddress address) voidvoiddisconnect(Text disconnectReason) voidexceptionCaught(ChannelHandlerContext channelHandlerContext, Throwable throwable) voidbooleanbooleanbooleanisLocal()booleanisOpen()private static <T extends PacketListener>
voidmethod_20159(Packet<T> packet, PacketListener packetListener) voidmethod_20160(Packet<?> packet, GenericFutureListener<? extends Future<? super Void>> genericFutureListener) private voidmethod_20161(Packet<?> packet, GenericFutureListener<? extends Future<? super Void>> genericFutureListener) floatfloatvoidprivate voidvoidsetCompressionThreshold(int compressionThreshold) voidsetPacketListener(PacketListener listener) voidsetState(NetworkState state) voidsetupEncryption(SecretKey secretKey) voidtick()Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelReadMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official gLhw;g:Lorg/apache/logging/log4j/Logger;intermediary field_8426Lnet/minecraft/class_1957;field_8426:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/network/ClientConnection;LOGGER:Lorg/apache/logging/log4j/Logger;
-
MARKER_NETWORK
- Mappings:
Namespace Name Mixin selector official aLhw;a:Lorg/apache/logging/log4j/Marker;intermediary field_8418Lnet/minecraft/class_1957;field_8418:Lorg/apache/logging/log4j/Marker;named MARKER_NETWORKLnet/minecraft/network/ClientConnection;MARKER_NETWORK:Lorg/apache/logging/log4j/Marker;
-
MARKER_NETWORK_PACKETS
- Mappings:
Namespace Name Mixin selector official bLhw;b:Lorg/apache/logging/log4j/Marker;intermediary field_8419Lnet/minecraft/class_1957;field_8419:Lorg/apache/logging/log4j/Marker;named MARKER_NETWORK_PACKETSLnet/minecraft/network/ClientConnection;MARKER_NETWORK_PACKETS:Lorg/apache/logging/log4j/Marker;
-
ATTR_KEY_PROTOCOL
- Mappings:
Namespace Name Mixin selector official cLhw;c:Lio/netty/util/AttributeKey;intermediary field_8421Lnet/minecraft/class_1957;field_8421:Lio/netty/util/AttributeKey;named ATTR_KEY_PROTOCOLLnet/minecraft/network/ClientConnection;ATTR_KEY_PROTOCOL:Lio/netty/util/AttributeKey;
-
field_11553
- Mappings:
Namespace Name Mixin selector official dLhw;d:Lxn;intermediary field_11553Lnet/minecraft/class_1957;field_11553:Lnet/minecraft/class_2603;named field_11553Lnet/minecraft/network/ClientConnection;field_11553:Lnet/minecraft/util/Lazy;
-
field_11554
- Mappings:
Namespace Name Mixin selector official eLhw;e:Lxn;intermediary field_11554Lnet/minecraft/class_1957;field_11554:Lnet/minecraft/class_2603;named field_11554Lnet/minecraft/network/ClientConnection;field_11554:Lnet/minecraft/util/Lazy;
-
field_11555
- Mappings:
Namespace Name Mixin selector official fLhw;f:Lxn;intermediary field_11555Lnet/minecraft/class_1957;field_11555:Lnet/minecraft/class_2603;named field_11555Lnet/minecraft/network/ClientConnection;field_11555:Lnet/minecraft/util/Lazy;
-
field_11556
- Mappings:
Namespace Name Mixin selector official hLhw;h:Liw;intermediary field_11556Lnet/minecraft/class_1957;field_11556:Lnet/minecraft/class_2569;named field_11556Lnet/minecraft/network/ClientConnection;field_11556:Lnet/minecraft/network/NetworkSide;
-
packetQueue
- Mappings:
Namespace Name Mixin selector official iLhw;i:Ljava/util/Queue;intermediary field_8429Lnet/minecraft/class_1957;field_8429:Ljava/util/Queue;named packetQueueLnet/minecraft/network/ClientConnection;packetQueue:Ljava/util/Queue;
-
field_11557
- Mappings:
Namespace Name Mixin selector official jLhw;j:Ljava/util/concurrent/locks/ReentrantReadWriteLock;intermediary field_11557Lnet/minecraft/class_1957;field_11557:Ljava/util/concurrent/locks/ReentrantReadWriteLock;named field_11557Lnet/minecraft/network/ClientConnection;field_11557:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
-
channel
- Mappings:
Namespace Name Mixin selector official kLhw;k:Lio/netty/channel/Channel;intermediary field_8430Lnet/minecraft/class_1957;field_8430:Lio/netty/channel/Channel;named channelLnet/minecraft/network/ClientConnection;channel:Lio/netty/channel/Channel;
-
address
- Mappings:
Namespace Name Mixin selector official lLhw;l:Ljava/net/SocketAddress;intermediary field_8431Lnet/minecraft/class_1957;field_8431:Ljava/net/SocketAddress;named addressLnet/minecraft/network/ClientConnection;address:Ljava/net/SocketAddress;
-
field_8432
- Mappings:
Namespace Name Mixin selector official mLhw;m:Lib;intermediary field_8432Lnet/minecraft/class_1957;field_8432:Lnet/minecraft/class_701;named field_8432Lnet/minecraft/network/ClientConnection;field_8432:Lnet/minecraft/network/listener/PacketListener;
-
field_8434
- Mappings:
Namespace Name Mixin selector official nLhw;n:Lij;intermediary field_8434Lnet/minecraft/class_1957;field_8434:Lnet/minecraft/class_1982;named field_8434Lnet/minecraft/network/ClientConnection;field_8434:Lnet/minecraft/text/Text;
-
encrypted
private boolean encrypted- Mappings:
Namespace Name Mixin selector official oLhw;o:Zintermediary field_8435Lnet/minecraft/class_1957;field_8435:Znamed encryptedLnet/minecraft/network/ClientConnection;encrypted:Z
-
disconnected
private boolean disconnected- Mappings:
Namespace Name Mixin selector official pLhw;p:Zintermediary field_11558Lnet/minecraft/class_1957;field_11558:Znamed disconnectedLnet/minecraft/network/ClientConnection;disconnected:Z
-
field_21500
private int field_21500- Mappings:
Namespace Name Mixin selector official qLhw;q:Iintermediary field_21500Lnet/minecraft/class_1957;field_21500:Inamed field_21500Lnet/minecraft/network/ClientConnection;field_21500:I
-
field_21501
private int field_21501- Mappings:
Namespace Name Mixin selector official rLhw;r:Iintermediary field_21501Lnet/minecraft/class_1957;field_21501:Inamed field_21501Lnet/minecraft/network/ClientConnection;field_21501:I
-
field_21502
private float field_21502- Mappings:
Namespace Name Mixin selector official sLhw;s:Fintermediary field_21502Lnet/minecraft/class_1957;field_21502:Fnamed field_21502Lnet/minecraft/network/ClientConnection;field_21502:F
-
field_21503
private float field_21503- Mappings:
Namespace Name Mixin selector official tLhw;t:Fintermediary field_21503Lnet/minecraft/class_1957;field_21503:Fnamed field_21503Lnet/minecraft/network/ClientConnection;field_21503:F
-
field_21504
private int field_21504- Mappings:
Namespace Name Mixin selector official uLhw;u:Iintermediary field_21504Lnet/minecraft/class_1957;field_21504:Inamed field_21504Lnet/minecraft/network/ClientConnection;field_21504:I
-
field_21505
private boolean field_21505- Mappings:
Namespace Name Mixin selector official vLhw;v:Zintermediary field_21505Lnet/minecraft/class_1957;field_21505:Znamed field_21505Lnet/minecraft/network/ClientConnection;field_21505:Z
-
-
Constructor Details
-
ClientConnection
-
-
Method Details
-
channelActive
- Specified by:
channelActivein interfaceChannelInboundHandler- Overrides:
channelActivein classChannelInboundHandlerAdapter- Throws:
Exception- Mappings:
Namespace Name Mixin selector official channelActiveLhw;channelActive(Lio/netty/channel/ChannelHandlerContext;)Vintermediary channelActiveLnet/minecraft/class_1957;channelActive(Lio/netty/channel/ChannelHandlerContext;)Vnamed channelActiveLnet/minecraft/network/ClientConnection;channelActive(Lio/netty/channel/ChannelHandlerContext;)V
-
setState
- Mappings:
Namespace Name Mixin selector official aLhw;a(Lhx;)Vintermediary method_7392Lnet/minecraft/class_1957;method_7392(Lnet/minecraft/class_1962;)Vnamed setStateLnet/minecraft/network/ClientConnection;setState(Lnet/minecraft/network/NetworkState;)V
-
channelInactive
- Specified by:
channelInactivein interfaceChannelInboundHandler- Overrides:
channelInactivein classChannelInboundHandlerAdapter- Throws:
Exception- Mappings:
Namespace Name Mixin selector official channelInactiveLhw;channelInactive(Lio/netty/channel/ChannelHandlerContext;)Vintermediary channelInactiveLnet/minecraft/class_1957;channelInactive(Lio/netty/channel/ChannelHandlerContext;)Vnamed channelInactiveLnet/minecraft/network/ClientConnection;channelInactive(Lio/netty/channel/ChannelHandlerContext;)V
-
exceptionCaught
- Specified by:
exceptionCaughtin interfaceChannelHandler- Specified by:
exceptionCaughtin interfaceChannelInboundHandler- Overrides:
exceptionCaughtin classChannelInboundHandlerAdapter- Mappings:
Namespace Name Mixin selector official exceptionCaughtLhw;exceptionCaught(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Throwable;)Vintermediary exceptionCaughtLnet/minecraft/class_1957;exceptionCaught(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Throwable;)Vnamed exceptionCaughtLnet/minecraft/network/ClientConnection;exceptionCaught(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Throwable;)V
-
channelRead0
protected void channelRead0(ChannelHandlerContext channelHandlerContext, Packet<?> packet) throws Exception - Specified by:
channelRead0in classSimpleChannelInboundHandler<Packet<?>>- Throws:
Exception- Mappings:
Namespace Name Mixin selector official aLhw;a(Lio/netty/channel/ChannelHandlerContext;Liv;)Vintermediary method_7396Lnet/minecraft/class_1957;method_7396(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/class_700;)Vnamed channelRead0Lnet/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 aLhw;a(Liv;Lib;)Vintermediary method_20159Lnet/minecraft/class_1957;method_20159(Lnet/minecraft/class_700;Lnet/minecraft/class_701;)Vnamed method_20159Lnet/minecraft/network/ClientConnection;method_20159(Lnet/minecraft/network/Packet;Lnet/minecraft/network/listener/PacketListener;)V
-
setPacketListener
- Mappings:
Namespace Name Mixin selector official aLhw;a(Lib;)Vintermediary method_7393Lnet/minecraft/class_1957;method_7393(Lnet/minecraft/class_701;)Vnamed setPacketListenerLnet/minecraft/network/ClientConnection;setPacketListener(Lnet/minecraft/network/listener/PacketListener;)V
-
send
- Mappings:
Namespace Name Mixin selector official aLhw;a(Liv;)Vintermediary method_10588Lnet/minecraft/class_1957;method_10588(Lnet/minecraft/class_700;)Vnamed sendLnet/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 aLhw;a(Liv;Lio/netty/util/concurrent/GenericFutureListener;)Vintermediary method_20160Lnet/minecraft/class_1957;method_20160(Lnet/minecraft/class_700;Lio/netty/util/concurrent/GenericFutureListener;)Vnamed method_20160Lnet/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 bLhw;b(Liv;Lio/netty/util/concurrent/GenericFutureListener;)Vintermediary method_20161Lnet/minecraft/class_1957;method_20161(Lnet/minecraft/class_700;Lio/netty/util/concurrent/GenericFutureListener;)Vnamed method_20161Lnet/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 oLhw;o()Vintermediary method_7407Lnet/minecraft/class_1957;method_7407()Vnamed sendQueuedPacketsLnet/minecraft/network/ClientConnection;sendQueuedPackets()V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official aLhw;a()Vintermediary method_7390Lnet/minecraft/class_1957;method_7390()Vnamed tickLnet/minecraft/network/ClientConnection;tick()V
-
getAddress
- Mappings:
Namespace Name Mixin selector official bLhw;b()Ljava/net/SocketAddress;intermediary method_7400Lnet/minecraft/class_1957;method_7400()Ljava/net/SocketAddress;named getAddressLnet/minecraft/network/ClientConnection;getAddress()Ljava/net/SocketAddress;
-
disconnect
- Mappings:
Namespace Name Mixin selector official aLhw;a(Lij;)Vintermediary method_7394Lnet/minecraft/class_1957;method_7394(Lnet/minecraft/class_1982;)Vnamed disconnectLnet/minecraft/network/ClientConnection;disconnect(Lnet/minecraft/text/Text;)V
-
isLocal
public boolean isLocal()- Mappings:
Namespace Name Mixin selector official cLhw;c()Zintermediary method_7402Lnet/minecraft/class_1957;method_7402()Znamed isLocalLnet/minecraft/network/ClientConnection;isLocal()Z
-
connect
@Environment(CLIENT) public static ClientConnection connect(InetAddress address, int port, boolean shouldUseNativeTransport) - Mappings:
Namespace Name Mixin selector official aLhw;a(Ljava/net/InetAddress;IZ)Lhw;intermediary method_10590Lnet/minecraft/class_1957;method_10590(Ljava/net/InetAddress;IZ)Lnet/minecraft/class_1957;named connectLnet/minecraft/network/ClientConnection;connect(Ljava/net/InetAddress;IZ)Lnet/minecraft/network/ClientConnection;
-
connectLocal
- Mappings:
Namespace Name Mixin selector official aLhw;a(Ljava/net/SocketAddress;)Lhw;intermediary method_7398Lnet/minecraft/class_1957;method_7398(Ljava/net/SocketAddress;)Lnet/minecraft/class_1957;named connectLocalLnet/minecraft/network/ClientConnection;connectLocal(Ljava/net/SocketAddress;)Lnet/minecraft/network/ClientConnection;
-
setupEncryption
- Mappings:
Namespace Name Mixin selector official aLhw;a(Ljavax/crypto/SecretKey;)Vintermediary method_7399Lnet/minecraft/class_1957;method_7399(Ljavax/crypto/SecretKey;)Vnamed setupEncryptionLnet/minecraft/network/ClientConnection;setupEncryption(Ljavax/crypto/SecretKey;)V
-
isEncrypted
- Mappings:
Namespace Name Mixin selector official fLhw;f()Zintermediary method_10591Lnet/minecraft/class_1957;method_10591()Znamed isEncryptedLnet/minecraft/network/ClientConnection;isEncrypted()Z
-
isOpen
public boolean isOpen()- Mappings:
Namespace Name Mixin selector official gLhw;g()Zintermediary method_7403Lnet/minecraft/class_1957;method_7403()Znamed isOpenLnet/minecraft/network/ClientConnection;isOpen()Z
-
hasChannel
public boolean hasChannel()- Mappings:
Namespace Name Mixin selector official hLhw;h()Zintermediary method_10592Lnet/minecraft/class_1957;method_10592()Znamed hasChannelLnet/minecraft/network/ClientConnection;hasChannel()Z
-
getPacketListener
- Mappings:
Namespace Name Mixin selector official iLhw;i()Lib;intermediary method_7404Lnet/minecraft/class_1957;method_7404()Lnet/minecraft/class_701;named getPacketListenerLnet/minecraft/network/ClientConnection;getPacketListener()Lnet/minecraft/network/listener/PacketListener;
-
getDisconnectReason
- Mappings:
Namespace Name Mixin selector official jLhw;j()Lij;intermediary method_7405Lnet/minecraft/class_1957;method_7405()Lnet/minecraft/class_1982;named getDisconnectReasonLnet/minecraft/network/ClientConnection;getDisconnectReason()Lnet/minecraft/text/Text;
-
disableAutoRead
public void disableAutoRead()- Mappings:
Namespace Name Mixin selector official kLhw;k()Vintermediary method_7406Lnet/minecraft/class_1957;method_7406()Vnamed disableAutoReadLnet/minecraft/network/ClientConnection;disableAutoRead()V
-
setCompressionThreshold
public void setCompressionThreshold(int compressionThreshold) - Mappings:
Namespace Name Mixin selector official aLhw;a(I)Vintermediary method_10587Lnet/minecraft/class_1957;method_10587(I)Vnamed setCompressionThresholdLnet/minecraft/network/ClientConnection;setCompressionThreshold(I)V
-
handleDisconnection
public void handleDisconnection()- Mappings:
Namespace Name Mixin selector official lLhw;l()Vintermediary method_10593Lnet/minecraft/class_1957;method_10593()Vnamed handleDisconnectionLnet/minecraft/network/ClientConnection;handleDisconnection()V
-
method_20162
- Mappings:
Namespace Name Mixin selector official mLhw;m()Fintermediary method_20162Lnet/minecraft/class_1957;method_20162()Fnamed method_20162Lnet/minecraft/network/ClientConnection;method_20162()F
-
method_20163
- Mappings:
Namespace Name Mixin selector official nLhw;n()Fintermediary method_20163Lnet/minecraft/class_1957;method_20163()Fnamed method_20163Lnet/minecraft/network/ClientConnection;method_20163()F
-