public class NettyEncoderHandler
extends io.netty.channel.ChannelOutboundHandlerAdapter
Constructor and Description |
---|
NettyEncoderHandler(Player p,
PacketDirection direction,
Version version) |
Modifier and Type | Method and Description |
---|---|
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
NegativityPlayer |
getNegativityPlayer() |
void |
write(io.netty.channel.ChannelHandlerContext ctx,
Object obj,
io.netty.channel.ChannelPromise promise) |
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public NettyEncoderHandler(Player p, PacketDirection direction, Version version)
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in class io.netty.channel.ChannelHandlerAdapter
Exception
public NegativityPlayer getNegativityPlayer()
public void write(io.netty.channel.ChannelHandlerContext ctx, Object obj, io.netty.channel.ChannelPromise promise) throws Exception
write
in interface io.netty.channel.ChannelOutboundHandler
write
in class io.netty.channel.ChannelOutboundHandlerAdapter
Exception