mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-02-17 14:37:43 +01:00
Better documentation for EventHandler
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user