public class SpongeEncodeHandler extends io.netty.handler.codec.MessageToByteEncoder<Object> implements ViaHandler
Constructor and Description |
---|
SpongeEncodeHandler(UserConnection info,
io.netty.handler.codec.MessageToByteEncoder<?> minecraftEncoder) |
Modifier and Type | Method and Description |
---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
Object o,
io.netty.buffer.ByteBuf bytebuf) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
void |
transform(io.netty.buffer.ByteBuf bytebuf) |
acceptOutboundMessage, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public SpongeEncodeHandler(UserConnection info, io.netty.handler.codec.MessageToByteEncoder<?> minecraftEncoder)
protected void encode(io.netty.channel.ChannelHandlerContext ctx, Object o, io.netty.buffer.ByteBuf bytebuf) throws Exception
public void transform(io.netty.buffer.ByteBuf bytebuf) throws Exception
transform
in interface ViaHandler
Exception
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface ViaHandler
exceptionCaught
in class io.netty.channel.ChannelHandlerAdapter
Exception
Copyright © 2016–2021. All rights reserved.