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 official sfintermediary net/minecraft/class_2535named net/minecraft/network/ClientConnection
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SocketAddressprivate floatprivate floatprivate Channelstatic final Supplier<NioEventLoopGroup>static final AttributeKey<NetworkState.PacketHandler<?>>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 booleanstatic final Supplier<EpollEventLoopGroup>private booleanstatic final Supplier<DefaultEventLoopGroup>private static final Loggerstatic final Markerstatic final Markerstatic final Markerstatic final Markerprivate @Nullable PacketListenerprivate intprivate intprivate @Nullable PacketListenerprivate final Queue<Consumer<ClientConnection>>static final AttributeKey<NetworkState.PacketHandler<?>>private final NetworkSideThe side this connection is to.private int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddHandlers(ChannelPipeline pipeline, NetworkSide side) static voidaddValidator(ChannelPipeline pipeline, NetworkSide side) private static voidaddValidatorInternal(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) private voidconnect(String address, int port, PacketListener listener, ConnectionIntent intent) static ClientConnectionconnect(InetSocketAddress address, boolean useEpoll) static ChannelFutureconnect(InetSocketAddress address, boolean useEpoll, ClientConnection connection) static ClientConnectionconnectLocal(SocketAddress address) voidvoiddisconnect(Text disconnectReason) voidvoidexceptionCaught(ChannelHandlerContext context, Throwable ex) voidflush()private voidgetAddressAsString(boolean logIps) floatfloatReturns the opposite side of this connection, or the direction of the packets sent by this connection.private static AttributeKey<NetworkState.PacketHandler<?>>getSide()Returns the side of this connection, or the direction of the packets received by this connection.voidprivate static <T extends PacketListener>
voidhandlePacket(Packet<T> packet, PacketListener listener) private voidbooleanbooleanbooleanisLocal()booleanisOpen()voidvoidsend(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) voidsendWithoutFlush(Packet<?> packet) voidsendWithoutFlush(Packet<?> packet, @Nullable PacketCallbacks callbacks) voidsetCompressionThreshold(int compressionThreshold, boolean rejectsBadPackets) Sets the compression threshold of this connection.static voidsetHandlers(Channel channel) voidsetInitialPacketListener(PacketListener packetListener) Sets the initial packet listener.voidsetPacketListener(PacketListener packetListener) Sets the packet listener that will handle oncoming packets, including ones that are not yet handled by the current packet listener.voidsetS2CPacketHandler(ConnectionIntent intent) voidsetupEncryption(Cipher decryptionCipher, Cipher encryptionCipher) voidsubmit(Consumer<ClientConnection> task) voidtick()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 official jLsf;j:Fintermediary field_33280Lnet/minecraft/class_2535;field_33280:Fnamed CURRENT_PACKET_COUNTER_WEIGHTLnet/minecraft/network/ClientConnection;CURRENT_PACKET_COUNTER_WEIGHT:F
-
LOGGER
- Mappings:
Namespace Name Mixin selector official kLsf;k:Lorg/slf4j/Logger;intermediary field_11642Lnet/minecraft/class_2535;field_11642:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/network/ClientConnection;LOGGER:Lorg/slf4j/Logger;
-
NETWORK_MARKER
- Mappings:
Namespace Name Mixin selector official aLsf;a:Lorg/slf4j/Marker;intermediary field_11641Lnet/minecraft/class_2535;field_11641:Lorg/slf4j/Marker;named NETWORK_MARKERLnet/minecraft/network/ClientConnection;NETWORK_MARKER:Lorg/slf4j/Marker;
-
NETWORK_PACKETS_MARKER
- Mappings:
Namespace Name Mixin selector official bLsf;b:Lorg/slf4j/Marker;intermediary field_11639Lnet/minecraft/class_2535;field_11639:Lorg/slf4j/Marker;named NETWORK_PACKETS_MARKERLnet/minecraft/network/ClientConnection;NETWORK_PACKETS_MARKER:Lorg/slf4j/Marker;
-
PACKET_RECEIVED_MARKER
- Mappings:
Namespace Name Mixin selector official cLsf;c:Lorg/slf4j/Marker;intermediary field_36379Lnet/minecraft/class_2535;field_36379:Lorg/slf4j/Marker;named PACKET_RECEIVED_MARKERLnet/minecraft/network/ClientConnection;PACKET_RECEIVED_MARKER:Lorg/slf4j/Marker;
-
PACKET_SENT_MARKER
- Mappings:
Namespace Name Mixin selector official dLsf;d:Lorg/slf4j/Marker;intermediary field_36380Lnet/minecraft/class_2535;field_36380:Lorg/slf4j/Marker;named PACKET_SENT_MARKERLnet/minecraft/network/ClientConnection;PACKET_SENT_MARKER:Lorg/slf4j/Marker;
-
SERVERBOUND_PROTOCOL_KEY
- Mappings:
Namespace Name Mixin selector official eLsf;e:Lio/netty/util/AttributeKey;intermediary field_45666Lnet/minecraft/class_2535;field_45666:Lio/netty/util/AttributeKey;named SERVERBOUND_PROTOCOL_KEYLnet/minecraft/network/ClientConnection;SERVERBOUND_PROTOCOL_KEY:Lio/netty/util/AttributeKey;
-
CLIENTBOUND_PROTOCOL_KEY
- Mappings:
Namespace Name Mixin selector official fLsf;f:Lio/netty/util/AttributeKey;intermediary field_45667Lnet/minecraft/class_2535;field_45667:Lio/netty/util/AttributeKey;named CLIENTBOUND_PROTOCOL_KEYLnet/minecraft/network/ClientConnection;CLIENTBOUND_PROTOCOL_KEY:Lio/netty/util/AttributeKey;
-
CLIENT_IO_GROUP
- Mappings:
Namespace Name Mixin selector official gLsf;g:Ljava/util/function/Supplier;intermediary field_11650Lnet/minecraft/class_2535;field_11650:Ljava/util/function/Supplier;named CLIENT_IO_GROUPLnet/minecraft/network/ClientConnection;CLIENT_IO_GROUP:Ljava/util/function/Supplier;
-
EPOLL_CLIENT_IO_GROUP
- Mappings:
Namespace Name Mixin selector official hLsf;h:Ljava/util/function/Supplier;intermediary field_11657Lnet/minecraft/class_2535;field_11657:Ljava/util/function/Supplier;named EPOLL_CLIENT_IO_GROUPLnet/minecraft/network/ClientConnection;EPOLL_CLIENT_IO_GROUP:Ljava/util/function/Supplier;
-
LOCAL_CLIENT_IO_GROUP
- Mappings:
Namespace Name Mixin selector official iLsf;i:Ljava/util/function/Supplier;intermediary field_11649Lnet/minecraft/class_2535;field_11649:Ljava/util/function/Supplier;named LOCAL_CLIENT_IO_GROUPLnet/minecraft/network/ClientConnection;LOCAL_CLIENT_IO_GROUP:Ljava/util/function/Supplier;
-
side
The side this connection is to.- Mappings:
Namespace Name Mixin selector official lLsf;l:Lux;intermediary field_11643Lnet/minecraft/class_2535;field_11643:Lnet/minecraft/class_2598;named sideLnet/minecraft/network/ClientConnection;side:Lnet/minecraft/network/NetworkSide;
-
queuedTasks
- Mappings:
Namespace Name Mixin selector official mLsf;m:Ljava/util/Queue;intermediary field_45668Lnet/minecraft/class_2535;field_45668:Ljava/util/Queue;named queuedTasksLnet/minecraft/network/ClientConnection;queuedTasks:Ljava/util/Queue;
-
channel
- Mappings:
Namespace Name Mixin selector official nLsf;n:Lio/netty/channel/Channel;intermediary field_11651Lnet/minecraft/class_2535;field_11651:Lio/netty/channel/Channel;named channelLnet/minecraft/network/ClientConnection;channel:Lio/netty/channel/Channel;
-
address
- Mappings:
Namespace Name Mixin selector official oLsf;o:Ljava/net/SocketAddress;intermediary field_11645Lnet/minecraft/class_2535;field_11645:Ljava/net/SocketAddress;named addressLnet/minecraft/network/ClientConnection;address:Ljava/net/SocketAddress;
-
prePlayStateListener
- Mappings:
Namespace Name Mixin selector official pLsf;p:Lsn;intermediary field_45669Lnet/minecraft/class_2535;field_45669:Lnet/minecraft/class_2547;named prePlayStateListenerLnet/minecraft/network/ClientConnection;prePlayStateListener:Lnet/minecraft/network/listener/PacketListener;
-
packetListener
- Mappings:
Namespace Name Mixin selector official qLsf;q:Lsn;intermediary field_11652Lnet/minecraft/class_2535;field_11652:Lnet/minecraft/class_2547;named packetListenerLnet/minecraft/network/ClientConnection;packetListener:Lnet/minecraft/network/listener/PacketListener;
-
disconnectReason
- Mappings:
Namespace Name Mixin selector official rLsf;r:Lte;intermediary field_11660Lnet/minecraft/class_2535;field_11660:Lnet/minecraft/class_2561;named disconnectReasonLnet/minecraft/network/ClientConnection;disconnectReason:Lnet/minecraft/text/Text;
-
encrypted
private boolean encrypted- Mappings:
Namespace Name Mixin selector official sLsf;s:Zintermediary field_11647Lnet/minecraft/class_2535;field_11647:Znamed encryptedLnet/minecraft/network/ClientConnection;encrypted:Z
-
disconnected
private boolean disconnected- Mappings:
Namespace Name Mixin selector official tLsf;t:Zintermediary field_11646Lnet/minecraft/class_2535;field_11646:Znamed disconnectedLnet/minecraft/network/ClientConnection;disconnected:Z
-
packetsReceivedCounter
private int packetsReceivedCounter- Mappings:
Namespace Name Mixin selector official uLsf;u:Iintermediary field_11658Lnet/minecraft/class_2535;field_11658:Inamed packetsReceivedCounterLnet/minecraft/network/ClientConnection;packetsReceivedCounter:I
-
packetsSentCounter
private int packetsSentCounter- Mappings:
Namespace Name Mixin selector official vLsf;v:Iintermediary field_11656Lnet/minecraft/class_2535;field_11656:Inamed packetsSentCounterLnet/minecraft/network/ClientConnection;packetsSentCounter:I
-
averagePacketsReceived
private float averagePacketsReceived- Mappings:
Namespace Name Mixin selector official wLsf;w:Fintermediary field_11654Lnet/minecraft/class_2535;field_11654:Fnamed averagePacketsReceivedLnet/minecraft/network/ClientConnection;averagePacketsReceived:F
-
averagePacketsSent
private float averagePacketsSent- Mappings:
Namespace Name Mixin selector official xLsf;x:Fintermediary field_11653Lnet/minecraft/class_2535;field_11653:Fnamed averagePacketsSentLnet/minecraft/network/ClientConnection;averagePacketsSent:F
-
ticks
private int ticks- Mappings:
Namespace Name Mixin selector official yLsf;y:Iintermediary field_11655Lnet/minecraft/class_2535;field_11655:Inamed ticksLnet/minecraft/network/ClientConnection;ticks:I
-
errored
private boolean errored- Mappings:
Namespace Name Mixin selector official zLsf;z:Zintermediary field_11640Lnet/minecraft/class_2535;field_11640:Znamed erroredLnet/minecraft/network/ClientConnection;errored:Z
-
pendingDisconnectionReason
- Mappings:
Namespace Name Mixin selector official ALsf;A:Lte;intermediary field_44972Lnet/minecraft/class_2535;field_44972:Lnet/minecraft/class_2561;named pendingDisconnectionReasonLnet/minecraft/network/ClientConnection;pendingDisconnectionReason:Lnet/minecraft/text/Text;
-
-
Constructor Details
-
ClientConnection
- Mappings:
Namespace Name Mixin selector official <init>Lsf;<init>(Lux;)Vintermediary <init>Lnet/minecraft/class_2535;<init>(Lnet/minecraft/class_2598;)Vnamed <init>Lnet/minecraft/network/ClientConnection;<init>(Lnet/minecraft/network/NetworkSide;)V
-
-
Method Details
-
channelActive
- Specified by:
channelActivein interfaceChannelInboundHandler- Overrides:
channelActivein classChannelInboundHandlerAdapter- Throws:
Exception- Mappings:
Namespace Name Mixin selector official channelActiveLsf;channelActive(Lio/netty/channel/ChannelHandlerContext;)Vintermediary channelActiveLnet/minecraft/class_2535;channelActive(Lio/netty/channel/ChannelHandlerContext;)Vnamed channelActiveLnet/minecraft/network/ClientConnection;channelActive(Lio/netty/channel/ChannelHandlerContext;)V
-
setHandlers
- Mappings:
Namespace Name Mixin selector official aLsf;a(Lio/netty/channel/Channel;)Vintermediary method_52901Lnet/minecraft/class_2535;method_52901(Lio/netty/channel/Channel;)Vnamed setHandlersLnet/minecraft/network/ClientConnection;setHandlers(Lio/netty/channel/Channel;)V
-
channelInactive
- Specified by:
channelInactivein interfaceChannelInboundHandler- Overrides:
channelInactivein classChannelInboundHandlerAdapter- Mappings:
Namespace Name Mixin selector official channelInactiveLsf;channelInactive(Lio/netty/channel/ChannelHandlerContext;)Vintermediary channelInactiveLnet/minecraft/class_2535;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 exceptionCaughtLsf;exceptionCaught(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Throwable;)Vintermediary exceptionCaughtLnet/minecraft/class_2535;exceptionCaught(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Throwable;)Vnamed exceptionCaughtLnet/minecraft/network/ClientConnection;exceptionCaught(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Throwable;)V
-
channelRead0
- Specified by:
channelRead0in classSimpleChannelInboundHandler<Packet<?>>- Mappings:
Namespace Name Mixin selector official aLsf;a(Lio/netty/channel/ChannelHandlerContext;Luw;)Vintermediary method_10770Lnet/minecraft/class_2535;method_10770(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/class_2596;)Vnamed channelRead0Lnet/minecraft/network/ClientConnection;channelRead0(Lio/netty/channel/ChannelHandlerContext;Lnet/minecraft/network/packet/Packet;)V
-
handlePacket
private static <T extends PacketListener> void handlePacket(Packet<T> packet, PacketListener listener) - Mappings:
Namespace Name Mixin selector official aLsf;a(Luw;Lsn;)Vintermediary method_10759Lnet/minecraft/class_2535;method_10759(Lnet/minecraft/class_2596;Lnet/minecraft/class_2547;)Vnamed handlePacketLnet/minecraft/network/ClientConnection;handlePacket(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/network/listener/PacketListener;)V
-
disableAutoRead
public void disableAutoRead()- Mappings:
Namespace Name Mixin selector official aLsf;a()Vintermediary method_52898Lnet/minecraft/class_2535;method_52898()Vnamed disableAutoReadLnet/minecraft/network/ClientConnection;disableAutoRead()V
-
enableAutoRead
public void enableAutoRead()- Mappings:
Namespace Name Mixin selector official bLsf;b()Vintermediary method_52910Lnet/minecraft/class_2535;method_52910()Vnamed enableAutoReadLnet/minecraft/network/ClientConnection;enableAutoRead()V
-
setPacketListener
Sets the packet listener that will handle oncoming packets, including ones that are not yet handled by the current packet listener.- API Note:
- This may be called from the packetListener stored in this connection.
- Mappings:
Namespace Name Mixin selector official aLsf;a(Lsn;)Vintermediary method_10763Lnet/minecraft/class_2535;method_10763(Lnet/minecraft/class_2547;)Vnamed setPacketListenerLnet/minecraft/network/ClientConnection;setPacketListener(Lnet/minecraft/network/listener/PacketListener;)V
-
setInitialPacketListener
Sets the initial packet listener.- Throws:
IllegalStateException- if the listener was already set- See Also:
- Mappings:
Namespace Name Mixin selector official bLsf;b(Lsn;)Vintermediary method_52912Lnet/minecraft/class_2535;method_52912(Lnet/minecraft/class_2547;)Vnamed setInitialPacketListenerLnet/minecraft/network/ClientConnection;setInitialPacketListener(Lnet/minecraft/network/listener/PacketListener;)V
-
connect
- Mappings:
Namespace Name Mixin selector official aLsf;a(Ljava/lang/String;ILadp;)Vintermediary method_52903Lnet/minecraft/class_2535;method_52903(Ljava/lang/String;ILnet/minecraft/class_2921;)Vnamed connectLnet/minecraft/network/ClientConnection;connect(Ljava/lang/String;ILnet/minecraft/network/listener/ClientQueryPacketListener;)V
-
connect
- Mappings:
Namespace Name Mixin selector official aLsf;a(Ljava/lang/String;ILacx;)Vintermediary method_52902Lnet/minecraft/class_2535;method_52902(Ljava/lang/String;ILnet/minecraft/class_2896;)Vnamed connectLnet/minecraft/network/ClientConnection;connect(Ljava/lang/String;ILnet/minecraft/network/listener/ClientLoginPacketListener;)V
-
connect
- Mappings:
Namespace Name Mixin selector official aLsf;a(Ljava/lang/String;ILsn;Lact;)Vintermediary method_52904Lnet/minecraft/class_2535;method_52904(Ljava/lang/String;ILnet/minecraft/class_2547;Lnet/minecraft/class_8592;)Vnamed connectLnet/minecraft/network/ClientConnection;connect(Ljava/lang/String;ILnet/minecraft/network/listener/PacketListener;Lnet/minecraft/network/ConnectionIntent;)V
-
setS2CPacketHandler
- Mappings:
Namespace Name Mixin selector official aLsf;a(Lact;)Vintermediary method_52899Lnet/minecraft/class_2535;method_52899(Lnet/minecraft/class_8592;)Vnamed setS2CPacketHandlerLnet/minecraft/network/ClientConnection;setS2CPacketHandler(Lnet/minecraft/network/ConnectionIntent;)V
-
send
- Mappings:
Namespace Name Mixin selector official aLsf;a(Luw;)Vintermediary method_10743Lnet/minecraft/class_2535;method_10743(Lnet/minecraft/class_2596;)Vnamed sendLnet/minecraft/network/ClientConnection;send(Lnet/minecraft/network/packet/Packet;)V
-
sendWithoutFlush
- Mappings:
Namespace Name Mixin selector official bLsf;b(Luw;)Vintermediary method_52913Lnet/minecraft/class_2535;method_52913(Lnet/minecraft/class_2596;)Vnamed sendWithoutFlushLnet/minecraft/network/ClientConnection;sendWithoutFlush(Lnet/minecraft/network/packet/Packet;)V
-
send
- Mappings:
Namespace Name Mixin selector official aLsf;a(Luw;Lso;)Vintermediary method_10752Lnet/minecraft/class_2535;method_10752(Lnet/minecraft/class_2596;Lnet/minecraft/class_7648;)Vnamed sendLnet/minecraft/network/ClientConnection;send(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/network/PacketCallbacks;)V
-
sendWithoutFlush
- Mappings:
Namespace Name Mixin selector official bLsf;b(Luw;Lso;)Vintermediary method_52914Lnet/minecraft/class_2535;method_52914(Lnet/minecraft/class_2596;Lnet/minecraft/class_7648;)Vnamed sendWithoutFlushLnet/minecraft/network/ClientConnection;sendWithoutFlush(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/network/PacketCallbacks;)V
-
send
- Mappings:
Namespace Name Mixin selector official aLsf;a(Luw;Lso;Z)Vintermediary method_52906Lnet/minecraft/class_2535;method_52906(Lnet/minecraft/class_2596;Lnet/minecraft/class_7648;Z)Vnamed sendLnet/minecraft/network/ClientConnection;send(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/network/PacketCallbacks;Z)V
-
submit
- Mappings:
Namespace Name Mixin selector official aLsf;a(Ljava/util/function/Consumer;)Vintermediary method_52905Lnet/minecraft/class_2535;method_52905(Ljava/util/function/Consumer;)Vnamed submitLnet/minecraft/network/ClientConnection;submit(Ljava/util/function/Consumer;)V
-
sendImmediately
private void sendImmediately(Packet<?> packet, @Nullable @Nullable PacketCallbacks callbacks, boolean flush) - Mappings:
Namespace Name Mixin selector official bLsf;b(Luw;Lso;Z)Vintermediary method_10764Lnet/minecraft/class_2535;method_10764(Lnet/minecraft/class_2596;Lnet/minecraft/class_7648;Z)Vnamed sendImmediatelyLnet/minecraft/network/ClientConnection;sendImmediately(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/network/PacketCallbacks;Z)V
-
sendInternal
private void sendInternal(Packet<?> packet, @Nullable @Nullable PacketCallbacks callbacks, boolean flush) - Mappings:
Namespace Name Mixin selector official cLsf;c(Luw;Lso;Z)Vintermediary method_36942Lnet/minecraft/class_2535;method_36942(Lnet/minecraft/class_2596;Lnet/minecraft/class_7648;Z)Vnamed sendInternalLnet/minecraft/network/ClientConnection;sendInternal(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/network/PacketCallbacks;Z)V
-
flush
public void flush()- Mappings:
Namespace Name Mixin selector official cLsf;c()Vintermediary method_52915Lnet/minecraft/class_2535;method_52915()Vnamed flushLnet/minecraft/network/ClientConnection;flush()V
-
flushInternal
private void flushInternal()- Mappings:
Namespace Name Mixin selector official sLsf;s()Vintermediary method_52918Lnet/minecraft/class_2535;method_52918()Vnamed flushInternalLnet/minecraft/network/ClientConnection;flushInternal()V
-
getProtocolAttributeKey
private static AttributeKey<NetworkState.PacketHandler<?>> getProtocolAttributeKey(NetworkSide side) - Mappings:
Namespace Name Mixin selector official aLsf;a(Lux;)Lio/netty/util/AttributeKey;intermediary method_52908Lnet/minecraft/class_2535;method_52908(Lnet/minecraft/class_2598;)Lio/netty/util/AttributeKey;named getProtocolAttributeKeyLnet/minecraft/network/ClientConnection;getProtocolAttributeKey(Lnet/minecraft/network/NetworkSide;)Lio/netty/util/AttributeKey;
-
handleQueuedTasks
private void handleQueuedTasks()- Mappings:
Namespace Name Mixin selector official tLsf;t()Vintermediary method_10751Lnet/minecraft/class_2535;method_10751()Vnamed handleQueuedTasksLnet/minecraft/network/ClientConnection;handleQueuedTasks()V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official dLsf;d()Vintermediary method_10754Lnet/minecraft/class_2535;method_10754()Vnamed tickLnet/minecraft/network/ClientConnection;tick()V
-
updateStats
protected void updateStats()- Mappings:
Namespace Name Mixin selector official eLsf;e()Vintermediary method_30615Lnet/minecraft/class_2535;method_30615()Vnamed updateStatsLnet/minecraft/network/ClientConnection;updateStats()V
-
getAddress
- Mappings:
Namespace Name Mixin selector official fLsf;f()Ljava/net/SocketAddress;intermediary method_10755Lnet/minecraft/class_2535;method_10755()Ljava/net/SocketAddress;named getAddressLnet/minecraft/network/ClientConnection;getAddress()Ljava/net/SocketAddress;
-
getAddressAsString
- Mappings:
Namespace Name Mixin selector official aLsf;a(Z)Ljava/lang/String;intermediary method_52909Lnet/minecraft/class_2535;method_52909(Z)Ljava/lang/String;named getAddressAsStringLnet/minecraft/network/ClientConnection;getAddressAsString(Z)Ljava/lang/String;
-
disconnect
- Mappings:
Namespace Name Mixin selector official aLsf;a(Lte;)Vintermediary method_10747Lnet/minecraft/class_2535;method_10747(Lnet/minecraft/class_2561;)Vnamed disconnectLnet/minecraft/network/ClientConnection;disconnect(Lnet/minecraft/text/Text;)V
-
isLocal
public boolean isLocal()- Mappings:
Namespace Name Mixin selector official gLsf;g()Zintermediary method_10756Lnet/minecraft/class_2535;method_10756()Znamed isLocalLnet/minecraft/network/ClientConnection;isLocal()Z
-
getSide
Returns the side of this connection, or the direction of the packets received by this connection.- Mappings:
Namespace Name Mixin selector official hLsf;h()Lux;intermediary method_36121Lnet/minecraft/class_2535;method_36121()Lnet/minecraft/class_2598;named getSideLnet/minecraft/network/ClientConnection;getSide()Lnet/minecraft/network/NetworkSide;
-
getOppositeSide
Returns the opposite side of this connection, or the direction of the packets sent by this connection.- Mappings:
Namespace Name Mixin selector official iLsf;i()Lux;intermediary method_36122Lnet/minecraft/class_2535;method_36122()Lnet/minecraft/class_2598;named getOppositeSideLnet/minecraft/network/ClientConnection;getOppositeSide()Lnet/minecraft/network/NetworkSide;
-
connect
- Mappings:
Namespace Name Mixin selector official aLsf;a(Ljava/net/InetSocketAddress;Z)Lsf;intermediary method_10753Lnet/minecraft/class_2535;method_10753(Ljava/net/InetSocketAddress;Z)Lnet/minecraft/class_2535;named connectLnet/minecraft/network/ClientConnection;connect(Ljava/net/InetSocketAddress;Z)Lnet/minecraft/network/ClientConnection;
-
connect
public static ChannelFuture connect(InetSocketAddress address, boolean useEpoll, ClientConnection connection) - Mappings:
Namespace Name Mixin selector official aLsf;a(Ljava/net/InetSocketAddress;ZLsf;)Lio/netty/channel/ChannelFuture;intermediary method_52271Lnet/minecraft/class_2535;method_52271(Ljava/net/InetSocketAddress;ZLnet/minecraft/class_2535;)Lio/netty/channel/ChannelFuture;named connectLnet/minecraft/network/ClientConnection;connect(Ljava/net/InetSocketAddress;ZLnet/minecraft/network/ClientConnection;)Lio/netty/channel/ChannelFuture;
-
addHandlers
- Mappings:
Namespace Name Mixin selector official aLsf;a(Lio/netty/channel/ChannelPipeline;Lux;)Vintermediary method_48311Lnet/minecraft/class_2535;method_48311(Lio/netty/channel/ChannelPipeline;Lnet/minecraft/class_2598;)Vnamed addHandlersLnet/minecraft/network/ClientConnection;addHandlers(Lio/netty/channel/ChannelPipeline;Lnet/minecraft/network/NetworkSide;)V
-
addValidatorInternal
- Mappings:
Namespace Name Mixin selector official cLsf;c(Lio/netty/channel/ChannelPipeline;Lux;)Vintermediary method_52916Lnet/minecraft/class_2535;method_52916(Lio/netty/channel/ChannelPipeline;Lnet/minecraft/class_2598;)Vnamed addValidatorInternalLnet/minecraft/network/ClientConnection;addValidatorInternal(Lio/netty/channel/ChannelPipeline;Lnet/minecraft/network/NetworkSide;)V
-
addValidator
- Mappings:
Namespace Name Mixin selector official bLsf;b(Lio/netty/channel/ChannelPipeline;Lux;)Vintermediary method_52911Lnet/minecraft/class_2535;method_52911(Lio/netty/channel/ChannelPipeline;Lnet/minecraft/class_2598;)Vnamed addValidatorLnet/minecraft/network/ClientConnection;addValidator(Lio/netty/channel/ChannelPipeline;Lnet/minecraft/network/NetworkSide;)V
-
connectLocal
- Mappings:
Namespace Name Mixin selector official aLsf;a(Ljava/net/SocketAddress;)Lsf;intermediary method_10769Lnet/minecraft/class_2535;method_10769(Ljava/net/SocketAddress;)Lnet/minecraft/class_2535;named connectLocalLnet/minecraft/network/ClientConnection;connectLocal(Ljava/net/SocketAddress;)Lnet/minecraft/network/ClientConnection;
-
setupEncryption
- Mappings:
Namespace Name Mixin selector official aLsf;a(Ljavax/crypto/Cipher;Ljavax/crypto/Cipher;)Vintermediary method_10746Lnet/minecraft/class_2535;method_10746(Ljavax/crypto/Cipher;Ljavax/crypto/Cipher;)Vnamed setupEncryptionLnet/minecraft/network/ClientConnection;setupEncryption(Ljavax/crypto/Cipher;Ljavax/crypto/Cipher;)V
-
isEncrypted
public boolean isEncrypted()- Mappings:
Namespace Name Mixin selector official jLsf;j()Zintermediary method_10771Lnet/minecraft/class_2535;method_10771()Znamed isEncryptedLnet/minecraft/network/ClientConnection;isEncrypted()Z
-
isOpen
public boolean isOpen()- Mappings:
Namespace Name Mixin selector official kLsf;k()Zintermediary method_10758Lnet/minecraft/class_2535;method_10758()Znamed isOpenLnet/minecraft/network/ClientConnection;isOpen()Z
-
isChannelAbsent
public boolean isChannelAbsent()- Mappings:
Namespace Name Mixin selector official lLsf;l()Zintermediary method_10772Lnet/minecraft/class_2535;method_10772()Znamed isChannelAbsentLnet/minecraft/network/ClientConnection;isChannelAbsent()Z
-
getPacketListener
- Mappings:
Namespace Name Mixin selector official mLsf;m()Lsn;intermediary method_10744Lnet/minecraft/class_2535;method_10744()Lnet/minecraft/class_2547;named getPacketListenerLnet/minecraft/network/ClientConnection;getPacketListener()Lnet/minecraft/network/listener/PacketListener;
-
getDisconnectReason
- Mappings:
Namespace Name Mixin selector official nLsf;n()Lte;intermediary method_10748Lnet/minecraft/class_2535;method_10748()Lnet/minecraft/class_2561;named getDisconnectReasonLnet/minecraft/network/ClientConnection;getDisconnectReason()Lnet/minecraft/text/Text;
-
tryDisableAutoRead
public void tryDisableAutoRead()- Mappings:
Namespace Name Mixin selector official oLsf;o()Vintermediary method_10757Lnet/minecraft/class_2535;method_10757()Vnamed tryDisableAutoReadLnet/minecraft/network/ClientConnection;tryDisableAutoRead()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 official aLsf;a(IZ)Vintermediary method_10760Lnet/minecraft/class_2535;method_10760(IZ)Vnamed setCompressionThresholdLnet/minecraft/network/ClientConnection;setCompressionThreshold(IZ)V
-
handleDisconnection
public void handleDisconnection()- Mappings:
Namespace Name Mixin selector official pLsf;p()Vintermediary method_10768Lnet/minecraft/class_2535;method_10768()Vnamed handleDisconnectionLnet/minecraft/network/ClientConnection;handleDisconnection()V
-
getAveragePacketsReceived
public float getAveragePacketsReceived()- Mappings:
Namespace Name Mixin selector official qLsf;q()Fintermediary method_10762Lnet/minecraft/class_2535;method_10762()Fnamed getAveragePacketsReceivedLnet/minecraft/network/ClientConnection;getAveragePacketsReceived()F
-
getAveragePacketsSent
public float getAveragePacketsSent()- Mappings:
Namespace Name Mixin selector official rLsf;r()Fintermediary method_10745Lnet/minecraft/class_2535;method_10745()Fnamed getAveragePacketsSentLnet/minecraft/network/ClientConnection;getAveragePacketsSent()F
-