Interface EventConsumer<E extends Event>

Type Parameters:
E - the event type
All Superinterfaces:
Consumer<E>

public interface EventConsumer<E extends Event> extends Consumer<E>
A listener to an event
Author:
A248
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(E event)
    Acts on the event listened to

    Methods inherited from interface Consumer

    andThen
  • Method Details

    • accept

      void accept(E event)
      Acts on the event listened to
      Specified by:
      accept in interface Consumer<E extends Event>
      Parameters:
      event - the event