Update EventHandler.java

This commit is contained in:
Zaxar163 2018-10-18 16:34:37 +03:00 committed by Gravit
parent 01fdbdf305
commit 3013e88103

View file

@ -1,6 +1,6 @@
package ru.gravit.utils.event;
@FunctionalInterface
public interface EventHandler {
void run(EventInterface event);
}
public interface EventHandler<T extends EventInterface> {
void run(T event);
}