mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-04 06:21:52 +01:00
Deprecate GlobalEventHandler
This commit is contained in:
parent
f39fc8c81e
commit
80c6bb3fa5
@ -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;
|
||||
}
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user