Package devs.beer.nativepackets.api
Interface PacketListener<E>
- Type Parameters:
E- dispatch event type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback invoked for a listener-bearing packet.
-
Method Summary
-
Method Details
-
onPacket
Handles one dispatch-scoped event or frame.- Parameters:
event- current event- Throws:
Exception- when listener processing fails
-