Interface PacketHandler<C>
public interface PacketHandler<C>
For advanced users only! You shouldn't play with this unless you know what you're doing.
-
Method Summary
-
Method Details
-
handle
Called when a registered packet has been seen.- Parameters:
ctx- the channel handler context of the connectionpacket- the packet instanceserverbound- if the packet is serverbound- Returns:
- the packet it should forward. Can be null or a different packet / instance
-