Deprecate GlobalEventHandler

This commit is contained in:
TheMode 2021-06-04 04:24:25 +02:00
parent f39fc8c81e
commit 80c6bb3fa5
2 changed files with 5 additions and 0 deletions

View File

@ -300,8 +300,10 @@ public final class MinecraftServer {
* Used to register event callback at a global scale.
*
* @return the global event handler
* @deprecated use {@link #getGlobalEventNode()}
*/
@NotNull
@Deprecated
public static GlobalEventHandler getGlobalEventHandler() {
return GLOBAL_EVENT_HANDLER;
}

View File

@ -6,7 +6,10 @@ import org.jetbrains.annotations.NotNull;
/**
* Object containing all the global event listeners.
*
* @deprecated use {@link MinecraftServer#getGlobalEventNode()}
*/
@Deprecated
public final class GlobalEventHandler implements EventHandler<Event> {
private final EventNode<Event> node = EventNode.all("global-handler");