mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-06 16:37:38 +01:00
Use Object for EventFilter#ALL
This commit is contained in:
parent
d58cd3b578
commit
b1714641e8
@ -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<E extends Event, H> {
|
||||
|
||||
EventFilter<Event, EventHandler> ALL = from(Event.class);
|
||||
EventFilter<Event, Object> ALL = from(Event.class);
|
||||
EventFilter<EntityEvent, Entity> ENTITY = from(EntityEvent.class, Entity.class, EntityEvent::getEntity);
|
||||
EventFilter<PlayerEvent, Player> PLAYER = from(PlayerEvent.class, Player.class, PlayerEvent::getPlayer);
|
||||
EventFilter<ItemEvent, ItemStack> ITEM = from(ItemEvent.class, ItemStack.class, ItemEvent::getItemStack);
|
||||
|
Loading…
Reference in New Issue
Block a user