EventUtil

@ApiStatus.Internal
class EventUtil

Utility class for dispatching model events.

This class provides helper methods to call events on the BetterModelEventBus and handle cancellable events conveniently.

Since

2.0.0

Functions

Link copied to clipboard
open fun call(@NotNull event: @NotNull ModelEvent): Boolean
Calls an event and checks if it was cancelled.
@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.