-
- All Implemented Interfaces:
public final class BukkitEventsKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Event> Uniton(Events<Event> $self, EventPriority priority, Boolean ignoreCancelled, SuspendFunction1<T, Unit> block)Register event handler. final static <T extends Event, Cancellable> UnitcancelIf(Events<Event> $self, EventPriority priority, SuspendFunction1<T, Boolean> block)Register cancelling event handler. final static <T extends Event, Cancellable> UnitcancelIfNot(Events<Event> $self, EventPriority priority, SuspendFunction1<T, Boolean> block)Register unless cancelling event handler. -
-
Method Detail
-
on
final static <T extends Event> Unit on(Events<Event> $self, EventPriority priority, Boolean ignoreCancelled, SuspendFunction1<T, Unit> block)
Register event handler.
- Parameters:
priority- priority of event handler.ignoreCancelled- ignore when an event has been canceled.
-
cancelIf
final static <T extends Event, Cancellable> Unit cancelIf(Events<Event> $self, EventPriority priority, SuspendFunction1<T, Boolean> block)
Register cancelling event handler.
- Parameters:
priority- priority of event handler.
-
cancelIfNot
final static <T extends Event, Cancellable> Unit cancelIfNot(Events<Event> $self, EventPriority priority, SuspendFunction1<T, Boolean> block)
Register unless cancelling event handler.
- Parameters:
priority- priority of event handler.
-
-
-
-