subscribe
abstract fun <T : ModelEvent?> subscribe(@NotNull eventClass: @NotNull Class<T>, @NotNull consumer: @NotNull Consumer<T>)
Subscribes a consumer to a specific event type.
Since
2.0.0
Parameters
eventClass
the class of the event to subscribe to
consumer
the consumer to handle the event
<T>
the type of the event