package com.gmail.woodyc40.common.protocol; import com.gmail.woodyc40.common.protocol.events.ProtocolEvent; /** * Listens for protocol events * * @author Pierre C * @param <T> the event type */ @FunctionalInterface public interface ProtocolListener<T extends ProtocolEvent> { /** * Called when the event occurs * * @param event the event to listen for */ void intercept(T event); }