Package com.velocitypowered.api.event
Interface EventHandler<E extends Event>
-
- 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 extends Event>
Allows a listener to receive direct dispatches of events. This interface can be used directly by a listener (usingEventManager.register(Object, Class, short, EventHandler)or similar), or pass events through to an external system to be handled.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable EventTaskexecute(E event)
-