net.minecraft.network

public class Connection

extends io.netty.channel.SimpleChannelInboundHandler

ej
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
i
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 org.apache.logging.log4j.Marker
c
field_8420
f_17672652
logMarkerStat
public static final io.netty.util.AttributeKey
d
field_8421
PROTOCOL
attrKeyConnectionState
public static final io.netty.util.AttributeKey
e
field_8422
RECEIVABLE_PACKETS
attrKeyReceivable
public static final io.netty.util.AttributeKey
f
field_8423
SENDABLE_PACKETS
attrKeySendable
public static final io.netty.channel.nio.NioEventLoopGroup
g
field_8424
NETWORK_GROUP
eventLoops
public static final C_37712101
h
field_8425
f_98191757
STATISTICS
private final boolean
j
field_8427
isClient
isClientSide
private final Queue
k
field_8428
readQueue
receivedPacketsQueue
private final Queue
l
field_8429
sendQueue
outboundPacketsQueue
private io.netty.channel.Channel
m
field_8430
channel
channel
private SocketAddress
n
field_8431
address
socketAddress
private PacketHandler
o
field_8432
listener
packetListener
private NetworkProtocol
p
field_8433
protocol
connectionState
private Text
q
field_8434
disconnectReason
terminationReason
private boolean
r
field_8435
f_51676404
isEncrypted

Constructor summary

ModifierConstructor
public (boolean isClient)

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(eo 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, ft 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(fb arg0)
method_7393(class_701 arg0)
setListener(PacketHandler listener)
setNetHandler(INetHandler handler)
public void
a(ft arg0, io.netty.util.concurrent.GenericFutureListener... arg1)
method_7395(class_700 arg0, io.netty.util.concurrent.GenericFutureListener... arg1)
send(Packet packet, io.netty.util.concurrent.GenericFutureListener... listeners)
scheduleOutboundPacket(Packet inPacket, io.netty.util.concurrent.GenericFutureListener... futureListeners)
private void
b(ft arg0, io.netty.util.concurrent.GenericFutureListener[] arg1)
method_7401(class_700 arg0, io.netty.util.concurrent.GenericFutureListener[] arg1)
doSend(Packet packet, io.netty.util.concurrent.GenericFutureListener[] listeners)
dispatchPacket(Packet inPacket, io.netty.util.concurrent.GenericFutureListener[] futureListeners)
private void
i()
method_7407()
flushQueue()
flushOutboundQueue()
public void
a()
method_7390()
tick()
processReceivedPackets()
public SocketAddress
b()
method_7400()
getAddress()
getRemoteAddress()
public void
a(fj 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
d()
method_7403()
isConnected()
isChannelOpen()
public PacketHandler
e()
method_7404()
getListener()
getNetHandler()
public Text
f()
method_7405()
getDisconnectReason()
getExitMessage()
public void
g()
method_7406()
disableAutoRead()
disableAutoRead()
public static Connection
a(InetAddress arg0, int arg1)
method_7397(InetAddress arg0, int arg1)
connect(InetAddress address, int port)
provideLanClient(InetAddress arg0, int arg1)
public static Connection
a(SocketAddress arg0)
method_7398(SocketAddress arg0)
connectLocal(SocketAddress address)
provideLocalClient(SocketAddress arg0)