BetterModelEventBus
interface BetterModelEventBus
A central event bus for handling model-related events.
This interface allows subscribing to and publishing ModelEvents. It serves as a decoupling mechanism between different parts of the engine.
Since
2.0.0
Functions
Link copied to clipboard
abstract fun <T : ModelEvent?> call(@NotNull eventClass: @NotNull Class<out T>, @NotNull eventSupplier: @NotNull Supplier<T>): @NotNull BetterModelEventBus.Result
Publishes an event to all registered subscribers.
Link copied to clipboard
@NotNull
Subscribes a consumer to a specific event type.