net.minecraft.network

public class Connection

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

vi
net.minecraft.network.Connection
net.minecraft.class_2535
net.minecraft.network.ClientConnection
net.minecraft.network.NetworkManager

Field summary

Modifier and TypeField
private static final float
h
AVERAGE_PACKETS_SMOOTHING
field_33280
CURRENT_PACKET_COUNTER_WEIGHT
private static final org.slf4j.Logger
i
LOGGER
field_11642
LOGGER
public static final org.slf4j.Marker
a
ROOT_MARKER
field_11641
NETWORK_MARKER
public static final org.slf4j.Marker
b
PACKET_MARKER
field_11639
NETWORK_PACKETS_MARKER
public static final org.slf4j.Marker
c
PACKET_RECEIVED_MARKER
field_36379
PACKET_RECEIVED_MARKER
public static final org.slf4j.Marker
d
PACKET_SENT_MARKER
field_36380
PACKET_SENT_MARKER
public static final Supplier<io.netty.channel.nio.NioEventLoopGroup>
e
NETWORK_WORKER_GROUP
field_11650
CLIENT_IO_GROUP
public static final Supplier<io.netty.channel.epoll.EpollEventLoopGroup>
f
NETWORK_EPOLL_WORKER_GROUP
field_11657
EPOLL_CLIENT_IO_GROUP
public static final Supplier<io.netty.channel.DefaultEventLoopGroup>
g
LOCAL_WORKER_GROUP
field_11649
LOCAL_CLIENT_IO_GROUP
private static final ProtocolInfo<ServerHandshakePacketListener>
j
INITIAL_PROTOCOL
field_48514
C2S_HANDSHAKE_STATE
private final PacketFlow
k
receiving
field_11643
side
private volatile boolean
l
sendLoginDisconnect
field_48515
duringLogin
private final Queue<Consumer<Connection>>
m
pendingActions
field_45668
queuedTasks
private io.netty.channel.Channel
n
channel
field_11651
channel
private SocketAddress
o
address
field_11645
address
private volatile PacketListener
p
disconnectListener
field_45669
prePlayStateListener
private volatile PacketListener
q
packetListener
field_11652
packetListener
private DisconnectionDetails
r
disconnectionDetails
field_52180
disconnectionInfo
private boolean
s
encrypted
field_11647
encrypted
private boolean
t
disconnectionHandled
field_11646
disconnected
private int
u
receivedPackets
field_11658
packetsReceivedCounter
private int
v
sentPackets
field_11656
packetsSentCounter
private float
w
averageReceivedPackets
field_11654
averagePacketsReceived
private float
x
averageSentPackets
field_11653
averagePacketsSent
private int
y
tickCount
field_11655
ticks
private boolean
z
handlingFault
field_11640
errored
private volatile DisconnectionDetails
A
delayedDisconnect
field_44972
pendingDisconnectionInfo
BandwidthDebugMonitor
B
bandwidthDebugMonitor
field_45955
packetSizeLogger

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)
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)
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)
protected void
a(io.netty.channel.ChannelHandlerContext arg0, yw<?> 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)
private static <T extends PacketListener> void
a(yw<T> arg0, vv arg1)
genericsFtw(Packet<T> arg0, PacketListener arg1)
method_10759(class_2596<T> arg0, class_2547 arg1)
handlePacket(Packet<T> packet, PacketListener listener)
private void
b(vx<?> arg0, vv arg1)
validateListener(ProtocolInfo<?> arg0, PacketListener arg1)
method_56332(class_9127<?> arg0, class_2547 arg1)
setPacketListener(NetworkState<?> state, PacketListener listener)
private static void
a(io.netty.channel.ChannelFuture arg0)
syncAfterConfigurationChange(io.netty.channel.ChannelFuture arg0)
method_59851(io.netty.channel.ChannelFuture arg0)
syncUninterruptibly(io.netty.channel.ChannelFuture future)
public <T extends PacketListener> void
a(vx<T> arg0, T arg1)
setupInboundProtocol(ProtocolInfo<T> arg0, T arg1)
method_56330(class_9127<T> arg0, T arg1)
transitionInbound(NetworkState<T> state, T packetListener)
public void
a(vx<?> arg0)
setupOutboundProtocol(ProtocolInfo<?> arg0)
method_56329(class_9127<?> arg0)
transitionOutbound(NetworkState<?> newState)
public void
a(vv arg0)
setListenerForServerboundHandshake(PacketListener arg0)
method_52912(class_2547 arg0)
setInitialPacketListener(PacketListener packetListener)
public void
a(String arg0, int arg1, ajq arg2)
initiateServerboundStatusConnection(String arg0, int arg1, ClientStatusPacketListener arg2)
method_52903(String arg0, int arg1, class_2921 arg2)
connect(String address, int port, ClientQueryPacketListener listener)
public void
a(String arg0, int arg1, aiq arg2)
initiateServerboundPlayConnection(String arg0, int arg1, ClientLoginPacketListener arg2)
method_52902(String arg0, int arg1, class_2896 arg2)
connect(String address, int port, ClientLoginPacketListener listener)
public <S extends ServerboundPacketListener, C extends ClientboundPacketListener> void
a(String arg0, int arg1, vx<S> arg2, vx<C> arg3, C arg4, boolean arg5)
initiateServerboundPlayConnection(String arg0, int arg1, ProtocolInfo<S> arg2, ProtocolInfo<C> arg3, C arg4, boolean arg5)
method_56326(String arg0, int arg1, class_9127<S> arg2, class_9127<C> arg3, C arg4, boolean arg5)
connect(String address, int port, NetworkState<S> outboundState, NetworkState<C> inboundState, C prePlayStateListener, boolean transfer)
private <S extends ServerboundPacketListener, C extends ClientboundPacketListener> void
a(String arg0, int arg1, vx<S> arg2, vx<C> arg3, C arg4, aik arg5)
initiateServerboundConnection(String arg0, int arg1, ProtocolInfo<S> arg2, ProtocolInfo<C> arg3, C arg4, ClientIntent arg5)
method_52904(String arg0, int arg1, class_9127<S> arg2, class_9127<C> arg3, C arg4, class_8592 arg5)
connect(String address, int port, NetworkState<S> outboundState, NetworkState<C> inboundState, C prePlayStateListener, ConnectionIntent intent)
public void
a(yw<?> arg0)
send(Packet<?> arg0)
method_10743(class_2596<?> arg0)
send(Packet<?> packet)
public void
a(yw<?> arg0, vw arg1)
send(Packet<?> arg0, PacketSendListener arg1)
method_10752(class_2596<?> arg0, class_7648 arg1)
send(Packet<?> packet, PacketCallbacks callbacks)
public void
a(yw<?> arg0, vw arg1, boolean arg2)
send(Packet<?> arg0, PacketSendListener arg1, boolean arg2)
method_52906(class_2596<?> arg0, class_7648 arg1, boolean arg2)
send(Packet<?> packet, PacketCallbacks callbacks, boolean flush)
public void
a(Consumer<vi> arg0)
runOnceConnected(Consumer<Connection> arg0)
method_52905(Consumer<class_2535> arg0)
submit(Consumer<ClientConnection> task)
private void
b(yw<?> arg0, vw arg1, boolean arg2)
sendPacket(Packet<?> arg0, PacketSendListener arg1, boolean arg2)
method_10764(class_2596<?> arg0, class_7648 arg1, boolean arg2)
sendImmediately(Packet<?> packet, PacketCallbacks callbacks, boolean flush)
private void
c(yw<?> arg0, vw arg1, boolean arg2)
doSendPacket(Packet<?> arg0, PacketSendListener arg1, boolean arg2)
method_36942(class_2596<?> arg0, class_7648 arg1, boolean arg2)
sendInternal(Packet<?> packet, PacketCallbacks callbacks, boolean flush)
public void
a()
flushChannel()
method_52915()
flush()
private void
q()
flush()
method_52918()
flushInternal()
private void
r()
flushQueue()
method_10751()
handleQueuedTasks()
public void
b()
tick()
method_10754()
tick()
protected void
c()
tickSecond()
method_30615()
updateStats()
public SocketAddress
d()
getRemoteAddress()
method_10755()
getAddress()
public String
a(boolean arg0)
getLoggableAddress(boolean arg0)
method_52909(boolean arg0)
getAddressAsString(boolean logIps)
public void
a(wp arg0)
disconnect(Component arg0)
method_10747(class_2561 arg0)
disconnect(Text disconnectReason)
public void
a(vk arg0)
disconnect(DisconnectionDetails arg0)
method_60924(class_9812 arg0)
disconnect(DisconnectionInfo disconnectionInfo)
public boolean
e()
isMemoryConnection()
method_10756()
isLocal()
public PacketFlow
f()
getReceiving()
method_36121()
getSide()
public PacketFlow
g()
getSending()
method_36122()
getOppositeSide()
public static Connection
a(InetSocketAddress arg0, boolean arg1, bne arg2)
connectToServer(InetSocketAddress arg0, boolean arg1, LocalSampleLogger arg2)
method_10753(InetSocketAddress arg0, boolean arg1, class_9191 arg2)
connect(InetSocketAddress address, boolean useEpoll, MultiValueDebugSampleLogImpl packetSizeLog)
public static io.netty.channel.ChannelFuture
a(InetSocketAddress arg0, boolean arg1, vi arg2)
connect(InetSocketAddress arg0, boolean arg1, Connection arg2)
method_52271(InetSocketAddress arg0, boolean arg1, class_2535 arg2)
connect(InetSocketAddress address, boolean useEpoll, ClientConnection connection)
private static String
b(boolean arg0)
outboundHandlerName(boolean arg0)
method_56333(boolean arg0)
getOutboundHandlerName(boolean sendingSide)
private static String
c(boolean arg0)
inboundHandlerName(boolean arg0)
method_56334(boolean arg0)
getInboundHandlerName(boolean receivingSide)
public void
a(io.netty.channel.ChannelPipeline arg0)
configurePacketHandler(io.netty.channel.ChannelPipeline arg0)
method_53859(io.netty.channel.ChannelPipeline arg0)
addFlowControlHandler(io.netty.channel.ChannelPipeline pipeline)
public static void
a(io.netty.channel.ChannelPipeline arg0, yx arg1, boolean arg2, vb arg3)
configureSerialization(io.netty.channel.ChannelPipeline arg0, PacketFlow arg1, boolean arg2, BandwidthDebugMonitor arg3)
method_48311(io.netty.channel.ChannelPipeline arg0, class_2598 arg1, boolean arg2, class_8762 arg3)
addHandlers(io.netty.channel.ChannelPipeline pipeline, NetworkSide side, boolean local, PacketSizeLogger packetSizeLogger)
private static io.netty.channel.ChannelOutboundHandler
d(boolean arg0)
createFrameEncoder(boolean arg0)
method_59853(boolean arg0)
getPrepender(boolean local)
private static io.netty.channel.ChannelInboundHandler
a(vb arg0, boolean arg1)
createFrameDecoder(BandwidthDebugMonitor arg0, boolean arg1)
method_59852(class_8762 arg0, boolean arg1)
getSplitter(PacketSizeLogger packetSizeLogger, boolean local)
public static void
a(io.netty.channel.ChannelPipeline arg0, yx arg1)
configureInMemoryPipeline(io.netty.channel.ChannelPipeline arg0, PacketFlow arg1)
method_52911(io.netty.channel.ChannelPipeline arg0, class_2598 arg1)
addLocalValidator(io.netty.channel.ChannelPipeline pipeline, NetworkSide side)
public static Connection
a(SocketAddress arg0)
connectToLocalServer(SocketAddress arg0)
method_10769(SocketAddress arg0)
connectLocal(SocketAddress address)
public void
a(Cipher arg0, Cipher arg1)
setEncryptionKey(Cipher arg0, Cipher arg1)
method_10746(Cipher arg0, Cipher arg1)
setupEncryption(Cipher decryptionCipher, Cipher encryptionCipher)
public boolean
h()
isEncrypted()
method_10771()
isEncrypted()
public boolean
i()
isConnected()
method_10758()
isOpen()
public boolean
j()
isConnecting()
method_10772()
isChannelAbsent()
public PacketListener
k()
getPacketListener()
method_10744()
getPacketListener()
public DisconnectionDetails
l()
getDisconnectionDetails()
method_60926()
method_60926()
public void
m()
setReadOnly()
method_10757()
tryDisableAutoRead()
public void
a(int arg0, boolean arg1)
setupCompression(int arg0, boolean arg1)
method_10760(int arg0, boolean arg1)
setCompressionThreshold(int compressionThreshold, boolean rejectsBadPackets)
public void
n()
handleDisconnection()
method_10768()
handleDisconnection()
public float
o()
getAverageReceivedPackets()
method_10762()
getAveragePacketsReceived()
public float
p()
getAverageSentPackets()
method_10745()
getAveragePacketsSent()
public void
a(bne arg0)
setBandwidthLogger(LocalSampleLogger arg0)
method_53505(class_9191 arg0)
resetPacketSizeLog(MultiValueDebugSampleLogImpl log)