@ChannelHandler.Sharable public class NetworkEventFiringHandler extends io.netty.channel.SimpleChannelInboundHandler<FMLProxyPacket>
| Modifier and Type | Field and Description |
|---|---|
private FMLEventChannel |
eventChannel |
| Constructor and Description |
|---|
NetworkEventFiringHandler(FMLEventChannel fmlEventChannel) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
FMLProxyPacket msg) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object evt) |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChangedensureNotSharable, handlerAdded, handlerRemoved, isSharableprivate FMLEventChannel eventChannel
NetworkEventFiringHandler(FMLEventChannel fmlEventChannel)
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
FMLProxyPacket msg)
throws java.lang.Exception
channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<FMLProxyPacket>java.lang.Exceptionpublic void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object evt)
throws java.lang.Exception
userEventTriggered in interface io.netty.channel.ChannelInboundHandleruserEventTriggered in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause)
throws java.lang.Exception
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exception