@Deprecated public interface PacketHandler
| Modifier and Type | Method and Description |
|---|---|
Object |
handle(io.netty.channel.ChannelHandlerContext ctx,
Object packet,
boolean serverbound)
Deprecated.
Called when a registered packet has been seen.
|
Object handle(io.netty.channel.ChannelHandlerContext ctx, Object packet, boolean serverbound)
ctx - the channel handler context of the connectionpacket - the packet instanceserverbound - if the packet is serverbound