2019-06-28 17:55:20 -04:00
|
|
|
CLASS net/minecraft/class_2535 net/minecraft/network/ClientConnection
|
2021-03-27 10:26:40 -04:00
|
|
|
COMMENT A connection backed by a netty channel. It can be one to a client on the
|
|
|
|
COMMENT server or one to a server on a client.
|
2022-01-19 12:26:32 -05:00
|
|
|
FIELD field_11639 NETWORK_PACKETS_MARKER Lorg/slf4j/Marker;
|
2020-02-09 09:31:14 -05:00
|
|
|
FIELD field_11640 errored Z
|
2022-01-19 12:26:32 -05:00
|
|
|
FIELD field_11641 NETWORK_MARKER Lorg/slf4j/Marker;
|
|
|
|
FIELD field_11642 LOGGER Lorg/slf4j/Logger;
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_11643 side Lnet/minecraft/class_2598;
|
2021-03-27 10:26:40 -04:00
|
|
|
COMMENT The side this connection is to.
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_11645 address Ljava/net/SocketAddress;
|
|
|
|
FIELD field_11646 disconnected Z
|
|
|
|
FIELD field_11647 encrypted Z
|
2023-08-02 13:18:08 -04:00
|
|
|
FIELD field_11649 LOCAL_CLIENT_IO_GROUP Ljava/util/function/Supplier;
|
|
|
|
FIELD field_11650 CLIENT_IO_GROUP Ljava/util/function/Supplier;
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_11651 channel Lio/netty/channel/Channel;
|
|
|
|
FIELD field_11652 packetListener Lnet/minecraft/class_2547;
|
2021-03-27 10:26:40 -04:00
|
|
|
FIELD field_11653 averagePacketsSent F
|
|
|
|
FIELD field_11654 averagePacketsReceived F
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_11655 ticks I
|
|
|
|
FIELD field_11656 packetsSentCounter I
|
2023-08-02 13:18:08 -04:00
|
|
|
FIELD field_11657 EPOLL_CLIENT_IO_GROUP Ljava/util/function/Supplier;
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_11658 packetsReceivedCounter I
|
|
|
|
FIELD field_11660 disconnectReason Lnet/minecraft/class_2561;
|
2021-04-03 10:02:25 -04:00
|
|
|
FIELD field_33280 CURRENT_PACKET_COUNTER_WEIGHT F
|
|
|
|
COMMENT Represents when the average packet counter is updated, what percent of the
|
|
|
|
COMMENT value of the average counter is set from the current counter.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>The formula is {@link #averagePacketsSent averagePacketsSent} = {@value}
|
|
|
|
COMMENT × {@link #packetsSentCounter packetsSentCounter} + (1 - {@value}) ×
|
|
|
|
COMMENT {@code averagePacketsSent}.
|
2022-02-09 06:33:27 -05:00
|
|
|
FIELD field_36379 PACKET_RECEIVED_MARKER Lorg/slf4j/Marker;
|
|
|
|
FIELD field_36380 PACKET_SENT_MARKER Lorg/slf4j/Marker;
|
2023-06-10 11:56:15 -04:00
|
|
|
FIELD field_44972 pendingDisconnectionReason Lnet/minecraft/class_2561;
|
2023-08-04 07:01:01 -04:00
|
|
|
FIELD field_45666 SERVERBOUND_PROTOCOL_KEY Lio/netty/util/AttributeKey;
|
|
|
|
FIELD field_45667 CLIENTBOUND_PROTOCOL_KEY Lio/netty/util/AttributeKey;
|
|
|
|
FIELD field_45668 queuedTasks Ljava/util/Queue;
|
|
|
|
FIELD field_45669 prePlayStateListener Lnet/minecraft/class_2547;
|
2023-08-09 22:58:29 -04:00
|
|
|
FIELD field_45955 packetSizeLogger Lnet/minecraft/class_8762;
|
2020-02-09 09:31:14 -05:00
|
|
|
METHOD <init> (Lnet/minecraft/class_2598;)V
|
|
|
|
ARG 1 side
|
2021-03-27 10:26:40 -04:00
|
|
|
METHOD channelActive (Lio/netty/channel/ChannelHandlerContext;)V
|
|
|
|
ARG 1 context
|
|
|
|
METHOD channelInactive (Lio/netty/channel/ChannelHandlerContext;)V
|
|
|
|
ARG 1 context
|
|
|
|
METHOD channelRead0 (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
|
|
|
|
ARG 1 context
|
|
|
|
ARG 2 packet
|
|
|
|
METHOD exceptionCaught (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Throwable;)V
|
|
|
|
ARG 1 context
|
|
|
|
ARG 2 ex
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10743 send (Lnet/minecraft/class_2596;)V
|
2019-04-16 10:16:45 -04:00
|
|
|
ARG 1 packet
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10744 getPacketListener ()Lnet/minecraft/class_2547;
|
|
|
|
METHOD method_10745 getAveragePacketsSent ()F
|
2020-10-22 12:55:10 -04:00
|
|
|
METHOD method_10746 setupEncryption (Ljavax/crypto/Cipher;Ljavax/crypto/Cipher;)V
|
2021-05-13 12:59:27 -04:00
|
|
|
ARG 1 decryptionCipher
|
|
|
|
ARG 2 encryptionCipher
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10747 disconnect (Lnet/minecraft/class_2561;)V
|
|
|
|
ARG 1 disconnectReason
|
|
|
|
METHOD method_10748 getDisconnectReason ()Lnet/minecraft/class_2561;
|
2023-08-04 07:01:01 -04:00
|
|
|
METHOD method_10751 handleQueuedTasks ()V
|
2022-07-26 13:16:20 -04:00
|
|
|
METHOD method_10752 send (Lnet/minecraft/class_2596;Lnet/minecraft/class_7648;)V
|
2019-04-16 10:16:45 -04:00
|
|
|
ARG 1 packet
|
2022-08-04 09:05:23 -04:00
|
|
|
ARG 2 callbacks
|
2023-08-09 11:28:38 -04:00
|
|
|
METHOD method_10753 connect (Ljava/net/InetSocketAddress;ZLnet/minecraft/class_8743;)Lnet/minecraft/class_2535;
|
2023-08-09 22:58:29 -04:00
|
|
|
ARG 0 address
|
2021-05-13 12:59:27 -04:00
|
|
|
ARG 1 useEpoll
|
2023-08-09 22:58:29 -04:00
|
|
|
ARG 2 packetSizeLog
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10754 tick ()V
|
|
|
|
METHOD method_10755 getAddress ()Ljava/net/SocketAddress;
|
|
|
|
METHOD method_10756 isLocal ()Z
|
2023-08-04 07:01:01 -04:00
|
|
|
METHOD method_10757 tryDisableAutoRead ()V
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10758 isOpen ()Z
|
|
|
|
METHOD method_10759 handlePacket (Lnet/minecraft/class_2596;Lnet/minecraft/class_2547;)V
|
2019-04-16 10:16:45 -04:00
|
|
|
ARG 0 packet
|
|
|
|
ARG 1 listener
|
2021-07-05 11:40:11 -04:00
|
|
|
METHOD method_10760 setCompressionThreshold (IZ)V
|
2021-07-10 07:27:42 -04:00
|
|
|
COMMENT Sets the compression threshold of this connection.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>Packets over the threshold in size will be written as a {@code 0}
|
|
|
|
COMMENT byte followed by contents, while compressed ones will be written as
|
|
|
|
COMMENT a var int for the decompressed size followed by the compressed contents.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>The connections on the two sides must have the same compression
|
|
|
|
COMMENT threshold, or compression errors may result.
|
2020-02-09 09:31:14 -05:00
|
|
|
ARG 1 compressionThreshold
|
2021-07-10 07:27:42 -04:00
|
|
|
COMMENT the compression threshold, in number of bytes
|
|
|
|
ARG 2 rejectsBadPackets
|
|
|
|
COMMENT whether this connection may abort if a compressed packet with a bad size is received
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10762 getAveragePacketsReceived ()F
|
|
|
|
METHOD method_10763 setPacketListener (Lnet/minecraft/class_2547;)V
|
2021-03-27 10:26:40 -04:00
|
|
|
COMMENT Sets the packet listener that will handle oncoming packets, including
|
|
|
|
COMMENT ones that are not yet handled by the current packet listener.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @apiNote This may be called from the {@linkplain #packetListener} stored
|
|
|
|
COMMENT in this connection.
|
2023-08-04 07:01:01 -04:00
|
|
|
ARG 1 packetListener
|
2023-08-02 13:18:08 -04:00
|
|
|
METHOD method_10764 sendImmediately (Lnet/minecraft/class_2596;Lnet/minecraft/class_7648;Z)V
|
2023-08-04 07:01:01 -04:00
|
|
|
ARG 1 packet
|
2022-08-04 09:05:23 -04:00
|
|
|
ARG 2 callbacks
|
2023-08-04 07:01:01 -04:00
|
|
|
ARG 3 flush
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10768 handleDisconnection ()V
|
2020-01-12 07:12:36 -05:00
|
|
|
METHOD method_10769 connectLocal (Ljava/net/SocketAddress;)Lnet/minecraft/class_2535;
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 0 address
|
|
|
|
METHOD method_10771 isEncrypted ()Z
|
2023-02-04 10:44:41 -05:00
|
|
|
METHOD method_10772 isChannelAbsent ()Z
|
2020-07-09 05:55:55 -04:00
|
|
|
METHOD method_30615 updateStats ()V
|
2021-04-03 10:02:25 -04:00
|
|
|
METHOD method_36121 getSide ()Lnet/minecraft/class_2598;
|
|
|
|
COMMENT Returns the side of this connection, or the direction of the packets received
|
|
|
|
COMMENT by this connection.
|
|
|
|
METHOD method_36122 getOppositeSide ()Lnet/minecraft/class_2598;
|
|
|
|
COMMENT Returns the opposite side of this connection, or the direction of the packets
|
|
|
|
COMMENT sent by this connection.
|
2023-08-02 13:18:08 -04:00
|
|
|
METHOD method_36942 sendInternal (Lnet/minecraft/class_2596;Lnet/minecraft/class_7648;Z)V
|
2021-05-13 12:59:27 -04:00
|
|
|
ARG 1 packet
|
2022-08-04 09:05:23 -04:00
|
|
|
ARG 2 callbacks
|
2023-08-04 07:01:01 -04:00
|
|
|
ARG 3 flush
|
2022-02-09 06:33:27 -05:00
|
|
|
METHOD method_40062 (Lorg/slf4j/Marker;)V
|
|
|
|
ARG 0 marker
|
|
|
|
METHOD method_40063 (Lorg/slf4j/Marker;)V
|
|
|
|
ARG 0 marker
|
|
|
|
METHOD method_40064 (Lorg/slf4j/Marker;)V
|
|
|
|
ARG 0 marker
|
2022-08-04 09:05:23 -04:00
|
|
|
METHOD method_45082 (Lnet/minecraft/class_7648;Lio/netty/util/concurrent/Future;)V
|
|
|
|
ARG 2 future
|
2023-08-09 11:28:38 -04:00
|
|
|
METHOD method_48311 addHandlers (Lio/netty/channel/ChannelPipeline;Lnet/minecraft/class_2598;Lnet/minecraft/class_8762;)V
|
2023-01-20 04:50:59 -05:00
|
|
|
ARG 0 pipeline
|
|
|
|
ARG 1 side
|
2023-08-09 22:58:29 -04:00
|
|
|
ARG 2 packetSizeLogger
|
2023-06-10 11:56:15 -04:00
|
|
|
METHOD method_52271 connect (Ljava/net/InetSocketAddress;ZLnet/minecraft/class_2535;)Lio/netty/channel/ChannelFuture;
|
|
|
|
ARG 0 address
|
|
|
|
ARG 1 useEpoll
|
|
|
|
ARG 2 connection
|
2023-08-04 07:01:01 -04:00
|
|
|
METHOD method_52898 disableAutoRead ()V
|
|
|
|
METHOD method_52899 setS2CPacketHandler (Lnet/minecraft/class_8592;)V
|
|
|
|
ARG 1 intent
|
|
|
|
METHOD method_52900 (Lnet/minecraft/class_8592;Lnet/minecraft/class_2547;Ljava/lang/String;ILnet/minecraft/class_2535;)V
|
|
|
|
ARG 5 connection
|
|
|
|
METHOD method_52901 setHandlers (Lio/netty/channel/Channel;)V
|
|
|
|
ARG 0 channel
|
|
|
|
METHOD method_52902 connect (Ljava/lang/String;ILnet/minecraft/class_2896;)V
|
|
|
|
ARG 1 address
|
|
|
|
ARG 2 port
|
|
|
|
ARG 3 listener
|
|
|
|
METHOD method_52903 connect (Ljava/lang/String;ILnet/minecraft/class_2921;)V
|
|
|
|
ARG 1 address
|
|
|
|
ARG 2 port
|
|
|
|
ARG 3 listener
|
|
|
|
METHOD method_52904 connect (Ljava/lang/String;ILnet/minecraft/class_2547;Lnet/minecraft/class_8592;)V
|
|
|
|
ARG 1 address
|
|
|
|
ARG 2 port
|
|
|
|
ARG 3 listener
|
|
|
|
ARG 4 intent
|
|
|
|
METHOD method_52905 submit (Ljava/util/function/Consumer;)V
|
|
|
|
ARG 1 task
|
|
|
|
METHOD method_52906 send (Lnet/minecraft/class_2596;Lnet/minecraft/class_7648;Z)V
|
|
|
|
ARG 1 packet
|
|
|
|
ARG 2 callbacks
|
|
|
|
ARG 3 flush
|
|
|
|
METHOD method_52907 (Lnet/minecraft/class_2596;Lnet/minecraft/class_7648;ZLnet/minecraft/class_2535;)V
|
|
|
|
ARG 3 connection
|
|
|
|
METHOD method_52908 getProtocolAttributeKey (Lnet/minecraft/class_2598;)Lio/netty/util/AttributeKey;
|
|
|
|
ARG 0 side
|
2023-08-03 00:44:06 -04:00
|
|
|
METHOD method_52909 getAddressAsString (Z)Ljava/lang/String;
|
|
|
|
ARG 1 logIps
|
2023-08-04 07:01:01 -04:00
|
|
|
METHOD method_52910 enableAutoRead ()V
|
|
|
|
METHOD method_52911 addValidator (Lio/netty/channel/ChannelPipeline;Lnet/minecraft/class_2598;)V
|
|
|
|
ARG 0 pipeline
|
|
|
|
ARG 1 side
|
|
|
|
METHOD method_52912 setInitialPacketListener (Lnet/minecraft/class_2547;)V
|
|
|
|
COMMENT Sets the initial packet listener.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @throws IllegalStateException if the listener was already set
|
|
|
|
COMMENT @see #setPacketListener
|
|
|
|
ARG 1 packetListener
|
|
|
|
METHOD method_52915 flush ()V
|
|
|
|
METHOD method_52916 addValidatorInternal (Lio/netty/channel/ChannelPipeline;Lnet/minecraft/class_2598;)V
|
|
|
|
ARG 0 pipeline
|
|
|
|
ARG 1 side
|
|
|
|
METHOD method_52918 flushInternal ()V
|
2023-08-09 22:58:29 -04:00
|
|
|
METHOD method_53505 resetPacketSizeLog (Lnet/minecraft/class_8743;)V
|
|
|
|
ARG 1 log
|
2021-05-13 12:59:27 -04:00
|
|
|
CLASS 1
|
|
|
|
METHOD initChannel (Lio/netty/channel/Channel;)V
|
|
|
|
ARG 1 channel
|
|
|
|
CLASS 2
|
|
|
|
METHOD initChannel (Lio/netty/channel/Channel;)V
|
|
|
|
ARG 1 channel
|