public final class EventHandlers extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends Cancellable> |
cancel()
Returns a consumer which cancels the event
|
static <T extends Cancellable> |
uncancel()
Returns a consumer which un-cancels the event
|
@Nonnull public static <T extends Cancellable> Consumer<T> cancel()
T - the event type@Nonnull public static <T extends Cancellable> Consumer<T> uncancel()
T - the event typeCopyright © 2020. All rights reserved.