public class PacketEncoder extends io.netty.handler.codec.MessageToByteEncoder<Packet<?>>
Modifier and Type | Field and Description |
---|---|
private static Logger |
LOGGER |
private static Marker |
MARKER |
private NetworkSide |
side |
Constructor and Description |
---|
PacketEncoder(NetworkSide side) |
Modifier and Type | Method and Description |
---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext channelHandlerContext,
Packet<?> packet,
io.netty.buffer.ByteBuf byteBuf) |
acceptOutboundMessage, allocateBuffer, isPreferDirect, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
private static final Logger LOGGER
private static final Marker MARKER
private final NetworkSide side
public PacketEncoder(NetworkSide side)