mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-14 14:45:49 +01:00
16 lines
475 B
Java
16 lines
475 B
Java
package net.minestom.server.event;
|
|
|
|
import net.minestom.server.MinecraftServer;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
public class EventDispatcher {
|
|
|
|
public static void call(@NotNull Event event) {
|
|
MinecraftServer.getGlobalEventNode().call(event);
|
|
}
|
|
|
|
public static void callCancellable(@NotNull CancellableEvent event, @NotNull Runnable successCallback) {
|
|
MinecraftServer.getGlobalEventNode().callCancellable(event, successCallback);
|
|
}
|
|
}
|