Interface EventFilter<E extends Event,H>

Type Parameters:
E - The event type to filter
H - The handler type to filter on.

public interface EventFilter<E extends Event,H>
Represents a filter for a specific Event type.

The handler represents a "target" of the event. This can be used to create filters for all events of a specific type using information about the target.

For example, the target of a PlayerEvent is a Player so you could create a player event filter which checks if the target player is in creative mode.