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 (using EventManager.register(Object, Class, short, EventHandler) or similar), or pass events through to an external system to be handled.
    • Method Detail

      • execute

        @Nullable EventTask execute​(E event)