Minestom/src/main/java/net/minestom/server/event/EventDispatcher.java

16 lines
475 B
Java
Raw Normal View History

2021-06-04 03:48:51 +02:00
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);
}
}