register

@NotNull
open fun register(@NotNull consumer: @NotNull Consumer<in T>): @NotNull EventRegistry<T>