3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-17 05:20:14 +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;
/**
* Represents an interface to perform direct dispatch of an event. This makes integration easier to
* achieve with platforms such as RxJava.
* Allows a listener to receive direct dispatches of events. This interface can be used directly
* 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
public interface EventHandler<E> {