package dev.kske.chess.event;
import java.util.Set;
/**
* Project: Chess
* File: Subscribable.java
* Created: 7 Aug 2019
* Author: Kai S. K. Engelbart
*/
public interface Subscribable {
/**
* Consumes an event dispatched by an event bus.
*
* @param event The event dispatched by the event bus, only of supported type
*/
void handle(Event> event);
/**
* @return A set of classes this class is supposed to handle in events
*/
Set> supports();
}