Package com.mewna.catnip.shard.event
Interface EventType<T>
- Type Parameters:
T
- Type of the event fired.
- All Known Implementing Classes:
EventTypeImpl
public interface EventType<T>
Marker for statically validating event types on handlers.
- Since:
- 10/6/18.
- Author:
- natanbc
-
Method Summary
-
Method Details
-
key
Key used in the event bus.- Returns:
- Key where this event is fired in the bus.
-
payloadClass
Class of the event payload.- Returns:
- Class of the payload fired for this event.
-