BukkitModelEventBus

A Bukkit-specific extension of the BetterModelEventBus.

This interface provides convenience methods for subscribing to events using a Bukkit Plugin instance.

Since

2.0.0

Functions

Link copied to clipboard
abstract fun <T : ModelEvent?> call(p: @NotNull Class<out T>, p1: @NotNull Supplier<T>): @NotNull BetterModelEventBus.Result
Link copied to clipboard
abstract fun <T : ModelEvent?> subscribe(p: @NotNull ModelEventApplication, p1: @NotNull Class<T>, p2: @NotNull Consumer<T>): @NotNull ModelEventListener

@NotNull
open fun <T : ModelEvent?> subscribe(@NotNull plugin: @NotNull Plugin, @NotNull eventClass: @NotNull Class<T>, @NotNull consumer: @NotNull Consumer<T>): @NotNull ModelEventListener
Subscribes a consumer to a specific event type, associated with a Bukkit plugin.