Package org.spongepowered.api.event
Interface EventListener<T extends Event>
-
- Type Parameters:
T- The type of the 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 EventListener<T extends Event>
Represents a listener acceptingEvents of a specified type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandle(T event)Called when aEventregistered to this listener is called.
-