Marks some methods as experimental

This commit is contained in:
TheMode 2021-08-24 15:25:11 +02:00
parent 93cbd52313
commit aed441123e
2 changed files with 4 additions and 0 deletions

View File

@ -202,6 +202,7 @@ public interface EventNode<T extends Event> {
* @param <E> the event type
* @throws IllegalArgumentException if {@code handle}'s owner is not {@code this}
*/
@ApiStatus.Experimental
<E extends T> void call(@NotNull E event, @NotNull ListenerHandle<E> handle);
/**
@ -211,6 +212,7 @@ public interface EventNode<T extends Event> {
* @param <E> the event type
* @return the handle linked to {@code handleType}
*/
@ApiStatus.Experimental
<E extends T> @NotNull ListenerHandle<E> getHandle(@NotNull Class<E> handleType);
/**
@ -224,6 +226,7 @@ public interface EventNode<T extends Event> {
* @param handle the listener handle
* @return true if the event has 1 or more listeners
*/
@ApiStatus.Experimental
boolean hasListener(@NotNull ListenerHandle<? extends T> handle);
/**

View File

@ -8,6 +8,7 @@ import org.jetbrains.annotations.ApiStatus;
*
* @param <E> the event type
*/
@ApiStatus.Experimental
@ApiStatus.NonExtendable
public interface ListenerHandle<E extends Event> {
}