Package com.germancoding.packetapi
Interface PacketListener
-
- All Known Implementing Classes:
DefaultPacketListener
public interface PacketListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onConnectionClosed(PacketHandler handler, java.lang.String message, boolean expected)
void
onConnectionFailed(PacketHandler handler, java.lang.Throwable exception)
void
onPacketReceived(PacketHandler handler, Packet packet)
void
onUnknownPacketReceived(PacketHandler handler, short id)
-
-
-
Method Detail
-
onPacketReceived
void onPacketReceived(PacketHandler handler, Packet packet)
-
onConnectionFailed
void onConnectionFailed(PacketHandler handler, java.lang.Throwable exception)
-
onConnectionClosed
void onConnectionClosed(PacketHandler handler, java.lang.String message, boolean expected)
-
onUnknownPacketReceived
void onUnknownPacketReceived(PacketHandler handler, short id)
-
-