From 8f3b52a8b98e65ac1e30f4f4bf0bcabba102a55c Mon Sep 17 00:00:00 2001 From: TheMode Date: Wed, 2 Jun 2021 23:04:35 +0200 Subject: [PATCH] Inline method --- src/main/java/net/minestom/server/event/EventFilter.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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();