From cf7c2b004a324c868615d0c5fa4e71c0bfa4dc38 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sat, 17 Apr 2021 04:10:27 -0400 Subject: [PATCH] Better documentation for EventHandler --- .../java/com/velocitypowered/api/event/EventHandler.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/src/main/java/com/velocitypowered/api/event/EventHandler.java b/api/src/main/java/com/velocitypowered/api/event/EventHandler.java index f15e5fb9a..fdf25862e 100644 --- a/api/src/main/java/com/velocitypowered/api/event/EventHandler.java +++ b/api/src/main/java/com/velocitypowered/api/event/EventHandler.java @@ -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 {