Better documentation for EventHandler

This commit is contained in:
Andrew Steinborn
2021-04-17 04:10:27 -04:00
parent a6728476db
commit cf7c2b004a

View File

@@ -8,8 +8,9 @@
package com.velocitypowered.api.event; package com.velocitypowered.api.event;
/** /**
* Represents an interface to perform direct dispatch of an event. This makes integration easier to * Allows a listener to receive direct dispatches of events. This interface can be used directly
* achieve with platforms such as RxJava. * by a listener (using {@link EventManager#register(Object, Class, short, EventHandler)} or
* similar), or pass events through to an external system to be handled.
*/ */
@FunctionalInterface @FunctionalInterface
public interface EventHandler<E> { public interface EventHandler<E> {