public class NetworkManager
extends SimpleChannelInboundHandler
Modifier and Type | Field and Description |
---|---|
static AttributeKey |
attrKeyConnectionState |
static AttributeKey |
attrKeyReceivable |
static AttributeKey |
attrKeySendable |
static NioEventLoopGroup |
eventLoops |
static Marker |
field_152461_c |
static NetworkStatistics |
field_152462_h |
static Marker |
logMarkerNetwork |
static Marker |
logMarkerPackets |
Constructor and Description |
---|
NetworkManager(boolean p_i45147_1_) |
Modifier and Type | Method and Description |
---|---|
Channel |
channel() |
void |
channelActive(ChannelHandlerContext p_channelActive_1_) |
void |
channelInactive(ChannelHandlerContext p_channelInactive_1_) |
protected void |
channelRead0(ChannelHandlerContext p_channelRead0_1_,
java.lang.Object p_channelRead0_2_) |
protected void |
channelRead0(ChannelHandlerContext p_channelRead0_1_,
Packet p_channelRead0_2_) |
void |
closeChannel(IChatComponent p_150718_1_) |
void |
disableAutoRead() |
void |
enableEncryption(javax.crypto.SecretKey p_150727_1_) |
void |
exceptionCaught(ChannelHandlerContext p_exceptionCaught_1_,
java.lang.Throwable p_exceptionCaught_2_) |
IChatComponent |
getExitMessage() |
INetHandler |
getNetHandler() |
java.net.SocketAddress |
getSocketAddress() |
boolean |
isChannelOpen() |
boolean |
isLocalChannel() |
void |
processReceivedPackets() |
static NetworkManager |
provideLanClient(java.net.InetAddress p_150726_0_,
int p_150726_1_) |
static NetworkManager |
provideLocalClient(java.net.SocketAddress p_150722_0_) |
void |
scheduleOutboundPacket(Packet p_150725_1_,
GenericFutureListener... p_150725_2_) |
void |
setConnectionState(EnumConnectionState p_150723_1_) |
void |
setNetHandler(INetHandler p_150719_1_) |
public static final Marker logMarkerNetwork
public static final Marker logMarkerPackets
public static final Marker field_152461_c
public static final AttributeKey attrKeyConnectionState
public static final AttributeKey attrKeyReceivable
public static final AttributeKey attrKeySendable
public static final NioEventLoopGroup eventLoops
public static final NetworkStatistics field_152462_h
public void channelActive(ChannelHandlerContext p_channelActive_1_) throws java.lang.Exception
java.lang.Exception
public void setConnectionState(EnumConnectionState p_150723_1_)
public void channelInactive(ChannelHandlerContext p_channelInactive_1_)
public void exceptionCaught(ChannelHandlerContext p_exceptionCaught_1_, java.lang.Throwable p_exceptionCaught_2_)
protected void channelRead0(ChannelHandlerContext p_channelRead0_1_, Packet p_channelRead0_2_)
public void setNetHandler(INetHandler p_150719_1_)
public void scheduleOutboundPacket(Packet p_150725_1_, GenericFutureListener... p_150725_2_)
public void processReceivedPackets()
public java.net.SocketAddress getSocketAddress()
public void closeChannel(IChatComponent p_150718_1_)
public boolean isLocalChannel()
public static NetworkManager provideLanClient(java.net.InetAddress p_150726_0_, int p_150726_1_)
public static NetworkManager provideLocalClient(java.net.SocketAddress p_150722_0_)
public void enableEncryption(javax.crypto.SecretKey p_150727_1_)
public boolean isChannelOpen()
public INetHandler getNetHandler()
public IChatComponent getExitMessage()
public void disableAutoRead()
protected void channelRead0(ChannelHandlerContext p_channelRead0_1_, java.lang.Object p_channelRead0_2_)
public Channel channel()