net.minecraft.network

public class Connection

extends io.netty.channel.SimpleChannelInboundHandler<Packet<?>>

pw
net.minecraft.network.Connection
net.minecraft.class_2535
net.minecraft.unmapped.C_oasmcckk
net.minecraft.network.ClientConnection
net.minecraft.network.ClientConnection
net.minecraft.src.C_4961_
net.minecraft.network.NetworkManager

Field summary

Modifier and TypeField
private static final float
i
AVERAGE_PACKETS_SMOOTHING
field_33280
f_yhdjpmsl
CURRENT_PACKET_COUNTER_WEIGHT
CURRENT_PACKET_COUNTER_WEIGHT
f_178299_
private static final org.slf4j.Logger
j
LOGGER
field_11642
f_lspmidtv
LOGGER
LOGGER
f_129465_
public static final org.slf4j.Marker
a
ROOT_MARKER
field_11641
f_wborsynf
NETWORK_MARKER
NETWORK_MARKER
f_129459_
public static final org.slf4j.Marker
b
PACKET_MARKER
field_11639
f_howpitdi
NETWORK_PACKETS_MARKER
NETWORK_PACKETS_MARKER
f_129460_
public static final org.slf4j.Marker
c
PACKET_RECEIVED_MARKER
field_36379
f_arvbntbf
PACKET_RECEIVED_MARKER
f_arvbntbf
f_202554_
public static final org.slf4j.Marker
d
PACKET_SENT_MARKER
field_36380
f_nqkzlzra
PACKET_SENT_MARKER
f_nqkzlzra
f_202555_
public static final io.netty.util.AttributeKey<ConnectionProtocol>
e
ATTRIBUTE_PROTOCOL
field_11648
f_gecyhplb
PROTOCOL_ATTRIBUTE_KEY
PROTOCOL_ATTRIBUTE_KEY
f_129461_
public static final LazyLoadedValue<io.netty.channel.nio.NioEventLoopGroup>
f
NETWORK_WORKER_GROUP
field_11650
f_hudxxxbp
CLIENT_IO_GROUP
CLIENT_IO_GROUP
f_129462_
public static final LazyLoadedValue<io.netty.channel.epoll.EpollEventLoopGroup>
g
NETWORK_EPOLL_WORKER_GROUP
field_11657
f_pdctspiv
EPOLL_CLIENT_IO_GROUP
EPOLL_CLIENT_IO_GROUP
f_129463_
public static final LazyLoadedValue<io.netty.channel.DefaultEventLoopGroup>
h
LOCAL_WORKER_GROUP
field_11649
f_ewnrqslo
LOCAL_CLIENT_IO_GROUP
LOCAL_CLIENT_IO_GROUP
f_129464_
private final PacketFlow
k
receiving
field_11643
f_gaynmpqg
side
side
f_129466_
private final Queue<Connection$PacketHolder>
l
queue
field_11644
f_bgaglckf
packetQueue
packetQueue
f_129467_
private io.netty.channel.Channel
m
channel
field_11651
f_kawdlrjp
channel
channel
f_129468_
private SocketAddress
n
address
field_11645
f_daxqlowt
address
address
f_129469_
private PacketListener
o
packetListener
field_11652
f_ucdtbtsq
packetListener
packetListener
f_129470_
private Component
p
disconnectedReason
field_11660
f_hgoaaoyc
disconnectReason
disconnectReason
f_129471_
private boolean
q
encrypted
field_11647
f_eatlkkxl
encrypted
encrypted
f_129472_
private boolean
r
disconnectionHandled
field_11646
f_wdeykuqe
disconnected
disconnected
f_129473_
private int
s
receivedPackets
field_11658
f_mamtuefi
packetsReceivedCounter
packetsReceivedCounter
f_129474_
private int
t
sentPackets
field_11656
f_zrkidnxu
packetsSentCounter
packetsSentCounter
f_129475_
private float
u
averageReceivedPackets
field_11654
f_sjhnumre
averagePacketsReceived
averagePacketsReceived
f_129476_
private float
v
averageSentPackets
field_11653
f_jrcdtkyf
averagePacketsSent
averagePacketsSent
f_129477_
private int
w
tickCount
field_11655
f_bcutours
ticks
ticks
f_129478_
private boolean
x
handlingFault
field_11640
f_vcukytvt
errored
errored
f_129479_

Constructor summary

ModifierConstructor
public (PacketFlow side)

Method summary

