From b1714641e8f2ae446ac68b8872af1b35ed617b78 Mon Sep 17 00:00:00 2001 From: TheMode Date: Wed, 2 Jun 2021 22:51:11 +0200 Subject: [PATCH] Use Object for EventFilter#ALL --- src/main/java/net/minestom/server/event/EventFilter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/net/minestom/server/event/EventFilter.java b/src/main/java/net/minestom/server/event/EventFilter.java index ce26461e9..c6f591109 100644 --- a/src/main/java/net/minestom/server/event/EventFilter.java +++ b/src/main/java/net/minestom/server/event/EventFilter.java @@ -2,7 +2,6 @@ package net.minestom.server.event; import net.minestom.server.entity.Entity; import net.minestom.server.entity.Player; -import net.minestom.server.event.handler.EventHandler; import net.minestom.server.event.trait.*; import net.minestom.server.instance.Instance; import net.minestom.server.inventory.Inventory; @@ -14,7 +13,7 @@ import java.util.function.Function; public interface EventFilter { - EventFilter ALL = from(Event.class); + EventFilter ALL = from(Event.class); EventFilter ENTITY = from(EntityEvent.class, Entity.class, EntityEvent::getEntity); EventFilter PLAYER = from(PlayerEvent.class, Player.class, PlayerEvent::getPlayer); EventFilter ITEM = from(ItemEvent.class, ItemStack.class, ItemEvent::getItemStack);