diff --git a/src/main/java/net/minestom/server/event/EventNode.java b/src/main/java/net/minestom/server/event/EventNode.java index f0e1fa8a4..817c978fd 100644 --- a/src/main/java/net/minestom/server/event/EventNode.java +++ b/src/main/java/net/minestom/server/event/EventNode.java @@ -15,16 +15,16 @@ public class EventNode { return null; } - public static EventNode create(Class eventType) { - return new EventNode<>(); - } - public static EventNode conditional(Class eventType, Class handlerType, Predicate predicate) { return new EventNode<>(); } + public static EventNode conditional(Class eventType) { + return new EventNode<>(); + } + public static EventNode unique(Class eventType, EventHandler handler) { return new EventNode<>(); } diff --git a/src/test/java/demo/PlayerInit.java b/src/test/java/demo/PlayerInit.java index eb511aafc..c96020a83 100644 --- a/src/test/java/demo/PlayerInit.java +++ b/src/test/java/demo/PlayerInit.java @@ -137,7 +137,7 @@ public class PlayerInit { // EVENT REGISTERING - var node = EventNode.create(PlayerEvent.class); + var node = EventNode.conditional(PlayerEvent.class); node.addListener(EventListener.of(PlayerTickEvent.class) .handler(playerTickEvent -> System.out.println("Player tick!")) .build());