Modifier and TypeMethod
public void
channelActive(io.netty.channel.ChannelHandlerContext arg0)
channelActive(io.netty.channel.ChannelHandlerContext arg0)
channelActive(io.netty.channel.ChannelHandlerContext arg0)
channelActive(io.netty.channel.ChannelHandlerContext context)
channelActive(io.netty.channel.ChannelHandlerContext arg0)
public void
a(px arg0)
setProtocol(ConnectionProtocol arg0)
method_10750(class_2539 arg0)
m_moawflfe(C_kxdobmrm arg0)
setState(NetworkState state)
setState(NetworkState state)
m_129498_(C_4965_ arg0)
public void
channelInactive(io.netty.channel.ChannelHandlerContext arg0)
channelInactive(io.netty.channel.ChannelHandlerContext arg0)
channelInactive(io.netty.channel.ChannelHandlerContext arg0)
channelInactive(io.netty.channel.ChannelHandlerContext context)
channelInactive(io.netty.channel.ChannelHandlerContext arg0)
public void
exceptionCaught(io.netty.channel.ChannelHandlerContext arg0, Throwable arg1)
exceptionCaught(io.netty.channel.ChannelHandlerContext arg0, Throwable arg1)
exceptionCaught(io.netty.channel.ChannelHandlerContext arg0, Throwable arg1)
exceptionCaught(io.netty.channel.ChannelHandlerContext context, Throwable ex)
exceptionCaught(io.netty.channel.ChannelHandlerContext p_129534_, Throwable arg1)
protected void
a(io.netty.channel.ChannelHandlerContext arg0, rc<?> arg1)
channelRead0(io.netty.channel.ChannelHandlerContext arg0, Packet<?> arg1)
method_10770(io.netty.channel.ChannelHandlerContext arg0, class_2596<?> arg1)
m_zyhzemut(io.netty.channel.ChannelHandlerContext arg0, C_zyjtrjrl<?> arg1)
channelRead0(io.netty.channel.ChannelHandlerContext arg0, Packet<?> arg1)
channelRead0(io.netty.channel.ChannelHandlerContext arg0, Packet<?> arg1)
channelRead0(io.netty.channel.ChannelHandlerContext p_129488_, C_5028_<?> arg1)
private static <T extends PacketListener> void
a(rc<T> arg0, qb arg1)
genericsFtw(Packet<T> arg0, PacketListener arg1)
method_10759(class_2596<T> arg0, class_2547 arg1)
m_rgronykr(C_zyjtrjrl<T> arg0, C_tkgdawqw arg1)
handlePacket(Packet<T> packet, PacketListener listener)
handlePacket(Packet<T> packet, PacketListener listener)
m_129517_(C_5028_<T> p_129518_, C_4986_ p_129519_)
public void
a(qb arg0)
setListener(PacketListener arg0)
method_10763(class_2547 arg0)
m_qqopfmuz(C_tkgdawqw arg0)
setPacketListener(PacketListener listener)
setPacketListener(PacketListener listener)
m_129505_(C_4986_ arg0)
public void
a(rc<?> arg0)
send(Packet<?> arg0)
method_10743(class_2596<?> arg0)
m_egofcujr(C_zyjtrjrl<?> arg0)
send(Packet<?> packet)
send(Packet<?> packet)
m_129512_(C_5028_<?> arg0)
public void
a(rc<?> arg0, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> arg1)
send(Packet<?> arg0, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> arg1)
method_10752(class_2596<?> arg0, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> arg1)
m_fgmkpwtg(C_zyjtrjrl<?> arg0, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> arg1)
send(Packet<?> packet, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> callback)
send(Packet<?> packet, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> callback)
m_129514_(C_5028_<?> p_129516_, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> arg1)
private void
b(rc<?> arg0, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> arg1)
sendPacket(Packet<?> arg0, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> arg1)
method_10764(class_2596<?> arg0, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> arg1)
m_bgcagbfi(C_zyjtrjrl<?> arg0, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> arg1)
sendImmediately(Packet<?> packet, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> callback)
sendImmediately(Packet<?> packet, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> callback)
m_129520_(C_5028_<?> p_129522_, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> arg1)
private void
a(rc<?> arg0, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> arg1, px arg2, px arg3)
doSendPacket(Packet<?> arg0, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> arg1, ConnectionProtocol arg2, ConnectionProtocol arg3)
method_36942(class_2596<?> arg0, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> arg1, class_2539 arg2, class_2539 arg3)
m_vyytglie(C_zyjtrjrl<?> arg0, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> arg1, C_kxdobmrm arg2, C_kxdobmrm arg3)
sendInternal(Packet<?> packet, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> callback, NetworkState packetState, NetworkState currentState)
sendInternal(Packet<?> packet, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> callback, NetworkState arg2, NetworkState arg3)
m_178303_(C_5028_<?> p_178305_, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> p_178306_, C_4965_ p_178307_, C_4965_ arg3)
private ConnectionProtocol
p()
getCurrentProtocol()
method_32306()
m_igiszgub()
getState()
getState()
m_178315_()
private void
q()
flushQueue()
method_10751()
m_akpgjfcu()
sendQueuedPackets()
sendQueuedPackets()
m_129544_()
public void
a()
tick()
method_10754()
m_tulexlec()
tick()
tick()
m_129483_()
protected void
b()
tickSecond()
method_30615()
m_eiltuozj()
updateStats()
updateStats()
m_7073_()
public SocketAddress
c()
getRemoteAddress()
method_10755()
m_sigcqeza()
getAddress()
getAddress()
m_129523_()
public void
a(qk arg0)
disconnect(Component arg0)
method_10747(class_2561 arg0)
m_kbtplepg(C_rdaqiwdt arg0)
disconnect(Text disconnectReason)
disconnect(Text disconnectReason)
m_129507_(C_4996_ arg0)
public boolean
d()
isMemoryConnection()
method_10756()
m_wrxqepoa()
isLocal()
isLocal()
m_129531_()
public PacketFlow
e()
getReceiving()
method_36121()
m_ziivfjpb()
getSide()
getSide()
m_178313_()
public PacketFlow
f()
getSending()
method_36122()
m_kqbvmhdm()
getOppositeSide()
getOppositeSide()
m_178314_()
public static Connection
a(InetSocketAddress arg0, boolean arg1)
connectToServer(InetSocketAddress arg0, boolean arg1)
method_10753(InetSocketAddress arg0, boolean arg1)
m_vkqagjgi(InetSocketAddress arg0, boolean arg1)
connect(InetSocketAddress address, boolean useEpoll)
connect(InetSocketAddress address, boolean useEpoll)
m_178300_(InetSocketAddress p_178301_, boolean p_178302_)
public static Connection
a(SocketAddress arg0)
connectToLocalServer(SocketAddress arg0)
method_10769(SocketAddress arg0)
m_lyptmghi(SocketAddress arg0)
connectLocal(SocketAddress address)
connectLocal(SocketAddress address)
m_129493_(SocketAddress p_129494_)
public void
a(Cipher arg0, Cipher arg1)
setEncryptionKey(Cipher arg0, Cipher arg1)
method_10746(Cipher arg0, Cipher arg1)
m_ebvsfyfg(Cipher arg0, Cipher arg1)
setupEncryption(Cipher decryptionCipher, Cipher encryptionCipher)
setupEncryption(Cipher decryptionCipher, Cipher encryptionCipher)
m_129495_(Cipher p_129497_, Cipher arg1)
public boolean
g()
isEncrypted()
method_10771()
m_urabqmij()
isEncrypted()
isEncrypted()
m_129535_()
public boolean
h()
isConnected()
method_10758()
m_xphjmqxa()
isOpen()
isOpen()
m_129536_()
public boolean
i()
isConnecting()
method_10772()
m_bnpqdudq()
hasChannel()
hasChannel()
m_129537_()
public PacketListener
j()
getPacketListener()
method_10744()
m_bhwloxoc()
getPacketListener()
getPacketListener()
m_129538_()
public Component
k()
getDisconnectedReason()
method_10748()
m_bywquzql()
getDisconnectReason()
getDisconnectReason()
m_129539_()
public void
l()
setReadOnly()
method_10757()
m_cxygpyan()
disableAutoRead()
disableAutoRead()
m_129540_()
public void
a(int arg0, boolean arg1)
setupCompression(int arg0, boolean arg1)
method_10760(int arg0, boolean arg1)
m_uyfxzupt(int arg0, boolean arg1)
setCompressionThreshold(int compressionThreshold, boolean rejectsBadPackets)
setCompressionThreshold(int compressionThreshold, boolean rejectsBadPackets)
m_129484_(int p_182682_, boolean arg1)
public void
m()
handleDisconnection()
method_10768()
m_wlmhzfek()
handleDisconnection()
handleDisconnection()
m_129541_()
public float
n()
getAverageReceivedPackets()
method_10762()
m_jitsmihi()
getAveragePacketsReceived()
getAveragePacketsReceived()
m_129542_()
public float
o()
getAverageSentPackets()
method_10745()
m_uhgukhmf()
getAveragePacketsSent()
getAveragePacketsSent()
m_129543_()