3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-17 13:30:17 +01:00

Better documentation for EventHandler

Dieser Commit ist enthalten in:
Andrew Steinborn 2021-04-17 04:10:27 -04:00
Ursprung a6728476db
Commit cf7c2b004a

Datei anzeigen

@ -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> {