Package net.minecraft.network
Class ClientConnection
java.lang.Object
- All Implemented Interfaces:
ChannelHandler
,ChannelInboundHandler
- Direct Known Subclasses:
RateLimitedConnection
A connection backed by a netty channel. It can be one to a client on the
server or one to a server on a client.
- Mappings:
Namespace Name named net/minecraft/network/ClientConnection
intermediary net/minecraft/class_2535
official wk
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
Field Summary
Modifier and TypeFieldDescriptionprivate SocketAddress
private float
private float
private static final NetworkState
<ServerHandshakePacketListener> private Channel
static final Supplier
<NioEventLoopGroup> private static final float
Represents when the average packet counter is updated, what percent of the value of the average counter is set from the current counter.private boolean
private boolean
private boolean
static final Supplier
<EpollEventLoopGroup> private boolean
static final Supplier
<DefaultEventLoopGroup> private static final Logger
static final Marker
static final Marker
static final Marker
static final Marker
private @Nullable PacketListener
(package private) @Nullable PacketSizeLogger
private int
private int
private @Nullable PacketListener
private final Queue
<Consumer<ClientConnection>> private final NetworkSide
The side this connection is to.private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFlowControlHandler
(ChannelPipeline pipeline) static void
addHandlers
(ChannelPipeline pipeline, NetworkSide side, boolean local, @Nullable PacketSizeLogger packetSizeLogger) static void
addLocalValidator
(ChannelPipeline pipeline, NetworkSide side) void
channelActive
(ChannelHandlerContext context) void
channelInactive
(ChannelHandlerContext context) protected void
channelRead0
(ChannelHandlerContext channelHandlerContext, Packet<?> packet) void
connect
(String address, int port, ClientLoginPacketListener listener) void
connect
(String address, int port, ClientQueryPacketListener listener) <S extends ServerPacketListener,
C extends ClientPacketListener>
voidconnect
(String address, int port, NetworkState<S> outboundState, NetworkState<C> inboundState, C prePlayStateListener, boolean transfer) private <S extends ServerPacketListener,
C extends ClientPacketListener>
voidconnect
(String address, int port, NetworkState<S> outboundState, NetworkState<C> inboundState, C prePlayStateListener, ConnectionIntent intent) static ChannelFuture
connect
(InetSocketAddress address, boolean useEpoll, ClientConnection connection) static ClientConnection
connect
(InetSocketAddress address, boolean useEpoll, @Nullable MultiValueDebugSampleLogImpl packetSizeLog) static ClientConnection
connectLocal
(SocketAddress address) void
disconnect
(Text disconnectReason) void
exceptionCaught
(ChannelHandlerContext context, Throwable ex) void
flush()
private void
getAddressAsString
(boolean logIps) float
float
private static String
getInboundHandlerName
(boolean receivingSide) Returns the opposite side of this connection, or the direction of the packets sent by this connection.private static String
getOutboundHandlerName
(boolean sendingSide) private static ChannelOutboundHandler
getPrepender
(boolean local) getSide()
Returns the side of this connection, or the direction of the packets received by this connection.private static ChannelInboundHandler
getSplitter
(@Nullable PacketSizeLogger packetSizeLogger, boolean local) void
private static <T extends PacketListener>
voidhandlePacket
(Packet<T> packet, PacketListener listener) private void
boolean
boolean
boolean
isLocal()
boolean
isOpen()
void
void
void
send
(Packet<?> packet, @Nullable PacketCallbacks callbacks) void
send
(Packet<?> packet, @Nullable PacketCallbacks callbacks, boolean flush) private void
sendImmediately
(Packet<?> packet, @Nullable PacketCallbacks callbacks, boolean flush) private void
sendInternal
(Packet<?> packet, @Nullable PacketCallbacks callbacks, boolean flush) void
setCompressionThreshold
(int compressionThreshold, boolean rejectsBadPackets) Sets the compression threshold of this connection.void
setInitialPacketListener
(PacketListener packetListener) Sets the initial packet listener.private void
setPacketListener
(NetworkState<?> state, PacketListener listener) void
setupEncryption
(Cipher decryptionCipher, Cipher encryptionCipher) void
submit
(Consumer<ClientConnection> task) private static void
syncUninterruptibly
(ChannelFuture future) void
tick()
<T extends PacketListener>
voidtransitionInbound
(NetworkState<T> state, T packetListener) void
transitionOutbound
(NetworkState<?> newState) void
protected void
Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Field Details
-
CURRENT_PACKET_COUNTER_WEIGHT
private static final float CURRENT_PACKET_COUNTER_WEIGHTRepresents when the average packet counter is updated, what percent of the value of the average counter is set from the current counter.The formula is
averagePacketsSent
= 0.75f ×packetsSentCounter
+ (1 - 0.75f) ×averagePacketsSent
.- See Also:
- Mappings:
Namespace Name Mixin selector named CURRENT_PACKET_COUNTER_WEIGHT
Lnet/minecraft/network/ClientConnection;CURRENT_PACKET_COUNTER_WEIGHT:F
intermediary field_33280
Lnet/minecraft/class_2535;field_33280:F
official h
Lwk;h:F
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/network/ClientConnection;LOGGER:Lorg/slf4j/Logger;
intermediary field_11642
Lnet/minecraft/class_2535;field_11642:Lorg/slf4j/Logger;
official i
Lwk;i:Lorg/slf4j/Logger;
-
NETWORK_MARKER
- Mappings:
Namespace Name Mixin selector named NETWORK_MARKER
Lnet/minecraft/network/ClientConnection;NETWORK_MARKER:Lorg/slf4j/Marker;
intermediary field_11641
Lnet/minecraft/class_2535;field_11641:Lorg/slf4j/Marker;
official a
Lwk;a:Lorg/slf4j/Marker;
-
NETWORK_PACKETS_MARKER
- Mappings:
Namespace Name Mixin selector named NETWORK_PACKETS_MARKER
Lnet/minecraft/network/ClientConnection;NETWORK_PACKETS_MARKER:Lorg/slf4j/Marker;
intermediary field_11639
Lnet/minecraft/class_2535;field_11639:Lorg/slf4j/Marker;
official b
Lwk;b:Lorg/slf4j/Marker;
-
PACKET_RECEIVED_MARKER
- Mappings:
Namespace Name Mixin selector named PACKET_RECEIVED_MARKER
Lnet/minecraft/network/ClientConnection;PACKET_RECEIVED_MARKER:Lorg/slf4j/Marker;
intermediary field_36379
Lnet/minecraft/class_2535;field_36379:Lorg/slf4j/Marker;
official c
Lwk;c:Lorg/slf4j/Marker;
-
PACKET_SENT_MARKER
- Mappings:
Namespace Name Mixin selector named PACKET_SENT_MARKER
Lnet/minecraft/network/ClientConnection;PACKET_SENT_MARKER:Lorg/slf4j/Marker;
intermediary field_36380
Lnet/minecraft/class_2535;field_36380:Lorg/slf4j/Marker;
official d
Lwk;d:Lorg/slf4j/Marker;
-
CLIENT_IO_GROUP
- Mappings:
Namespace Name Mixin selector named CLIENT_IO_GROUP
Lnet/minecraft/network/ClientConnection;CLIENT_IO_GROUP:Ljava/util/function/Supplier;
intermediary field_11650
Lnet/minecraft/class_2535;field_11650:Ljava/util/function/Supplier;
official e
Lwk;e:Ljava/util/function/Supplier;
-
EPOLL_CLIENT_IO_GROUP
- Mappings:
Namespace Name Mixin selector named EPOLL_CLIENT_IO_GROUP
Lnet/minecraft/network/ClientConnection;EPOLL_CLIENT_IO_GROUP:Ljava/util/function/Supplier;
intermediary field_11657
Lnet/minecraft/class_2535;field_11657:Ljava/util/function/Supplier;
official f
Lwk;f:Ljava/util/function/Supplier;
-
LOCAL_CLIENT_IO_GROUP
- Mappings:
Namespace Name Mixin selector named LOCAL_CLIENT_IO_GROUP
Lnet/minecraft/network/ClientConnection;LOCAL_CLIENT_IO_GROUP:Ljava/util/function/Supplier;
intermediary field_11649
Lnet/minecraft/class_2535;field_11649:Ljava/util/function/Supplier;
official g
Lwk;g:Ljava/util/function/Supplier;
-
C2S_HANDSHAKE_STATE
- Mappings:
Namespace Name Mixin selector named C2S_HANDSHAKE_STATE
Lnet/minecraft/network/ClientConnection;C2S_HANDSHAKE_STATE:Lnet/minecraft/network/NetworkState;
intermediary field_48514
Lnet/minecraft/class_2535;field_48514:Lnet/minecraft/class_9127;
official j
Lwk;j:Lwx;
-
side
The side this connection is to.- Mappings:
Namespace Name Mixin selector named side
Lnet/minecraft/network/ClientConnection;side:Lnet/minecraft/network/NetworkSide;
intermediary field_11643
Lnet/minecraft/class_2535;field_11643:Lnet/minecraft/class_2598;
official k
Lwk;k:Lzx;
-
duringLogin
private volatile boolean duringLogin- Mappings:
Namespace Name Mixin selector named duringLogin
Lnet/minecraft/network/ClientConnection;duringLogin:Z
intermediary field_48515
Lnet/minecraft/class_2535;field_48515:Z
official l
Lwk;l:Z
-
queuedTasks
- Mappings:
Namespace Name Mixin selector named queuedTasks
Lnet/minecraft/network/ClientConnection;queuedTasks:Ljava/util/Queue;
intermediary field_45668
Lnet/minecraft/class_2535;field_45668:Ljava/util/Queue;
official m
Lwk;m:Ljava/util/Queue;
-
channel
- Mappings:
Namespace Name Mixin selector named channel
Lnet/minecraft/network/ClientConnection;channel:Lio/netty/channel/Channel;
intermediary field_11651
Lnet/minecraft/class_2535;field_11651:Lio/netty/channel/Channel;
official n
Lwk;n:Lio/netty/channel/Channel;
-
address
- Mappings:
Namespace Name Mixin selector named address
Lnet/minecraft/network/ClientConnection;address:Ljava/net/SocketAddress;
intermediary field_11645
Lnet/minecraft/class_2535;field_11645:Ljava/net/SocketAddress;
official o
Lwk;o:Ljava/net/SocketAddress;
-
prePlayStateListener
- Mappings:
Namespace Name Mixin selector named prePlayStateListener
Lnet/minecraft/network/ClientConnection;prePlayStateListener:Lnet/minecraft/network/listener/PacketListener;
intermediary field_45669
Lnet/minecraft/class_2535;field_45669:Lnet/minecraft/class_2547;
official p
Lwk;p:Lwv;
-
packetListener
- Mappings:
Namespace Name Mixin selector named packetListener
Lnet/minecraft/network/ClientConnection;packetListener:Lnet/minecraft/network/listener/PacketListener;
intermediary field_11652
Lnet/minecraft/class_2535;field_11652:Lnet/minecraft/class_2547;
official q
Lwk;q:Lwv;
-
disconnectReason
- Mappings:
Namespace Name Mixin selector named disconnectReason
Lnet/minecraft/network/ClientConnection;disconnectReason:Lnet/minecraft/text/Text;
intermediary field_11660
Lnet/minecraft/class_2535;field_11660:Lnet/minecraft/class_2561;
official r
Lwk;r:Lxp;
-
encrypted
private boolean encrypted- Mappings:
Namespace Name Mixin selector named encrypted
Lnet/minecraft/network/ClientConnection;encrypted:Z
intermediary field_11647
Lnet/minecraft/class_2535;field_11647:Z
official s
Lwk;s:Z
-
disconnected
private boolean disconnected- Mappings:
Namespace Name Mixin selector named disconnected
Lnet/minecraft/network/ClientConnection;disconnected:Z
intermediary field_11646
Lnet/minecraft/class_2535;field_11646:Z
official t
Lwk;t:Z
-
packetsReceivedCounter
private int packetsReceivedCounter- Mappings:
Namespace Name Mixin selector named packetsReceivedCounter
Lnet/minecraft/network/ClientConnection;packetsReceivedCounter:I
intermediary field_11658
Lnet/minecraft/class_2535;field_11658:I
official u
Lwk;u:I
-
packetsSentCounter
private int packetsSentCounter- Mappings:
Namespace Name Mixin selector named packetsSentCounter
Lnet/minecraft/network/ClientConnection;packetsSentCounter:I
intermediary field_11656
Lnet/minecraft/class_2535;field_11656:I
official v
Lwk;v:I
-
averagePacketsReceived
private float averagePacketsReceived- Mappings:
Namespace Name Mixin selector named averagePacketsReceived
Lnet/minecraft/network/ClientConnection;averagePacketsReceived:F
intermediary field_11654
Lnet/minecraft/class_2535;field_11654:F
official w
Lwk;w:F
-
averagePacketsSent
private float averagePacketsSent- Mappings:
Namespace Name Mixin selector named averagePacketsSent
Lnet/minecraft/network/ClientConnection;averagePacketsSent:F
intermediary field_11653
Lnet/minecraft/class_2535;field_11653:F
official x
Lwk;x:F
-
ticks
private int ticks- Mappings:
Namespace Name Mixin selector named ticks
Lnet/minecraft/network/ClientConnection;ticks:I
intermediary field_11655
Lnet/minecraft/class_2535;field_11655:I
official y
Lwk;y:I
-
errored
private boolean errored- Mappings:
Namespace Name Mixin selector named errored
Lnet/minecraft/network/ClientConnection;errored:Z
intermediary field_11640
Lnet/minecraft/class_2535;field_11640:Z
official z
Lwk;z:Z
-
pendingDisconnectionReason
- Mappings:
Namespace Name Mixin selector named pendingDisconnectionReason
Lnet/minecraft/network/ClientConnection;pendingDisconnectionReason:Lnet/minecraft/text/Text;
intermediary field_44972
Lnet/minecraft/class_2535;field_44972:Lnet/minecraft/class_2561;
official A
Lwk;A:Lxp;
-
packetSizeLogger
- Mappings:
Namespace Name Mixin selector named packetSizeLogger
Lnet/minecraft/network/ClientConnection;packetSizeLogger:Lnet/minecraft/network/handler/PacketSizeLogger;
intermediary field_45955
Lnet/minecraft/class_2535;field_45955:Lnet/minecraft/class_8762;
official B
Lwk;B:Lwd;
-
-
Constructor Details
-
ClientConnection
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/network/ClientConnection;<init>(Lnet/minecraft/network/NetworkSide;)V
intermediary <init>
Lnet/minecraft/class_2535;<init>(Lnet/minecraft/class_2598;)V
official <init>
Lwk;<init>(Lzx;)V
-
-
Method Details
-
channelActive
- Specified by:
channelActive
in interfaceChannelInboundHandler
- Overrides:
channelActive
in classChannelInboundHandlerAdapter
- Throws:
Exception
- Mappings:
Namespace Name Mixin selector named channelActive
Lnet/minecraft/network/ClientConnection;channelActive(Lio/netty/channel/ChannelHandlerContext;)V
intermediary channelActive
Lnet/minecraft/class_2535;channelActive(Lio/netty/channel/ChannelHandlerContext;)V
official channelActive
Lwk;channelActive(Lio/netty/channel/ChannelHandlerContext;)V
-
channelInactive
- Specified by:
channelInactive
in interfaceChannelInboundHandler
- Overrides:
channelInactive
in classChannelInboundHandlerAdapter
- Mappings:
Namespace Name Mixin selector named channelInactive
Lnet/minecraft/network/ClientConnection;channelInactive(Lio/netty/channel/ChannelHandlerContext;)V
intermediary channelInactive
Lnet/minecraft/class_2535;channelInactive(Lio/netty/channel/ChannelHandlerContext;)V
official channelInactive
Lwk;channelInactive(Lio/netty/channel/ChannelHandlerContext;)V
-
exceptionCaught
- Specified by:
exceptionCaught
in interfaceChannelHandler
- Specified by:
exceptionCaught
in interfaceChannelInboundHandler
- Overrides:
exceptionCaught
in classChannelInboundHandlerAdapter
- Mappings:
Namespace Name Mixin selector named exceptionCaught
Lnet/minecraft/network/ClientConnection;exceptionCaught(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Throwable;)V
intermediary exceptionCaught
Lnet/minecraft/class_2535;exceptionCaught(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Throwable;)V
official exceptionCaught
Lwk;exceptionCaught(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Throwable;)V
-
channelRead0
- Specified by:
channelRead0
in classSimpleChannelInboundHandler<Packet<?>>
- Mappings:
Namespace Name Mixin selector named channelRead0
Lnet/minecraft/network/ClientConnection;channelRead0(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/network/packet/Packet;)V
intermediary method_10770
Lnet/minecraft/class_2535;method_10770(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/class_2596;)V
official a
Lwk;a(Lio/netty/channel/ChannelHandlerContext;Lzw;)V
-
handlePacket
private static <T extends PacketListener> void handlePacket(Packet<T> packet, PacketListener listener) - Mappings:
Namespace Name Mixin selector named handlePacket
Lnet/minecraft/network/ClientConnection;handlePacket(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/network/listener/PacketListener;)V
intermediary method_10759
Lnet/minecraft/class_2535;method_10759(Lnet/minecraft/class_2596;Lnet/minecraft/class_2547;)V
official a
Lwk;a(Lzw;Lwv;)V
-
setPacketListener
- Mappings:
Namespace Name Mixin selector named setPacketListener
Lnet/minecraft/network/ClientConnection;setPacketListener(Lnet/minecraft/network/NetworkState;Lnet/minecraft/network/listener/PacketListener;)V
intermediary method_56332
Lnet/minecraft/class_2535;method_56332(Lnet/minecraft/class_9127;Lnet/minecraft/class_2547;)V
official b
Lwk;b(Lwx;Lwv;)V
-
syncUninterruptibly
- Mappings:
Namespace Name Mixin selector named syncUninterruptibly
Lnet/minecraft/network/ClientConnection;syncUninterruptibly(Lio/netty/channel/ChannelFuture;)V
intermediary method_59851
Lnet/minecraft/class_2535;method_59851(Lio/netty/channel/ChannelFuture;)V
official a
Lwk;a(Lio/netty/channel/ChannelFuture;)V
-
transitionInbound
- Mappings:
Namespace Name Mixin selector named transitionInbound
Lnet/minecraft/network/ClientConnection;transitionInbound(Lnet/minecraft/network/NetworkState;Lnet/minecraft/network/listener/PacketListener;)V
intermediary method_56330
Lnet/minecraft/class_2535;method_56330(Lnet/minecraft/class_9127;Lnet/minecraft/class_2547;)V
official a
Lwk;a(Lwx;Lwv;)V
-
transitionOutbound
- Mappings:
Namespace Name Mixin selector named transitionOutbound
Lnet/minecraft/network/ClientConnection;transitionOutbound(Lnet/minecraft/network/NetworkState;)V
intermediary method_56329
Lnet/minecraft/class_2535;method_56329(Lnet/minecraft/class_9127;)V
official a
Lwk;a(Lwx;)V
-
setInitialPacketListener
Sets the initial packet listener.- Throws:
IllegalStateException
- if the listener was already set- See Also:
- Mappings:
Namespace Name Mixin selector named setInitialPacketListener
Lnet/minecraft/network/ClientConnection;setInitialPacketListener(Lnet/minecraft/network/listener/PacketListener;)V
intermediary method_52912
Lnet/minecraft/class_2535;method_52912(Lnet/minecraft/class_2547;)V
official a
Lwk;a(Lwv;)V
-
connect
- Mappings:
Namespace Name Mixin selector named connect
Lnet/minecraft/network/ClientConnection;connect(Ljava/lang/String;ILnet/minecraft/network/listener/ClientQueryPacketListener;)V
intermediary method_52903
Lnet/minecraft/class_2535;method_52903(Ljava/lang/String;ILnet/minecraft/class_2921;)V
official a
Lwk;a(Ljava/lang/String;ILakc;)V
-
connect
- Mappings:
Namespace Name Mixin selector named connect
Lnet/minecraft/network/ClientConnection;connect(Ljava/lang/String;ILnet/minecraft/network/listener/ClientLoginPacketListener;)V
intermediary method_52902
Lnet/minecraft/class_2535;method_52902(Ljava/lang/String;ILnet/minecraft/class_2896;)V
official a
Lwk;a(Ljava/lang/String;ILajc;)V
-
connect
public <S extends ServerPacketListener,C extends ClientPacketListener> void connect(String address, int port, NetworkState<S> outboundState, NetworkState<C> inboundState, C prePlayStateListener, boolean transfer) - Mappings:
Namespace Name Mixin selector named connect
Lnet/minecraft/network/ClientConnection;connect(Ljava/lang/String;ILnet/minecraft/network/NetworkState;Lnet/minecraft/network/NetworkState;Lnet/minecraft/network/listener/ClientPacketListener;Z)V
intermediary method_56326
Lnet/minecraft/class_2535;method_56326(Ljava/lang/String;ILnet/minecraft/class_9127;Lnet/minecraft/class_9127;Lnet/minecraft/class_8697;Z)V
official a
Lwk;a(Ljava/lang/String;ILwx;Lwx;Lwh;Z)V
-
connect
private <S extends ServerPacketListener,C extends ClientPacketListener> void connect(String address, int port, NetworkState<S> outboundState, NetworkState<C> inboundState, C prePlayStateListener, ConnectionIntent intent) - Mappings:
Namespace Name Mixin selector named connect
Lnet/minecraft/network/ClientConnection;connect(Ljava/lang/String;ILnet/minecraft/network/NetworkState;Lnet/minecraft/network/NetworkState;Lnet/minecraft/network/listener/ClientPacketListener;Lnet/minecraft/network/packet/c2s/handshake/ConnectionIntent;)V
intermediary method_52904
Lnet/minecraft/class_2535;method_52904(Ljava/lang/String;ILnet/minecraft/class_9127;Lnet/minecraft/class_9127;Lnet/minecraft/class_8697;Lnet/minecraft/class_8592;)V
official a
Lwk;a(Ljava/lang/String;ILwx;Lwx;Lwh;Laiw;)V
-
send
- Mappings:
Namespace Name Mixin selector named send
Lnet/minecraft/network/ClientConnection;send(Lnet/minecraft/network/packet/Packet;)V
intermediary method_10743
Lnet/minecraft/class_2535;method_10743(Lnet/minecraft/class_2596;)V
official a
Lwk;a(Lzw;)V
-
send
- Mappings:
Namespace Name Mixin selector named send
Lnet/minecraft/network/ClientConnection;send(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/network/PacketCallbacks;)V
intermediary method_10752
Lnet/minecraft/class_2535;method_10752(Lnet/minecraft/class_2596;Lnet/minecraft/class_7648;)V
official a
Lwk;a(Lzw;Lww;)V
-
send
- Mappings:
Namespace Name Mixin selector named send
Lnet/minecraft/network/ClientConnection;send(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/network/PacketCallbacks;Z)V
intermediary method_52906
Lnet/minecraft/class_2535;method_52906(Lnet/minecraft/class_2596;Lnet/minecraft/class_7648;Z)V
official a
Lwk;a(Lzw;Lww;Z)V
-
submit
- Mappings:
Namespace Name Mixin selector named submit
Lnet/minecraft/network/ClientConnection;submit(Ljava/util/function/Consumer;)V
intermediary method_52905
Lnet/minecraft/class_2535;method_52905(Ljava/util/function/Consumer;)V
official a
Lwk;a(Ljava/util/function/Consumer;)V
-
sendImmediately
private void sendImmediately(Packet<?> packet, @Nullable @Nullable PacketCallbacks callbacks, boolean flush) - Mappings:
Namespace Name Mixin selector named sendImmediately
Lnet/minecraft/network/ClientConnection;sendImmediately(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/network/PacketCallbacks;Z)V
intermediary method_10764
Lnet/minecraft/class_2535;method_10764(Lnet/minecraft/class_2596;Lnet/minecraft/class_7648;Z)V
official b
Lwk;b(Lzw;Lww;Z)V
-
sendInternal
private void sendInternal(Packet<?> packet, @Nullable @Nullable PacketCallbacks callbacks, boolean flush) - Mappings:
Namespace Name Mixin selector named sendInternal
Lnet/minecraft/network/ClientConnection;sendInternal(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/network/PacketCallbacks;Z)V
intermediary method_36942
Lnet/minecraft/class_2535;method_36942(Lnet/minecraft/class_2596;Lnet/minecraft/class_7648;Z)V
official c
Lwk;c(Lzw;Lww;Z)V
-
flush
public void flush()- Mappings:
Namespace Name Mixin selector named flush
Lnet/minecraft/network/ClientConnection;flush()V
intermediary method_52915
Lnet/minecraft/class_2535;method_52915()V
official a
Lwk;a()V
-
flushInternal
private void flushInternal()- Mappings:
Namespace Name Mixin selector named flushInternal
Lnet/minecraft/network/ClientConnection;flushInternal()V
intermediary method_52918
Lnet/minecraft/class_2535;method_52918()V
official q
Lwk;q()V
-
handleQueuedTasks
private void handleQueuedTasks()- Mappings:
Namespace Name Mixin selector named handleQueuedTasks
Lnet/minecraft/network/ClientConnection;handleQueuedTasks()V
intermediary method_10751
Lnet/minecraft/class_2535;method_10751()V
official r
Lwk;r()V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/network/ClientConnection;tick()V
intermediary method_10754
Lnet/minecraft/class_2535;method_10754()V
official b
Lwk;b()V
-
updateStats
protected void updateStats()- Mappings:
Namespace Name Mixin selector named updateStats
Lnet/minecraft/network/ClientConnection;updateStats()V
intermediary method_30615
Lnet/minecraft/class_2535;method_30615()V
official c
Lwk;c()V
-
getAddress
- Mappings:
Namespace Name Mixin selector named getAddress
Lnet/minecraft/network/ClientConnection;getAddress()Ljava/net/SocketAddress;
intermediary method_10755
Lnet/minecraft/class_2535;method_10755()Ljava/net/SocketAddress;
official d
Lwk;d()Ljava/net/SocketAddress;
-
getAddressAsString
- Mappings:
Namespace Name Mixin selector named getAddressAsString
Lnet/minecraft/network/ClientConnection;getAddressAsString(Z)Ljava/lang/String;
intermediary method_52909
Lnet/minecraft/class_2535;method_52909(Z)Ljava/lang/String;
official a
Lwk;a(Z)Ljava/lang/String;
-
disconnect
- Mappings:
Namespace Name Mixin selector named disconnect
Lnet/minecraft/network/ClientConnection;disconnect(Lnet/minecraft/text/Text;)V
intermediary method_10747
Lnet/minecraft/class_2535;method_10747(Lnet/minecraft/class_2561;)V
official a
Lwk;a(Lxp;)V
-
isLocal
public boolean isLocal()- Mappings:
Namespace Name Mixin selector named isLocal
Lnet/minecraft/network/ClientConnection;isLocal()Z
intermediary method_10756
Lnet/minecraft/class_2535;method_10756()Z
official e
Lwk;e()Z
-
getSide
Returns the side of this connection, or the direction of the packets received by this connection.- Mappings:
Namespace Name Mixin selector named getSide
Lnet/minecraft/network/ClientConnection;getSide()Lnet/minecraft/network/NetworkSide;
intermediary method_36121
Lnet/minecraft/class_2535;method_36121()Lnet/minecraft/class_2598;
official f
Lwk;f()Lzx;
-
getOppositeSide
Returns the opposite side of this connection, or the direction of the packets sent by this connection.- Mappings:
Namespace Name Mixin selector named getOppositeSide
Lnet/minecraft/network/ClientConnection;getOppositeSide()Lnet/minecraft/network/NetworkSide;
intermediary method_36122
Lnet/minecraft/class_2535;method_36122()Lnet/minecraft/class_2598;
official g
Lwk;g()Lzx;
-
connect
public static ClientConnection connect(InetSocketAddress address, boolean useEpoll, @Nullable @Nullable MultiValueDebugSampleLogImpl packetSizeLog) - Mappings:
Namespace Name Mixin selector named connect
Lnet/minecraft/network/ClientConnection;connect(Ljava/net/InetSocketAddress;ZLnet/minecraft/util/profiler/MultiValueDebugSampleLogImpl;)Lnet/minecraft/network/ClientConnection;
intermediary method_10753
Lnet/minecraft/class_2535;method_10753(Ljava/net/InetSocketAddress;ZLnet/minecraft/class_9191;)Lnet/minecraft/class_2535;
official a
Lwk;a(Ljava/net/InetSocketAddress;ZLblw;)Lwk;
-
connect
public static ChannelFuture connect(InetSocketAddress address, boolean useEpoll, ClientConnection connection) - Mappings:
Namespace Name Mixin selector named connect
Lnet/minecraft/network/ClientConnection;connect(Ljava/net/InetSocketAddress;ZLnet/minecraft/network/ClientConnection;)Lio/netty/channel/ChannelFuture;
intermediary method_52271
Lnet/minecraft/class_2535;method_52271(Ljava/net/InetSocketAddress;ZLnet/minecraft/class_2535;)Lio/netty/channel/ChannelFuture;
official a
Lwk;a(Ljava/net/InetSocketAddress;ZLwk;)Lio/netty/channel/ChannelFuture;
-
getOutboundHandlerName
- Mappings:
Namespace Name Mixin selector named getOutboundHandlerName
Lnet/minecraft/network/ClientConnection;getOutboundHandlerName(Z)Ljava/lang/String;
intermediary method_56333
Lnet/minecraft/class_2535;method_56333(Z)Ljava/lang/String;
official b
Lwk;b(Z)Ljava/lang/String;
-
getInboundHandlerName
- Mappings:
Namespace Name Mixin selector named getInboundHandlerName
Lnet/minecraft/network/ClientConnection;getInboundHandlerName(Z)Ljava/lang/String;
intermediary method_56334
Lnet/minecraft/class_2535;method_56334(Z)Ljava/lang/String;
official c
Lwk;c(Z)Ljava/lang/String;
-
addFlowControlHandler
- Mappings:
Namespace Name Mixin selector named addFlowControlHandler
Lnet/minecraft/network/ClientConnection;addFlowControlHandler(Lio/netty/channel/ChannelPipeline;)V
intermediary method_53859
Lnet/minecraft/class_2535;method_53859(Lio/netty/channel/ChannelPipeline;)V
official a
Lwk;a(Lio/netty/channel/ChannelPipeline;)V
-
addHandlers
public static void addHandlers(ChannelPipeline pipeline, NetworkSide side, boolean local, @Nullable @Nullable PacketSizeLogger packetSizeLogger) - Mappings:
Namespace Name Mixin selector named addHandlers
Lnet/minecraft/network/ClientConnection;addHandlers(Lio/netty/channel/ChannelPipeline;Lnet/minecraft/network/NetworkSide;ZLnet/minecraft/network/handler/PacketSizeLogger;)V
intermediary method_48311
Lnet/minecraft/class_2535;method_48311(Lio/netty/channel/ChannelPipeline;Lnet/minecraft/class_2598;ZLnet/minecraft/class_8762;)V
official a
Lwk;a(Lio/netty/channel/ChannelPipeline;Lzx;ZLwd;)V
-
getPrepender
- Mappings:
Namespace Name Mixin selector named getPrepender
Lnet/minecraft/network/ClientConnection;getPrepender(Z)Lio/netty/channel/ChannelOutboundHandler;
intermediary method_59853
Lnet/minecraft/class_2535;method_59853(Z)Lio/netty/channel/ChannelOutboundHandler;
official d
Lwk;d(Z)Lio/netty/channel/ChannelOutboundHandler;
-
getSplitter
private static ChannelInboundHandler getSplitter(@Nullable @Nullable PacketSizeLogger packetSizeLogger, boolean local) - Mappings:
Namespace Name Mixin selector named getSplitter
Lnet/minecraft/network/ClientConnection;getSplitter(Lnet/minecraft/network/handler/PacketSizeLogger;Z)Lio/netty/channel/ChannelInboundHandler;
intermediary method_59852
Lnet/minecraft/class_2535;method_59852(Lnet/minecraft/class_8762;Z)Lio/netty/channel/ChannelInboundHandler;
official a
Lwk;a(Lwd;Z)Lio/netty/channel/ChannelInboundHandler;
-
addLocalValidator
- Mappings:
Namespace Name Mixin selector named addLocalValidator
Lnet/minecraft/network/ClientConnection;addLocalValidator(Lio/netty/channel/ChannelPipeline;Lnet/minecraft/network/NetworkSide;)V
intermediary method_52911
Lnet/minecraft/class_2535;method_52911(Lio/netty/channel/ChannelPipeline;Lnet/minecraft/class_2598;)V
official a
Lwk;a(Lio/netty/channel/ChannelPipeline;Lzx;)V
-
connectLocal
- Mappings:
Namespace Name Mixin selector named connectLocal
Lnet/minecraft/network/ClientConnection;connectLocal(Ljava/net/SocketAddress;)Lnet/minecraft/network/ClientConnection;
intermediary method_10769
Lnet/minecraft/class_2535;method_10769(Ljava/net/SocketAddress;)Lnet/minecraft/class_2535;
official a
Lwk;a(Ljava/net/SocketAddress;)Lwk;
-
setupEncryption
- Mappings:
Namespace Name Mixin selector named setupEncryption
Lnet/minecraft/network/ClientConnection;setupEncryption(Ljavax/crypto/Cipher;Ljavax/crypto/Cipher;)V
intermediary method_10746
Lnet/minecraft/class_2535;method_10746(Ljavax/crypto/Cipher;Ljavax/crypto/Cipher;)V
official a
Lwk;a(Ljavax/crypto/Cipher;Ljavax/crypto/Cipher;)V
-
isEncrypted
public boolean isEncrypted()- Mappings:
Namespace Name Mixin selector named isEncrypted
Lnet/minecraft/network/ClientConnection;isEncrypted()Z
intermediary method_10771
Lnet/minecraft/class_2535;method_10771()Z
official h
Lwk;h()Z
-
isOpen
public boolean isOpen()- Mappings:
Namespace Name Mixin selector named isOpen
Lnet/minecraft/network/ClientConnection;isOpen()Z
intermediary method_10758
Lnet/minecraft/class_2535;method_10758()Z
official i
Lwk;i()Z
-
isChannelAbsent
public boolean isChannelAbsent()- Mappings:
Namespace Name Mixin selector named isChannelAbsent
Lnet/minecraft/network/ClientConnection;isChannelAbsent()Z
intermediary method_10772
Lnet/minecraft/class_2535;method_10772()Z
official j
Lwk;j()Z
-
getPacketListener
- Mappings:
Namespace Name Mixin selector named getPacketListener
Lnet/minecraft/network/ClientConnection;getPacketListener()Lnet/minecraft/network/listener/PacketListener;
intermediary method_10744
Lnet/minecraft/class_2535;method_10744()Lnet/minecraft/class_2547;
official k
Lwk;k()Lwv;
-
getDisconnectReason
- Mappings:
Namespace Name Mixin selector named getDisconnectReason
Lnet/minecraft/network/ClientConnection;getDisconnectReason()Lnet/minecraft/text/Text;
intermediary method_10748
Lnet/minecraft/class_2535;method_10748()Lnet/minecraft/class_2561;
official l
Lwk;l()Lxp;
-
tryDisableAutoRead
public void tryDisableAutoRead()- Mappings:
Namespace Name Mixin selector named tryDisableAutoRead
Lnet/minecraft/network/ClientConnection;tryDisableAutoRead()V
intermediary method_10757
Lnet/minecraft/class_2535;method_10757()V
official m
Lwk;m()V
-
setCompressionThreshold
public void setCompressionThreshold(int compressionThreshold, boolean rejectsBadPackets) Sets the compression threshold of this connection.Packets over the threshold in size will be written as a
0
byte followed by contents, while compressed ones will be written as a var int for the decompressed size followed by the compressed contents.The connections on the two sides must have the same compression threshold, or compression errors may result.
- Parameters:
compressionThreshold
- the compression threshold, in number of bytesrejectsBadPackets
- whether this connection may abort if a compressed packet with a bad size is received- Mappings:
Namespace Name Mixin selector named setCompressionThreshold
Lnet/minecraft/network/ClientConnection;setCompressionThreshold(IZ)V
intermediary method_10760
Lnet/minecraft/class_2535;method_10760(IZ)V
official a
Lwk;a(IZ)V
-
handleDisconnection
public void handleDisconnection()- Mappings:
Namespace Name Mixin selector named handleDisconnection
Lnet/minecraft/network/ClientConnection;handleDisconnection()V
intermediary method_10768
Lnet/minecraft/class_2535;method_10768()V
official n
Lwk;n()V
-
getAveragePacketsReceived
public float getAveragePacketsReceived()- Mappings:
Namespace Name Mixin selector named getAveragePacketsReceived
Lnet/minecraft/network/ClientConnection;getAveragePacketsReceived()F
intermediary method_10762
Lnet/minecraft/class_2535;method_10762()F
official o
Lwk;o()F
-
getAveragePacketsSent
public float getAveragePacketsSent()- Mappings:
Namespace Name Mixin selector named getAveragePacketsSent
Lnet/minecraft/network/ClientConnection;getAveragePacketsSent()F
intermediary method_10745
Lnet/minecraft/class_2535;method_10745()F
official p
Lwk;p()F
-
resetPacketSizeLog
- Mappings:
Namespace Name Mixin selector named resetPacketSizeLog
Lnet/minecraft/network/ClientConnection;resetPacketSizeLog(Lnet/minecraft/util/profiler/MultiValueDebugSampleLogImpl;)V
intermediary method_53505
Lnet/minecraft/class_2535;method_53505(Lnet/minecraft/class_9191;)V
official a
Lwk;a(Lblw;)V
-