net.minecraft.network

public class Connection

extends io.netty.channel.SimpleChannelInboundHandler<Packet>

ek
net.minecraft.class_1957
net.minecraft.network.Connection
net.minecraft.network.NetworkManager

Field summary

Modifier and TypeField
private static final org.apache.logging.log4j.Logger
g
field_8426
LOGGER
logger
public static final org.apache.logging.log4j.Marker
a
field_8418
MARKER_NETWORK
logMarkerNetwork
public static final org.apache.logging.log4j.Marker
b
field_8419
MARKER_NETWORK_PACKETS
logMarkerPackets
public static final io.netty.util.AttributeKey<NetworkProtocol>
c
field_8421
PROTOCOL
attrKeyConnectionState
public static final LazySupplier<io.netty.channel.nio.NioEventLoopGroup>
d
field_11553
NETWORK_GROUP
CLIENT_NIO_EVENTLOOP
public static final LazySupplier<io.netty.channel.epoll.EpollEventLoopGroup>
e
field_11554
EPOLL_NETWORK_GROUP
CLIENT_EPOLL_EVENTLOOP
public static final LazySupplier<io.netty.channel.local.LocalEventLoopGroup>
f
field_11555
LOCAL_NETWORK_GROUP
CLIENT_LOCAL_EVENTLOOP
private final PacketFlow
h
field_11556
flow
direction
private final Queue<Connection$QueuedPacket>
i
field_8429
sendQueue
outboundPacketsQueue
private final ReentrantReadWriteLock
j
field_11557
lock
readWriteLock
private io.netty.channel.Channel
k
field_8430
channel
channel
private SocketAddress
l
field_8431
address
socketAddress
private PacketHandler
m
field_8432
listener
packetListener
private Text
n
field_8434
disconnectReason
terminationReason
private boolean
o
field_8435
encrypted
isEncrypted
private boolean
p
field_11558
disconnected
disconnected

Constructor summary

ModifierConstructor
public (PacketFlow flow)

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)
public void
a(el arg0)
method_7392(class_1962 arg0)
setProtocol(NetworkProtocol protocol)
setConnectionState(EnumConnectionState newState)
public void
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)
protected void
a(io.netty.channel.ChannelHandlerContext arg0, ff arg1)
method_7396(io.netty.channel.ChannelHandlerContext arg0, class_700 arg1)
channelRead0(io.netty.channel.ChannelHandlerContext ctx, Packet packet)
channelRead0(io.netty.channel.ChannelHandlerContext arg0, Packet arg1)
public void
a(ep arg0)
method_7393(class_701 arg0)
setListener(PacketHandler listener)
setNetHandler(INetHandler handler)
public void
a(ff arg0)
method_10588(class_700 arg0)
send(Packet packet)
sendPacket(Packet packetIn)
public void
a(ff arg0, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> arg1, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>... arg2)
method_10589(class_700 arg0, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> arg1, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>... arg2)
send(Packet packet, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>... listeners)
sendPacket(Packet packetIn, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>... listeners)
private void
a(ff arg0, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>[] arg1)
method_7401(class_700 arg0, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>[] arg1)
doSend(Packet packet, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>[] listeners)
dispatchPacket(Packet inPacket, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>[] futureListeners)
private void
m()
method_7407()
flushQueue()
flushOutboundQueue()
public void
a()
method_7390()
tick()
processReceivedPackets()
public SocketAddress
b()
method_7400()
getAddress()
getRemoteAddress()
public void
a(eu arg0)
method_7394(class_1982 arg0)
disconnect(Text reason)
closeChannel(IChatComponent message)
public boolean
c()
method_7402()
isLocal()
isLocalChannel()
public void
a(SecretKey arg0)
method_7399(SecretKey arg0)
setupEncryption(SecretKey key)
enableEncryption(SecretKey key)
public boolean
g()
method_7403()
isConnected()
isChannelOpen()
public boolean
h()
method_10592()
isConnecting()
hasNoChannel()
public PacketHandler
i()
method_7404()
getListener()
getNetHandler()
public Text
j()
method_7405()
getDisconnectReason()
getExitMessage()
public void
k()
method_7406()
disableAutoRead()
disableAutoRead()
public void
a(int arg0)
method_10587(int arg0)
setCompressionThreshold(int threshold)
setCompressionTreshold(int treshold)
public void
l()
method_10593()
handleDisconnection()
checkDisconnected()
public static Connection
a(InetAddress arg0, int arg1, boolean arg2)
method_10590(InetAddress arg0, int arg1, boolean arg2)
connect(InetAddress address, int port, boolean epoll)
createNetworkManagerAndConnect(InetAddress address, int serverPort, boolean useNativeTransport)
public static Connection
a(SocketAddress arg0)
method_7398(SocketAddress arg0)
connectLocal(SocketAddress address)
provideLocalClient(SocketAddress address)
public boolean
f()
method_10591()
isEncrypted()
getIsencrypted()