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/ClientConnectionintermediary net/minecraft/class_2535official wp
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SocketAddressprivate floatprivate floatprivate static final NetworkState<ServerHandshakePacketListener> private Channelstatic final Supplier<NioEventLoopGroup> private static final floatRepresents when the average packet counter is updated, what percent of the value of the average counter is set from the current counter.private booleanprivate @Nullable DisconnectionInfoprivate booleanprivate booleanstatic final Supplier<EpollEventLoopGroup> private booleanstatic final Supplier<DefaultEventLoopGroup> private static final Loggerstatic final Markerstatic final Markerstatic final Markerstatic final Markerprivate @Nullable PacketListener(package private) @Nullable PacketSizeLoggerprivate intprivate intprivate @Nullable DisconnectionInfoprivate @Nullable PacketListenerprivate final Queue<Consumer<ClientConnection>> private final NetworkSideThe side this connection is to.private int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFlowControlHandler(ChannelPipeline pipeline) static voidaddHandlers(ChannelPipeline pipeline, NetworkSide side, boolean local, @Nullable PacketSizeLogger packetSizeLogger) static voidaddLocalValidator(ChannelPipeline pipeline, NetworkSide side) voidchannelActive(ChannelHandlerContext context) voidchannelInactive(ChannelHandlerContext context) protected voidchannelRead0(ChannelHandlerContext channelHandlerContext, Packet<?> packet) voidconnect(String address, int port, ClientLoginPacketListener listener) voidconnect(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 ChannelFutureconnect(InetSocketAddress address, boolean useEpoll, ClientConnection connection) static ClientConnectionconnect(InetSocketAddress address, boolean useEpoll, @Nullable MultiValueDebugSampleLogImpl packetSizeLog) static ClientConnectionconnectLocal(SocketAddress address) voiddisconnect(DisconnectionInfo disconnectionInfo) voiddisconnect(Text disconnectReason) voidexceptionCaught(ChannelHandlerContext context, Throwable ex) voidflush()private voidgetAddressAsString(boolean logIps) floatfloatprivate static StringgetInboundHandlerName(boolean receivingSide) Returns the opposite side of this connection, or the direction of the packets sent by this connection.private static StringgetOutboundHandlerName(boolean sendingSide) private static ChannelOutboundHandlergetPrepender(boolean local) getSide()Returns the side of this connection, or the direction of the packets received by this connection.private static ChannelInboundHandlergetSplitter(@Nullable PacketSizeLogger packetSizeLogger, boolean local) voidprivate static <T extends PacketListener>
voidhandlePacket(Packet<T> packet, PacketListener listener) private voidbooleanbooleanbooleanisLocal()booleanisOpen()voidvoidvoidsend(Packet<?> packet, @Nullable PacketCallbacks callbacks) voidsend(Packet<?> packet, @Nullable PacketCallbacks callbacks, boolean flush) private voidsendImmediately(Packet<?> packet, @Nullable PacketCallbacks callbacks, boolean flush) private voidsendInternal(Packet<?> packet, @Nullable PacketCallbacks callbacks, boolean flush) voidsetCompressionThreshold(int compressionThreshold, boolean rejectsBadPackets) Sets the compression threshold of this connection.voidsetInitialPacketListener(PacketListener packetListener) Sets the initial packet listener.private voidsetPacketListener(NetworkState<?> state, PacketListener listener) voidsetupEncryption(Cipher decryptionCipher, Cipher encryptionCipher) voidsubmit(Consumer<ClientConnection> task) private static voidsyncUninterruptibly(ChannelFuture future) voidtick()<T extends PacketListener>
voidtransitionInbound(NetworkState<T> state, T packetListener) voidtransitionOutbound(NetworkState<?> newState) voidprotected voidMethods 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
ensureNotSharable, 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
-
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_WEIGHTLnet/minecraft/network/ClientConnection;CURRENT_PACKET_COUNTER_WEIGHT:Fintermediary field_33280Lnet/minecraft/class_2535;field_33280:Fofficial hLwp;h:F
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/network/ClientConnection;LOGGER:Lorg/slf4j/Logger;intermediary field_11642Lnet/minecraft/class_2535;field_11642:Lorg/slf4j/Logger;official iLwp;i:Lorg/slf4j/Logger;
-
NETWORK_MARKER
- Mappings:
Namespace Name Mixin selector named NETWORK_MARKERLnet/minecraft/network/ClientConnection;NETWORK_MARKER:Lorg/slf4j/Marker;intermediary field_11641Lnet/minecraft/class_2535;field_11641:Lorg/slf4j/Marker;official aLwp;a:Lorg/slf4j/Marker;
-
NETWORK_PACKETS_MARKER
- Mappings:
Namespace Name Mixin selector named NETWORK_PACKETS_MARKERLnet/minecraft/network/ClientConnection;NETWORK_PACKETS_MARKER:Lorg/slf4j/Marker;intermediary field_11639Lnet/minecraft/class_2535;field_11639:Lorg/slf4j/Marker;official bLwp;b:Lorg/slf4j/Marker;
-
PACKET_RECEIVED_MARKER
- Mappings:
Namespace Name Mixin selector named PACKET_RECEIVED_MARKERLnet/minecraft/network/ClientConnection;PACKET_RECEIVED_MARKER:Lorg/slf4j/Marker;intermediary field_36379Lnet/minecraft/class_2535;field_36379:Lorg/slf4j/Marker;official cLwp;c:Lorg/slf4j/Marker;
-
PACKET_SENT_MARKER
- Mappings:
Namespace Name Mixin selector named PACKET_SENT_MARKERLnet/minecraft/network/ClientConnection;PACKET_SENT_MARKER:Lorg/slf4j/Marker;intermediary field_36380Lnet/minecraft/class_2535;field_36380:Lorg/slf4j/Marker;official dLwp;d:Lorg/slf4j/Marker;
-
CLIENT_IO_GROUP
- Mappings:
Namespace Name Mixin selector named CLIENT_IO_GROUPLnet/minecraft/network/ClientConnection;CLIENT_IO_GROUP:Ljava/util/function/Supplier;intermediary field_11650Lnet/minecraft/class_2535;field_11650:Ljava/util/function/Supplier;official eLwp;e:Ljava/util/function/Supplier;
-
EPOLL_CLIENT_IO_GROUP
- Mappings:
Namespace Name Mixin selector named EPOLL_CLIENT_IO_GROUPLnet/minecraft/network/ClientConnection;EPOLL_CLIENT_IO_GROUP:Ljava/util/function/Supplier;intermediary field_11657Lnet/minecraft/class_2535;field_11657:Ljava/util/function/Supplier;official fLwp;f:Ljava/util/function/Supplier;
-
LOCAL_CLIENT_IO_GROUP
- Mappings:
Namespace Name Mixin selector named LOCAL_CLIENT_IO_GROUPLnet/minecraft/network/ClientConnection;LOCAL_CLIENT_IO_GROUP:Ljava/util/function/Supplier;intermediary field_11649Lnet/minecraft/class_2535;field_11649:Ljava/util/function/Supplier;official gLwp;g:Ljava/util/function/Supplier;
-
C2S_HANDSHAKE_STATE
- Mappings:
Namespace Name Mixin selector named C2S_HANDSHAKE_STATELnet/minecraft/network/ClientConnection;C2S_HANDSHAKE_STATE:Lnet/minecraft/network/NetworkState;intermediary field_48514Lnet/minecraft/class_2535;field_48514:Lnet/minecraft/class_9127;official jLwp;j:Lxd;
-
side
The side this connection is to.- Mappings:
Namespace Name Mixin selector named sideLnet/minecraft/network/ClientConnection;side:Lnet/minecraft/network/NetworkSide;intermediary field_11643Lnet/minecraft/class_2535;field_11643:Lnet/minecraft/class_2598;official kLwp;k:Laad;
-
duringLogin
private volatile boolean duringLogin- Mappings:
Namespace Name Mixin selector named duringLoginLnet/minecraft/network/ClientConnection;duringLogin:Zintermediary field_48515Lnet/minecraft/class_2535;field_48515:Zofficial lLwp;l:Z
-
queuedTasks
- Mappings:
Namespace Name Mixin selector named queuedTasksLnet/minecraft/network/ClientConnection;queuedTasks:Ljava/util/Queue;intermediary field_45668Lnet/minecraft/class_2535;field_45668:Ljava/util/Queue;official mLwp;m:Ljava/util/Queue;
-
channel
- Mappings:
Namespace Name Mixin selector named channelLnet/minecraft/network/ClientConnection;channel:Lio/netty/channel/Channel;intermediary field_11651Lnet/minecraft/class_2535;field_11651:Lio/netty/channel/Channel;official nLwp;n:Lio/netty/channel/Channel;
-
address
- Mappings:
Namespace Name Mixin selector named addressLnet/minecraft/network/ClientConnection;address:Ljava/net/SocketAddress;intermediary field_11645Lnet/minecraft/class_2535;field_11645:Ljava/net/SocketAddress;official oLwp;o:Ljava/net/SocketAddress;
-
prePlayStateListener
- Mappings:
Namespace Name Mixin selector named prePlayStateListenerLnet/minecraft/network/ClientConnection;prePlayStateListener:Lnet/minecraft/network/listener/PacketListener;intermediary field_45669Lnet/minecraft/class_2535;field_45669:Lnet/minecraft/class_2547;official pLwp;p:Lxb;
-
packetListener
- Mappings:
Namespace Name Mixin selector named packetListenerLnet/minecraft/network/ClientConnection;packetListener:Lnet/minecraft/network/listener/PacketListener;intermediary field_11652Lnet/minecraft/class_2535;field_11652:Lnet/minecraft/class_2547;official qLwp;q:Lxb;
-
disconnectionInfo
- Mappings:
Namespace Name Mixin selector named disconnectionInfoLnet/minecraft/network/ClientConnection;disconnectionInfo:Lnet/minecraft/network/DisconnectionInfo;intermediary field_52180Lnet/minecraft/class_2535;field_52180:Lnet/minecraft/class_9812;official rLwp;r:Lwr;
-
encrypted
private boolean encrypted- Mappings:
Namespace Name Mixin selector named encryptedLnet/minecraft/network/ClientConnection;encrypted:Zintermediary field_11647Lnet/minecraft/class_2535;field_11647:Zofficial sLwp;s:Z
-
disconnected
private boolean disconnected- Mappings:
Namespace Name Mixin selector named disconnectedLnet/minecraft/network/ClientConnection;disconnected:Zintermediary field_11646Lnet/minecraft/class_2535;field_11646:Zofficial tLwp;t:Z
-
packetsReceivedCounter
private int packetsReceivedCounter- Mappings:
Namespace Name Mixin selector named packetsReceivedCounterLnet/minecraft/network/ClientConnection;packetsReceivedCounter:Iintermediary field_11658Lnet/minecraft/class_2535;field_11658:Iofficial uLwp;u:I
-
packetsSentCounter
private int packetsSentCounter- Mappings:
Namespace Name Mixin selector named packetsSentCounterLnet/minecraft/network/ClientConnection;packetsSentCounter:Iintermediary field_11656Lnet/minecraft/class_2535;field_11656:Iofficial vLwp;v:I
-
averagePacketsReceived
private float averagePacketsReceived- Mappings:
Namespace Name Mixin selector named averagePacketsReceivedLnet/minecraft/network/ClientConnection;averagePacketsReceived:Fintermediary field_11654Lnet/minecraft/class_2535;field_11654:Fofficial wLwp;w:F
-
averagePacketsSent
private float averagePacketsSent- Mappings:
Namespace Name Mixin selector named averagePacketsSentLnet/minecraft/network/ClientConnection;averagePacketsSent:Fintermediary field_11653Lnet/minecraft/class_2535;field_11653:Fofficial xLwp;x:F
-
ticks
private int ticks- Mappings:
Namespace Name Mixin selector named ticksLnet/minecraft/network/ClientConnection;ticks:Iintermediary field_11655Lnet/minecraft/class_2535;field_11655:Iofficial yLwp;y:I
-
errored
private boolean errored- Mappings:
Namespace Name Mixin selector named erroredLnet/minecraft/network/ClientConnection;errored:Zintermediary field_11640Lnet/minecraft/class_2535;field_11640:Zofficial zLwp;z:Z
-
pendingDisconnectionInfo
- Mappings:
Namespace Name Mixin selector named pendingDisconnectionInfoLnet/minecraft/network/ClientConnection;pendingDisconnectionInfo:Lnet/minecraft/network/DisconnectionInfo;intermediary field_44972Lnet/minecraft/class_2535;field_44972:Lnet/minecraft/class_9812;official ALwp;A:Lwr;
-
packetSizeLogger
- Mappings:
Namespace Name Mixin selector named packetSizeLoggerLnet/minecraft/network/ClientConnection;packetSizeLogger:Lnet/minecraft/network/handler/PacketSizeLogger;intermediary field_45955Lnet/minecraft/class_2535;field_45955:Lnet/minecraft/class_8762;official BLwp;B:Lwi;
-
-
Constructor Details
-
ClientConnection
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/network/ClientConnection;<init>(Lnet/minecraft/network/NetworkSide;)Vintermediary <init>Lnet/minecraft/class_2535;<init>(Lnet/minecraft/class_2598;)Vofficial <init>Lwp;<init>(Laad;)V
-
-
Method Details
-
channelActive
- Specified by:
channelActivein interfaceChannelInboundHandler- Overrides:
channelActivein classChannelInboundHandlerAdapter- Throws:
Exception- Mappings:
Namespace Name Mixin selector named channelActiveLnet/minecraft/network/ClientConnection;channelActive(Lio/netty/channel/ChannelHandlerContext;)Vintermediary channelActiveLnet/minecraft/class_2535;channelActive(Lio/netty/channel/ChannelHandlerContext;)Vofficial channelActiveLwp;channelActive(Lio/netty/channel/ChannelHandlerContext;)V
-
channelInactive
- Specified by:
channelInactivein interfaceChannelInboundHandler- Overrides:
channelInactivein classChannelInboundHandlerAdapter- Mappings:
Namespace Name Mixin selector named channelInactiveLnet/minecraft/network/ClientConnection;channelInactive(Lio/netty/channel/ChannelHandlerContext;)Vintermediary channelInactiveLnet/minecraft/class_2535;channelInactive(Lio/netty/channel/ChannelHandlerContext;)Vofficial channelInactiveLwp;channelInactive(Lio/netty/channel/ChannelHandlerContext;)V
-
exceptionCaught
- Specified by:
exceptionCaughtin interfaceChannelHandler- Specified by:
exceptionCaughtin interfaceChannelInboundHandler- Overrides:
exceptionCaughtin classChannelInboundHandlerAdapter- Mappings:
Namespace Name Mixin selector named exceptionCaughtLnet/minecraft/network/ClientConnection;exceptionCaught(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Throwable;)Vintermediary exceptionCaughtLnet/minecraft/class_2535;exceptionCaught(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Throwable;)Vofficial exceptionCaughtLwp;exceptionCaught(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Throwable;)V
-
channelRead0
- Specified by:
channelRead0in classSimpleChannelInboundHandler<Packet<?>>- Mappings:
Namespace Name Mixin selector named channelRead0Lnet/minecraft/network/ClientConnection;channelRead0(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/network/packet/Packet;)Vintermediary method_10770Lnet/minecraft/class_2535;method_10770(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/class_2596;)Vofficial aLwp;a(Lio/netty/channel/ChannelHandlerContext;Laac;)V
-
handlePacket
private static <T extends PacketListener> void handlePacket(Packet<T> packet, PacketListener listener) - Mappings:
Namespace Name Mixin selector named handlePacketLnet/minecraft/network/ClientConnection;handlePacket(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/network/listener/PacketListener;)Vintermediary method_10759Lnet/minecraft/class_2535;method_10759(Lnet/minecraft/class_2596;Lnet/minecraft/class_2547;)Vofficial aLwp;a(Laac;Lxb;)V
-
setPacketListener
- Mappings:
Namespace Name Mixin selector named setPacketListenerLnet/minecraft/network/ClientConnection;setPacketListener(Lnet/minecraft/network/NetworkState;Lnet/minecraft/network/listener/PacketListener;)Vintermediary method_56332Lnet/minecraft/class_2535;method_56332(Lnet/minecraft/class_9127;Lnet/minecraft/class_2547;)Vofficial bLwp;b(Lxd;Lxb;)V
-
syncUninterruptibly
- Mappings:
Namespace Name Mixin selector named syncUninterruptiblyLnet/minecraft/network/ClientConnection;syncUninterruptibly(Lio/netty/channel/ChannelFuture;)Vintermediary method_59851Lnet/minecraft/class_2535;method_59851(Lio/netty/channel/ChannelFuture;)Vofficial aLwp;a(Lio/netty/channel/ChannelFuture;)V
-
transitionInbound
- Mappings:
Namespace Name Mixin selector named transitionInboundLnet/minecraft/network/ClientConnection;transitionInbound(Lnet/minecraft/network/NetworkState;Lnet/minecraft/network/listener/PacketListener;)Vintermediary method_56330Lnet/minecraft/class_2535;method_56330(Lnet/minecraft/class_9127;Lnet/minecraft/class_2547;)Vofficial aLwp;a(Lxd;Lxb;)V
-
transitionOutbound
- Mappings:
Namespace Name Mixin selector named transitionOutboundLnet/minecraft/network/ClientConnection;transitionOutbound(Lnet/minecraft/network/NetworkState;)Vintermediary method_56329Lnet/minecraft/class_2535;method_56329(Lnet/minecraft/class_9127;)Vofficial aLwp;a(Lxd;)V
-
setInitialPacketListener
Sets the initial packet listener.- Throws:
IllegalStateException- if the listener was already set- See Also:
- Mappings:
Namespace Name Mixin selector named setInitialPacketListenerLnet/minecraft/network/ClientConnection;setInitialPacketListener(Lnet/minecraft/network/listener/PacketListener;)Vintermediary method_52912Lnet/minecraft/class_2535;method_52912(Lnet/minecraft/class_2547;)Vofficial aLwp;a(Lxb;)V
-
connect
- Mappings:
Namespace Name Mixin selector named connectLnet/minecraft/network/ClientConnection;connect(Ljava/lang/String;ILnet/minecraft/network/listener/ClientQueryPacketListener;)Vintermediary method_52903Lnet/minecraft/class_2535;method_52903(Ljava/lang/String;ILnet/minecraft/class_2921;)Vofficial aLwp;a(Ljava/lang/String;ILaku;)V
-
connect
- Mappings:
Namespace Name Mixin selector named connectLnet/minecraft/network/ClientConnection;connect(Ljava/lang/String;ILnet/minecraft/network/listener/ClientLoginPacketListener;)Vintermediary method_52902Lnet/minecraft/class_2535;method_52902(Ljava/lang/String;ILnet/minecraft/class_2896;)Vofficial aLwp;a(Ljava/lang/String;ILaju;)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 connectLnet/minecraft/network/ClientConnection;connect(Ljava/lang/String;ILnet/minecraft/network/NetworkState;Lnet/minecraft/network/NetworkState;Lnet/minecraft/network/listener/ClientPacketListener;Z)Vintermediary method_56326Lnet/minecraft/class_2535;method_56326(Ljava/lang/String;ILnet/minecraft/class_9127;Lnet/minecraft/class_9127;Lnet/minecraft/class_8697;Z)Vofficial aLwp;a(Ljava/lang/String;ILxd;Lxd;Lwm;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 connectLnet/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;)Vintermediary method_52904Lnet/minecraft/class_2535;method_52904(Ljava/lang/String;ILnet/minecraft/class_9127;Lnet/minecraft/class_9127;Lnet/minecraft/class_8697;Lnet/minecraft/class_8592;)Vofficial aLwp;a(Ljava/lang/String;ILxd;Lxd;Lwm;Lajo;)V
-
send
- Mappings:
Namespace Name Mixin selector named sendLnet/minecraft/network/ClientConnection;send(Lnet/minecraft/network/packet/Packet;)Vintermediary method_10743Lnet/minecraft/class_2535;method_10743(Lnet/minecraft/class_2596;)Vofficial aLwp;a(Laac;)V
-
send
- Mappings:
Namespace Name Mixin selector named sendLnet/minecraft/network/ClientConnection;send(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/network/PacketCallbacks;)Vintermediary method_10752Lnet/minecraft/class_2535;method_10752(Lnet/minecraft/class_2596;Lnet/minecraft/class_7648;)Vofficial aLwp;a(Laac;Lxc;)V
-
send
- Mappings:
Namespace Name Mixin selector named sendLnet/minecraft/network/ClientConnection;send(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/network/PacketCallbacks;Z)Vintermediary method_52906Lnet/minecraft/class_2535;method_52906(Lnet/minecraft/class_2596;Lnet/minecraft/class_7648;Z)Vofficial aLwp;a(Laac;Lxc;Z)V
-
submit
- Mappings:
Namespace Name Mixin selector named submitLnet/minecraft/network/ClientConnection;submit(Ljava/util/function/Consumer;)Vintermediary method_52905Lnet/minecraft/class_2535;method_52905(Ljava/util/function/Consumer;)Vofficial aLwp;a(Ljava/util/function/Consumer;)V
-
sendImmediately
private void sendImmediately(Packet<?> packet, @Nullable @Nullable PacketCallbacks callbacks, boolean flush) - Mappings:
Namespace Name Mixin selector named sendImmediatelyLnet/minecraft/network/ClientConnection;sendImmediately(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/network/PacketCallbacks;Z)Vintermediary method_10764Lnet/minecraft/class_2535;method_10764(Lnet/minecraft/class_2596;Lnet/minecraft/class_7648;Z)Vofficial bLwp;b(Laac;Lxc;Z)V
-
sendInternal
private void sendInternal(Packet<?> packet, @Nullable @Nullable PacketCallbacks callbacks, boolean flush) - Mappings:
Namespace Name Mixin selector named sendInternalLnet/minecraft/network/ClientConnection;sendInternal(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/network/PacketCallbacks;Z)Vintermediary method_36942Lnet/minecraft/class_2535;method_36942(Lnet/minecraft/class_2596;Lnet/minecraft/class_7648;Z)Vofficial cLwp;c(Laac;Lxc;Z)V
-
flush
public void flush()- Mappings:
Namespace Name Mixin selector named flushLnet/minecraft/network/ClientConnection;flush()Vintermediary method_52915Lnet/minecraft/class_2535;method_52915()Vofficial aLwp;a()V
-
flushInternal
private void flushInternal()- Mappings:
Namespace Name Mixin selector named flushInternalLnet/minecraft/network/ClientConnection;flushInternal()Vintermediary method_52918Lnet/minecraft/class_2535;method_52918()Vofficial qLwp;q()V
-
handleQueuedTasks
private void handleQueuedTasks()- Mappings:
Namespace Name Mixin selector named handleQueuedTasksLnet/minecraft/network/ClientConnection;handleQueuedTasks()Vintermediary method_10751Lnet/minecraft/class_2535;method_10751()Vofficial rLwp;r()V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector named tickLnet/minecraft/network/ClientConnection;tick()Vintermediary method_10754Lnet/minecraft/class_2535;method_10754()Vofficial bLwp;b()V
-
updateStats
protected void updateStats()- Mappings:
Namespace Name Mixin selector named updateStatsLnet/minecraft/network/ClientConnection;updateStats()Vintermediary method_30615Lnet/minecraft/class_2535;method_30615()Vofficial cLwp;c()V
-
getAddress
- Mappings:
Namespace Name Mixin selector named getAddressLnet/minecraft/network/ClientConnection;getAddress()Ljava/net/SocketAddress;intermediary method_10755Lnet/minecraft/class_2535;method_10755()Ljava/net/SocketAddress;official dLwp;d()Ljava/net/SocketAddress;
-
getAddressAsString
- Mappings:
Namespace Name Mixin selector named getAddressAsStringLnet/minecraft/network/ClientConnection;getAddressAsString(Z)Ljava/lang/String;intermediary method_52909Lnet/minecraft/class_2535;method_52909(Z)Ljava/lang/String;official aLwp;a(Z)Ljava/lang/String;
-
disconnect
- Mappings:
Namespace Name Mixin selector named disconnectLnet/minecraft/network/ClientConnection;disconnect(Lnet/minecraft/text/Text;)Vintermediary method_10747Lnet/minecraft/class_2535;method_10747(Lnet/minecraft/class_2561;)Vofficial aLwp;a(Lxv;)V
-
disconnect
- Mappings:
Namespace Name Mixin selector named disconnectLnet/minecraft/network/ClientConnection;disconnect(Lnet/minecraft/network/DisconnectionInfo;)Vintermediary method_60924Lnet/minecraft/class_2535;method_60924(Lnet/minecraft/class_9812;)Vofficial aLwp;a(Lwr;)V
-
isLocal
public boolean isLocal()- Mappings:
Namespace Name Mixin selector named isLocalLnet/minecraft/network/ClientConnection;isLocal()Zintermediary method_10756Lnet/minecraft/class_2535;method_10756()Zofficial eLwp;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 getSideLnet/minecraft/network/ClientConnection;getSide()Lnet/minecraft/network/NetworkSide;intermediary method_36121Lnet/minecraft/class_2535;method_36121()Lnet/minecraft/class_2598;official fLwp;f()Laad;
-
getOppositeSide
Returns the opposite side of this connection, or the direction of the packets sent by this connection.- Mappings:
Namespace Name Mixin selector named getOppositeSideLnet/minecraft/network/ClientConnection;getOppositeSide()Lnet/minecraft/network/NetworkSide;intermediary method_36122Lnet/minecraft/class_2535;method_36122()Lnet/minecraft/class_2598;official gLwp;g()Laad;
-
connect
public static ClientConnection connect(InetSocketAddress address, boolean useEpoll, @Nullable @Nullable MultiValueDebugSampleLogImpl packetSizeLog) - Mappings:
Namespace Name Mixin selector named connectLnet/minecraft/network/ClientConnection;connect(Ljava/net/InetSocketAddress;ZLnet/minecraft/util/profiler/MultiValueDebugSampleLogImpl;)Lnet/minecraft/network/ClientConnection;intermediary method_10753Lnet/minecraft/class_2535;method_10753(Ljava/net/InetSocketAddress;ZLnet/minecraft/class_9191;)Lnet/minecraft/class_2535;official aLwp;a(Ljava/net/InetSocketAddress;ZLboc;)Lwp;
-
connect
public static ChannelFuture connect(InetSocketAddress address, boolean useEpoll, ClientConnection connection) - Mappings:
Namespace Name Mixin selector named connectLnet/minecraft/network/ClientConnection;connect(Ljava/net/InetSocketAddress;ZLnet/minecraft/network/ClientConnection;)Lio/netty/channel/ChannelFuture;intermediary method_52271Lnet/minecraft/class_2535;method_52271(Ljava/net/InetSocketAddress;ZLnet/minecraft/class_2535;)Lio/netty/channel/ChannelFuture;official aLwp;a(Ljava/net/InetSocketAddress;ZLwp;)Lio/netty/channel/ChannelFuture;
-
getOutboundHandlerName
- Mappings:
Namespace Name Mixin selector named getOutboundHandlerNameLnet/minecraft/network/ClientConnection;getOutboundHandlerName(Z)Ljava/lang/String;intermediary method_56333Lnet/minecraft/class_2535;method_56333(Z)Ljava/lang/String;official bLwp;b(Z)Ljava/lang/String;
-
getInboundHandlerName
- Mappings:
Namespace Name Mixin selector named getInboundHandlerNameLnet/minecraft/network/ClientConnection;getInboundHandlerName(Z)Ljava/lang/String;intermediary method_56334Lnet/minecraft/class_2535;method_56334(Z)Ljava/lang/String;official cLwp;c(Z)Ljava/lang/String;
-
addFlowControlHandler
- Mappings:
Namespace Name Mixin selector named addFlowControlHandlerLnet/minecraft/network/ClientConnection;addFlowControlHandler(Lio/netty/channel/ChannelPipeline;)Vintermediary method_53859Lnet/minecraft/class_2535;method_53859(Lio/netty/channel/ChannelPipeline;)Vofficial aLwp;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 addHandlersLnet/minecraft/network/ClientConnection;addHandlers(Lio/netty/channel/ChannelPipeline;Lnet/minecraft/network/NetworkSide;ZLnet/minecraft/network/handler/PacketSizeLogger;)Vintermediary method_48311Lnet/minecraft/class_2535;method_48311(Lio/netty/channel/ChannelPipeline;Lnet/minecraft/class_2598;ZLnet/minecraft/class_8762;)Vofficial aLwp;a(Lio/netty/channel/ChannelPipeline;Laad;ZLwi;)V
-
getPrepender
- Mappings:
Namespace Name Mixin selector named getPrependerLnet/minecraft/network/ClientConnection;getPrepender(Z)Lio/netty/channel/ChannelOutboundHandler;intermediary method_59853Lnet/minecraft/class_2535;method_59853(Z)Lio/netty/channel/ChannelOutboundHandler;official dLwp;d(Z)Lio/netty/channel/ChannelOutboundHandler;
-
getSplitter
private static ChannelInboundHandler getSplitter(@Nullable @Nullable PacketSizeLogger packetSizeLogger, boolean local) - Mappings:
Namespace Name Mixin selector named getSplitterLnet/minecraft/network/ClientConnection;getSplitter(Lnet/minecraft/network/handler/PacketSizeLogger;Z)Lio/netty/channel/ChannelInboundHandler;intermediary method_59852Lnet/minecraft/class_2535;method_59852(Lnet/minecraft/class_8762;Z)Lio/netty/channel/ChannelInboundHandler;official aLwp;a(Lwi;Z)Lio/netty/channel/ChannelInboundHandler;
-
addLocalValidator
- Mappings:
Namespace Name Mixin selector named addLocalValidatorLnet/minecraft/network/ClientConnection;addLocalValidator(Lio/netty/channel/ChannelPipeline;Lnet/minecraft/network/NetworkSide;)Vintermediary method_52911Lnet/minecraft/class_2535;method_52911(Lio/netty/channel/ChannelPipeline;Lnet/minecraft/class_2598;)Vofficial aLwp;a(Lio/netty/channel/ChannelPipeline;Laad;)V
-
connectLocal
- Mappings:
Namespace Name Mixin selector named connectLocalLnet/minecraft/network/ClientConnection;connectLocal(Ljava/net/SocketAddress;)Lnet/minecraft/network/ClientConnection;intermediary method_10769Lnet/minecraft/class_2535;method_10769(Ljava/net/SocketAddress;)Lnet/minecraft/class_2535;official aLwp;a(Ljava/net/SocketAddress;)Lwp;
-
setupEncryption
- Mappings:
Namespace Name Mixin selector named setupEncryptionLnet/minecraft/network/ClientConnection;setupEncryption(Ljavax/crypto/Cipher;Ljavax/crypto/Cipher;)Vintermediary method_10746Lnet/minecraft/class_2535;method_10746(Ljavax/crypto/Cipher;Ljavax/crypto/Cipher;)Vofficial aLwp;a(Ljavax/crypto/Cipher;Ljavax/crypto/Cipher;)V
-
isEncrypted
public boolean isEncrypted()- Mappings:
Namespace Name Mixin selector named isEncryptedLnet/minecraft/network/ClientConnection;isEncrypted()Zintermediary method_10771Lnet/minecraft/class_2535;method_10771()Zofficial hLwp;h()Z
-
isOpen
public boolean isOpen()- Mappings:
Namespace Name Mixin selector named isOpenLnet/minecraft/network/ClientConnection;isOpen()Zintermediary method_10758Lnet/minecraft/class_2535;method_10758()Zofficial iLwp;i()Z
-
isChannelAbsent
public boolean isChannelAbsent()- Mappings:
Namespace Name Mixin selector named isChannelAbsentLnet/minecraft/network/ClientConnection;isChannelAbsent()Zintermediary method_10772Lnet/minecraft/class_2535;method_10772()Zofficial jLwp;j()Z
-
getPacketListener
- Mappings:
Namespace Name Mixin selector named getPacketListenerLnet/minecraft/network/ClientConnection;getPacketListener()Lnet/minecraft/network/listener/PacketListener;intermediary method_10744Lnet/minecraft/class_2535;method_10744()Lnet/minecraft/class_2547;official kLwp;k()Lxb;
-
method_60926
- Mappings:
Namespace Name Mixin selector named method_60926Lnet/minecraft/network/ClientConnection;method_60926()Lnet/minecraft/network/DisconnectionInfo;intermediary method_60926Lnet/minecraft/class_2535;method_60926()Lnet/minecraft/class_9812;official lLwp;l()Lwr;
-
tryDisableAutoRead
public void tryDisableAutoRead()- Mappings:
Namespace Name Mixin selector named tryDisableAutoReadLnet/minecraft/network/ClientConnection;tryDisableAutoRead()Vintermediary method_10757Lnet/minecraft/class_2535;method_10757()Vofficial mLwp;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
0byte 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 setCompressionThresholdLnet/minecraft/network/ClientConnection;setCompressionThreshold(IZ)Vintermediary method_10760Lnet/minecraft/class_2535;method_10760(IZ)Vofficial aLwp;a(IZ)V
-
handleDisconnection
public void handleDisconnection()- Mappings:
Namespace Name Mixin selector named handleDisconnectionLnet/minecraft/network/ClientConnection;handleDisconnection()Vintermediary method_10768Lnet/minecraft/class_2535;method_10768()Vofficial nLwp;n()V
-
getAveragePacketsReceived
public float getAveragePacketsReceived()- Mappings:
Namespace Name Mixin selector named getAveragePacketsReceivedLnet/minecraft/network/ClientConnection;getAveragePacketsReceived()Fintermediary method_10762Lnet/minecraft/class_2535;method_10762()Fofficial oLwp;o()F
-
getAveragePacketsSent
public float getAveragePacketsSent()- Mappings:
Namespace Name Mixin selector named getAveragePacketsSentLnet/minecraft/network/ClientConnection;getAveragePacketsSent()Fintermediary method_10745Lnet/minecraft/class_2535;method_10745()Fofficial pLwp;p()F
-
resetPacketSizeLog
- Mappings:
Namespace Name Mixin selector named resetPacketSizeLogLnet/minecraft/network/ClientConnection;resetPacketSizeLog(Lnet/minecraft/util/profiler/MultiValueDebugSampleLogImpl;)Vintermediary method_53505Lnet/minecraft/class_2535;method_53505(Lnet/minecraft/class_9191;)Vofficial aLwp;a(Lboc;)V
-