diff --git a/src/main/java/net/minestom/server/event/EventFilter.java b/src/main/java/net/minestom/server/event/EventFilter.java index 8035e9a29..3bdda0dea 100644 --- a/src/main/java/net/minestom/server/event/EventFilter.java +++ b/src/main/java/net/minestom/server/event/EventFilter.java @@ -13,7 +13,7 @@ import java.util.function.Function; public interface EventFilter { - EventFilter ALL = from(Event.class); + EventFilter ALL = from(Event.class, null); EventFilter ENTITY = from(EntityEvent.class, EntityEvent::getEntity); EventFilter PLAYER = from(PlayerEvent.class, PlayerEvent::getPlayer); EventFilter ITEM = from(ItemEvent.class, ItemEvent::getItemStack); @@ -35,10 +35,6 @@ public interface EventFilter { }; } - static EventFilter from(@NotNull Class type) { - return from(type, null); - } - @Nullable H getHandler(@NotNull E event); @NotNull Class getEventType();