call

@NotNull
open fun <T : ModelEvent?> call(@NotNull eventClass: @NotNull Class<T>, @NotNull eventSupplier: @NotNull Supplier<T>): @NotNull BetterModelEventBus.Result

Calls an event on the global event bus.

Return

the result of the event call

Since

2.0.0

Parameters

eventClass

the class of the event

eventSupplier

a supplier that creates the event

<T>

the type of the event