Package com.velocitypowered.api.event
Interface AwaitingEventExecutor<E>
-
- Type Parameters:
E- event type
- All Superinterfaces:
EventHandler<E>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface AwaitingEventExecutor<E> extends EventHandler<E>
An event handler that returns anEventTaskto await on.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidexecute(E event)@Nullable EventTaskexecuteAsync(E event)
-
-
-
Method Detail
-
execute
default void execute(E event)
- Specified by:
executein interfaceEventHandler<E>
-
executeAsync
@Nullable EventTask executeAsync(E event)
- Specified by:
executeAsyncin interfaceEventHandler<E>
-
-