Interface IPacketListener
-
- All Known Implementing Classes:
CachedChunkedPacketListener,ChunkedPacketListener,ConsumingChunkedPacketListener
public interface IPacketListenerAn packet listeners, allows to handle incoming packets, from some channel, that use the IPacketListenerRegistry in that the listener has to be registerIt will called on all channels, that the registry has register the listener
- See Also:
IPacketListenerRegistry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandle(INetworkChannel channel, IPacket packet)Handles a new incoming packet message.
-
-
-
Method Detail
-
handle
void handle(INetworkChannel channel, IPacket packet) throws java.lang.Exception
Handles a new incoming packet message. The channel and the packet will not null- Parameters:
channel- the channel, from that the message was receivedpacket- the received packet message, which should handle from the listener- Throws:
java.lang.Exception- catch the exception, if the handle throws one
-
-