Update EventHandler.java

This commit is contained in:
Zaxar163 2018-10-18 16:34:37 +03:00 committed by GitHub
parent 5c99ffd69a
commit 8597934e02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
}