Package com.velocitypowered.api.event
Interface EventHandler<E>
-
- All Known Subinterfaces:
AwaitingEventExecutor<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 EventHandler<E>
Represents an interface to perform direct dispatch of an event. This makes integration easier to achieve with platforms such as RxJava. While this interface can be used to implement an awaiting event handler,AwaitingEventExecutorprovides a more idiomatic means to doing so.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidexecute(E event)default @Nullable EventTaskexecuteAsync(E event)
-