public final class Subscribers extends Object
EventSubscribers.| Modifier and Type | Method and Description |
|---|---|
static <E,T extends E> |
register(net.kyori.event.EventBus<E> bus,
@NonNull Class<T> clazz,
@NonNull net.kyori.event.EventSubscriber<? super T> subscriber)
Registers the given
subscriber with the bus, and returns
a Terminable to encapsulate the subscription. |
public static <E,T extends E> Terminable register(net.kyori.event.EventBus<E> bus, @NonNull Class<T> clazz, @NonNull net.kyori.event.EventSubscriber<? super T> subscriber)
subscriber with the bus, and returns
a Terminable to encapsulate the subscription.E - the event typeT - the subscriber typebus - the event busclazz - the registration classsubscriber - the subscriberCopyright © 2022. All rights reserved.