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 acceptingEvent
s of a specified type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
handle(T event)
Called when aEvent
registered to this listener is called.
-