Interface EventListener<E extends Event>

  • All Superinterfaces:
    EventFilter<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 EventListener<E extends Event>
    extends EventFilter<E>
    Entity capable of receiving events.
    • Method Detail

      • event

        void event​(E event)
        Reacts to the specified event.
        Parameters:
        event - event to be processed