Package net.minecraft.network
Class ClientConnection
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler
net.minecraft.network.ClientConnection
- All Implemented Interfaces:
ChannelHandler,ChannelInboundHandler
- Mappings:
Namespace Name official grintermediary net/minecraft/class_1957named net/minecraft/network/ClientConnection
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SocketAddressstatic final AttributeKeyprivate Channelprivate booleanprivate booleanstatic final Lazystatic final Lazyprivate final NetworkSideprivate PacketListenerprivate Textprivate static final Loggerstatic final Markerstatic final Markerprivate final Queue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelActive(ChannelHandlerContext channelHandlerContext) voidchannelInactive(ChannelHandlerContext channelHandlerContext) protected voidchannelRead0(ChannelHandlerContext channelHandlerContext, Packet packet) static ClientConnectionconnectLocal(SocketAddress address) voidvoiddisconnect(Text disconnectReason) voidexceptionCaught(ChannelHandlerContext channelHandlerContext, Throwable throwable) voidbooleanbooleanbooleanisLocal()booleanisOpen()static ClientConnectionmethod_10590(InetAddress inetAddress, int int2) private voidmethod_7401(Packet packet, GenericFutureListener[] genericFutureListener) voidvoidsend(Packet packet, GenericFutureListener genericFutureListener, GenericFutureListener[] genericFutureListener2) private voidvoidsetCompressionThreshold(int compressionThreshold) voidsetPacketListener(PacketListener listener) voidsetState(NetworkState state) voidsetupEncryption(SecretKey secretKey) voidtick()Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead, channelRead0Methods 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 fLgr;f: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 aLgr;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 bLgr;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 cLgr;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 dLgr;d:Lup;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_11555
- Mappings:
Namespace Name Mixin selector official eLgr;e:Lup;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 gLgr;g:Lie;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 hLgr;h:Ljava/util/Queue;intermediary field_8429Lnet/minecraft/class_1957;field_8429:Ljava/util/Queue;named packetQueueLnet/minecraft/network/ClientConnection;packetQueue:Ljava/util/Queue;
-
channel
- Mappings:
Namespace Name Mixin selector official iLgr;i: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 jLgr;j: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 kLgr;k:Lhg;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 lLgr;l:Lho;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 mLgr;m: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 nLgr;n:Zintermediary field_11558Lnet/minecraft/class_1957;field_11558:Znamed disconnectedLnet/minecraft/network/ClientConnection;disconnected:Z
-
-
Constructor Details
-
ClientConnection
-
-
Method Details
-
channelActive
- Specified by:
channelActivein interfaceChannelInboundHandler- Overrides:
channelActivein classChannelInboundHandlerAdapter- Mappings:
Namespace Name Mixin selector official channelActiveLgr;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 aLgr;a(Lgy;)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- Mappings:
Namespace Name Mixin selector official channelInactiveLgr;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 exceptionCaughtLgr;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
- Mappings:
Namespace Name Mixin selector official aLgr;a(Lio/netty/channel/ChannelHandlerContext;Lid;)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
-
setPacketListener
- Mappings:
Namespace Name Mixin selector official aLgr;a(Lhg;)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 aLgr;a(Lid;)Vintermediary method_10588Lnet/minecraft/class_1957;method_10588(Lnet/minecraft/class_700;)Vnamed sendLnet/minecraft/network/ClientConnection;send(Lnet/minecraft/network/Packet;)V
-
send
public void send(Packet packet, GenericFutureListener genericFutureListener, GenericFutureListener[] genericFutureListener2) - Mappings:
Namespace Name Mixin selector official aLgr;a(Lid;Lio/netty/util/concurrent/GenericFutureListener;[Lio/netty/util/concurrent/GenericFutureListener;)Vintermediary method_10589Lnet/minecraft/class_1957;method_10589(Lnet/minecraft/class_700;Lio/netty/util/concurrent/GenericFutureListener;[Lio/netty/util/concurrent/GenericFutureListener;)Vnamed sendLnet/minecraft/network/ClientConnection;send(Lnet/minecraft/network/Packet;Lio/netty/util/concurrent/GenericFutureListener;[Lio/netty/util/concurrent/GenericFutureListener;)V
-
method_7401
- Mappings:
Namespace Name Mixin selector official aLgr;a(Lid;[Lio/netty/util/concurrent/GenericFutureListener;)Vintermediary method_7401Lnet/minecraft/class_1957;method_7401(Lnet/minecraft/class_700;[Lio/netty/util/concurrent/GenericFutureListener;)Vnamed method_7401Lnet/minecraft/network/ClientConnection;method_7401(Lnet/minecraft/network/Packet;[Lio/netty/util/concurrent/GenericFutureListener;)V
-
sendQueuedPackets
private void sendQueuedPackets()- Mappings:
Namespace Name Mixin selector official mLgr;m()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 aLgr;a()Vintermediary method_7390Lnet/minecraft/class_1957;method_7390()Vnamed tickLnet/minecraft/network/ClientConnection;tick()V
-
getAddress
- Mappings:
Namespace Name Mixin selector official bLgr;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 aLgr;a(Lho;)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 cLgr;c()Zintermediary method_7402Lnet/minecraft/class_1957;method_7402()Znamed isLocalLnet/minecraft/network/ClientConnection;isLocal()Z
-
method_10590
- Mappings:
Namespace Name Mixin selector official aLgr;a(Ljava/net/InetAddress;I)Lgr;intermediary method_10590Lnet/minecraft/class_1957;method_10590(Ljava/net/InetAddress;I)Lnet/minecraft/class_1957;named method_10590Lnet/minecraft/network/ClientConnection;method_10590(Ljava/net/InetAddress;I)Lnet/minecraft/network/ClientConnection;
-
connectLocal
- Mappings:
Namespace Name Mixin selector official aLgr;a(Ljava/net/SocketAddress;)Lgr;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 aLgr;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 fLgr;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 gLgr;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 hLgr;h()Zintermediary method_10592Lnet/minecraft/class_1957;method_10592()Znamed hasChannelLnet/minecraft/network/ClientConnection;hasChannel()Z
-
getPacketListener
- Mappings:
Namespace Name Mixin selector official iLgr;i()Lhg;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 jLgr;j()Lho;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 kLgr;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 aLgr;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 lLgr;l()Vintermediary method_10593Lnet/minecraft/class_1957;method_10593()Vnamed handleDisconnectionLnet/minecraft/network/ClientConnection;handleDisconnection()V
-