net.minecraft.network

public class Connection

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

me
net.minecraft.network.Connection
net.minecraft.class_2535
net.minecraft.network.ClientConnection
net.minecraft.network.NetworkManager
net.minecraft.server.v1_16_R1.NetworkManager

Field summary

Modifier and TypeField
private static final org.apache.logging.log4j.Logger
g
LOGGER
field_11642
LOGGER
field_150735_g
public static final org.apache.logging.log4j.Marker
a
ROOT_MARKER
field_11641
MARKER_NETWORK
field_150740_a
public static final org.apache.logging.log4j.Marker
b
PACKET_MARKER
field_11639
MARKER_NETWORK_PACKETS
field_150738_b
public static final io.netty.util.AttributeKey<ConnectionProtocol>
c
ATTRIBUTE_PROTOCOL
field_11648
ATTR_KEY_PROTOCOL
field_150739_c
public static final LazyLoadedValue<io.netty.channel.nio.NioEventLoopGroup>
d
NETWORK_WORKER_GROUP
field_11650
CLIENT_IO_GROUP
field_179295_d
public static final LazyLoadedValue<io.netty.channel.epoll.EpollEventLoopGroup>
e
NETWORK_EPOLL_WORKER_GROUP
field_11657
CLIENT_IO_GROUP_EPOLL
field_181125_e
public static final LazyLoadedValue<io.netty.channel.DefaultEventLoopGroup>
f
LOCAL_WORKER_GROUP
field_11649
CLIENT_IO_GROUP_LOCAL
field_179296_e
private final PacketFlow
h
receiving
field_11643
side
field_179294_g
private final Queue<Connection$PacketHolder>
i
queue
field_11644
packetQueue
field_150745_j
packetQueue
private io.netty.channel.Channel
j
channel
field_11651
channel
field_150746_k
channel
private SocketAddress
k
address
field_11645
address
field_150743_l
socketAddress
private PacketListener
l
packetListener
field_11652
packetListener
field_150744_m
packetListener
private Component
m
disconnectedReason
field_11660
disconnectReason
field_150742_o
private boolean
n
encrypted
field_11647
encrypted
field_152463_r
private boolean
o
disconnectionHandled
field_11646
disconnected
field_179297_n
private int
p
receivedPackets
field_11658
packetsReceivedCounter
field_211394_q
private int
q
sentPackets
field_11656
packetsSentCounter
field_211395_r
private float
r
averageReceivedPackets
field_11654
avgPacketsReceived
field_211396_s
private float
s
averageSentPackets
field_11653
avgPacketsSent
field_211397_t
private int
t
tickCount
field_11655
ticks
field_211398_u
private boolean
u
handlingFault
field_11640
errored
field_211399_v

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 arg0)
channelActive(io.netty.channel.ChannelHandlerContext arg0)
public void
a(mf arg0)
setProtocol(ConnectionProtocol arg0)
method_10750(class_2539 arg0)
setState(NetworkState state)
func_150723_a(ProtocolType arg0)
setProtocol(EnumProtocol 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 arg0)
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 arg0, Throwable arg1)
exceptionCaught(io.netty.channel.ChannelHandlerContext arg0, Throwable arg1)
protected void
a(io.netty.channel.ChannelHandlerContext arg0, ni<?> arg1)
channelRead0(io.netty.channel.ChannelHandlerContext arg0, Packet<?> arg1)
method_10770(io.netty.channel.ChannelHandlerContext arg0, class_2596<?> arg1)
channelRead0(io.netty.channel.ChannelHandlerContext arg0, Packet<?> arg1)
channelRead0(io.netty.channel.ChannelHandlerContext arg0, IPacket<?> arg1)
private static <T extends PacketListener> void
a(ni<T> arg0, mj arg1)
genericsFtw(Packet<T> arg0, PacketListener arg1)
method_10759(class_2596<T> arg0, class_2547 arg1)
handlePacket(Packet<T> packet, PacketListener listener)
func_197664_a(IPacket<T> arg0, INetHandler arg1)
public void
a(mj arg0)
setListener(PacketListener arg0)
method_10763(class_2547 arg0)
setPacketListener(PacketListener listener)
func_150719_a(INetHandler arg0)
setPacketListener(PacketListener arg0)
public void
a(ni<?> arg0)
send(Packet<?> arg0)
method_10743(class_2596<?> arg0)
send(Packet<?> packet)
func_179290_a(IPacket<?> arg0)
sendPacket(Packet<?> arg0)
public void
a(ni<?> 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)
send(Packet<?> packet, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> callback)
func_201058_a(IPacket<?> 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)
private void
b(ni<?> 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)
sendImmediately(Packet<?> packet, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> callback)
func_150732_b(IPacket<?> arg0, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> arg1)
private void
o()
flushQueue()
method_10751()
sendQueuedPackets()
func_150733_h()
public void
a()
tick()
method_10754()
tick()
func_74428_b()
public SocketAddress
b()
getRemoteAddress()
method_10755()
getAddress()
func_74430_c()
getSocketAddress()
public void
a(mr arg0)
disconnect(Component arg0)
method_10747(class_2561 arg0)
disconnect(Text disconnectReason)
func_150718_a(ITextComponent arg0)
close(IChatBaseComponent arg0)
public boolean
c()
isMemoryConnection()
method_10756()
isLocal()
func_150731_c()
isLocal()
public void
a(SecretKey arg0)
setEncryptionKey(SecretKey arg0)
method_10746(SecretKey arg0)
setupEncryption(SecretKey arg0)
func_150727_a(SecretKey arg0)
public boolean
g()
isConnected()
method_10758()
isOpen()
func_150724_d()
isConnected()
public boolean
h()
isConnecting()
method_10772()
hasChannel()
func_179291_h()
public PacketListener
i()
getPacketListener()
method_10744()
getPacketListener()
func_150729_e()
public Component
j()
getDisconnectedReason()
method_10748()
getDisconnectReason()
func_150730_f()
public void
k()
setReadOnly()
method_10757()
disableAutoRead()
func_150721_g()
stopReading()
public void
a(int arg0)
setupCompression(int arg0)
method_10760(int arg0)
setCompressionThreshold(int compressionThreshold)
func_179289_a(int arg0)
setCompressionLevel(int arg0)
public void
l()
handleDisconnection()
method_10768()
handleDisconnection()
func_179293_l()
handleDisconnection()
public static Connection
a(InetAddress arg0, int arg1, boolean arg2)
connectToServer(InetAddress arg0, int arg1, boolean arg2)
method_10753(InetAddress arg0, int arg1, boolean arg2)
connect(InetAddress address, int port, boolean shouldUseNativeTransport)
func_181124_a(InetAddress arg0, int arg1, boolean arg2)
public static Connection
a(SocketAddress arg0)
connectToLocalServer(SocketAddress arg0)
method_10769(SocketAddress arg0)
connectLocal(SocketAddress address)
func_150722_a(SocketAddress arg0)
public boolean
f()
isEncrypted()
method_10771()
isEncrypted()
func_179292_f()
public float
m()
getAverageReceivedPackets()
method_10762()
getAveragePacketsReceived()
func_211393_m()
public float
n()
getAverageSentPackets()
method_10745()
getAveragePacketsSent()
func_211390_n()