Package dev.prozilla.pine.common.event
Class EventDispatcherContext.EphemeralEventListener<EventType extends Enum<EventType>,E extends Event<EventType,?>>
java.lang.Object
dev.prozilla.pine.common.event.EventDispatcherContext.EphemeralEventListener<EventType,E>
- All Implemented Interfaces:
EventListener<E>
- Enclosing interface:
EventDispatcherContext<EventType extends Enum<EventType>,Target, E extends Event<EventType, ? super Target>>
public static class EventDispatcherContext.EphemeralEventListener<EventType extends Enum<EventType>,E extends Event<EventType,?>>
extends Object
implements EventListener<E>
-
Constructor Summary
ConstructorsConstructorDescriptionEphemeralEventListener(EventDispatcherContext<EventType, ?, E> eventDispatcherContext, EventType eventType, EventListener<E> listener) -
Method Summary
-
Constructor Details
-
EphemeralEventListener
public EphemeralEventListener(EventDispatcherContext<EventType, ?, E> eventDispatcherContext, EventType eventType, EventListener<E> listener)
-
-
Method Details
-
handle
Description copied from interface:EventListenerHandles an event.- Specified by:
handlein interfaceEventListener<EventType extends Enum<EventType>>- Parameters:
event- The event to handle
-