net.minecraft.network

public class Connection

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

gw
net.minecraft.class_1957
net.minecraft.network.Connection
net.minecraft.network.NetworkManager
net.minecraft.network.NetworkManager

Field summary

Modifier and TypeField
private static final org.apache.logging.log4j.Logger
g
field_8426
LOGGER
field_150735_g
LOGGER
public static final org.apache.logging.log4j.Marker
a
field_8418
MARKER_NETWORK
field_150740_a
NETWORK_MARKER
public static final org.apache.logging.log4j.Marker
b
field_8419
MARKER_NETWORK_PACKETS
field_150738_b
NETWORK_PACKETS_MARKER
public static final io.netty.util.AttributeKey<NetworkProtocol>
c
field_8421
PROTOCOL
field_150739_c
PROTOCOL_ATTRIBUTE_KEY
public static final LazySupplier<io.netty.channel.nio.NioEventLoopGroup>
d
field_11553
NETWORK_GROUP
field_179295_d
CLIENT_NIO_EVENTLOOP
public static final LazySupplier<io.netty.channel.epoll.EpollEventLoopGroup>
e
field_11554
EPOLL_NETWORK_GROUP
field_181125_e
CLIENT_EPOLL_EVENTLOOP
public static final LazySupplier<io.netty.channel.local.LocalEventLoopGroup>
f
field_11555
LOCAL_NETWORK_GROUP
field_179296_e
CLIENT_LOCAL_EVENTLOOP
private final PacketFlow
h
field_11556
flow
field_179294_g
direction
private final Queue<Connection$QueuedPacket>
i
field_8429
sendQueue
field_150745_j
outboundPacketsQueue
private final ReentrantReadWriteLock
j
field_11557
lock
field_181680_j
readWriteLock
private io.netty.channel.Channel
k
field_8430
channel
field_150746_k
channel
private SocketAddress
l
field_8431
address
field_150743_l
socketAddress
private PacketHandler
m
field_8432
listener
field_150744_m
packetListener
private Text
n
field_8434
disconnectReason
field_150742_o
terminationReason
private boolean
o
field_8435
encrypted
field_152463_r
isEncrypted
private boolean
p
field_11558
disconnected
field_179297_n
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)
channelActive(io.netty.channel.ChannelHandlerContext arg0)
public void
a(gx arg0)
method_7392(class_1962 arg0)
setProtocol(NetworkProtocol protocol)
func_150723_a(EnumConnectionState arg0)
setConnectionState(EnumConnectionState newState)
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)
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)
protected void
a(io.netty.channel.ChannelHandlerContext arg0, ht<?> 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)
channelRead0(io.netty.channel.ChannelHandlerContext arg0, Packet<?> arg1)
public void
a(hb arg0)
method_7393(class_701 arg0)
setListener(PacketHandler listener)
func_150719_a(INetHandler arg0)
setNetHandler(INetHandler handler)
public void
a(ht<?> arg0)
method_10588(class_700<?> arg0)
send(Packet<?> packet)
func_179290_a(Packet<?> arg0)
sendPacket(Packet<?> packetIn)
public void
a(ht<?> 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)
func_179288_a(Packet<?> 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)
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(ht<?> 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)
func_150732_b(Packet<?> arg0, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>[] arg1)
dispatchPacket(Packet<?> inPacket, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>>[] futureListeners)
private void
m()
method_7407()
flushQueue()
func_150733_h()
flushOutboundQueue()
public void
a()
method_7390()
tick()
func_74428_b()
processReceivedPackets()
public SocketAddress
b()
method_7400()
getAddress()
func_74430_c()
getRemoteAddress()
public void
a(hh arg0)
method_7394(class_1982 arg0)
disconnect(Text reason)
func_150718_a(ITextComponent arg0)
closeChannel(ITextComponent message)
public boolean
c()
method_7402()
isLocal()
func_150731_c()
isLocalChannel()
public void
a(SecretKey arg0)
method_7399(SecretKey arg0)
setupEncryption(SecretKey key)
func_150727_a(SecretKey arg0)
enableEncryption(SecretKey key)
public boolean
g()
method_7403()
isConnected()
func_150724_d()
isChannelOpen()
public boolean
h()
method_10592()
isConnecting()
func_179291_h()
hasNoChannel()
public PacketHandler
i()
method_7404()
getListener()
func_150729_e()
getNetHandler()
public Text
j()
method_7405()
getDisconnectReason()
func_150730_f()
getExitMessage()
public void
k()
method_7406()
disableAutoRead()
func_150721_g()
disableAutoRead()
public void
a(int arg0)
method_10587(int arg0)
setCompressionThreshold(int threshold)
func_179289_a(int arg0)
setCompressionThreshold(int threshold)
public void
l()
method_10593()
handleDisconnection()
func_179293_l()
handleDisconnection()
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)
func_181124_a(InetAddress arg0, int arg1, boolean arg2)
createNetworkManagerAndConnect(InetAddress address, int serverPort, boolean useNativeTransport)
public static Connection
a(SocketAddress arg0)
method_7398(SocketAddress arg0)
connectLocal(SocketAddress address)
func_150722_a(SocketAddress arg0)
provideLocalClient(SocketAddress address)
public boolean
f()
method_10591()
isEncrypted()
func_179292_f()
isEncrypted()