mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 22:47:49 +01:00
Marks some methods as experimental
This commit is contained in:
parent
93cbd52313
commit
aed441123e
@ -202,6 +202,7 @@ public interface EventNode<T extends Event> {
|
|||||||
* @param <E> the event type
|
* @param <E> the event type
|
||||||
* @throws IllegalArgumentException if {@code handle}'s owner is not {@code this}
|
* @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);
|
<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
|
* @param <E> the event type
|
||||||
* @return the handle linked to {@code handleType}
|
* @return the handle linked to {@code handleType}
|
||||||
*/
|
*/
|
||||||
|
@ApiStatus.Experimental
|
||||||
<E extends T> @NotNull ListenerHandle<E> getHandle(@NotNull Class<E> handleType);
|
<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
|
* @param handle the listener handle
|
||||||
* @return true if the event has 1 or more listeners
|
* @return true if the event has 1 or more listeners
|
||||||
*/
|
*/
|
||||||
|
@ApiStatus.Experimental
|
||||||
boolean hasListener(@NotNull ListenerHandle<? extends T> handle);
|
boolean hasListener(@NotNull ListenerHandle<? extends T> handle);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -8,6 +8,7 @@ import org.jetbrains.annotations.ApiStatus;
|
|||||||
*
|
*
|
||||||
* @param <E> the event type
|
* @param <E> the event type
|
||||||
*/
|
*/
|
||||||
|
@ApiStatus.Experimental
|
||||||
@ApiStatus.NonExtendable
|
@ApiStatus.NonExtendable
|
||||||
public interface ListenerHandle<E extends Event> {
|
public interface ListenerHandle<E extends Event> {
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user