Package net.minestom.server.event
Class EventBinding.FilteredBuilder<E extends Event,T>
java.lang.Object
net.minestom.server.event.EventBinding.FilteredBuilder<E,T>
- Enclosing interface:
EventBinding<E extends Event>
-
Method Summary
Modifier and TypeMethodDescription@NotNull EventBinding
<E> build()
<M extends E>
EventBinding.FilteredBuilder<E, T> map
(@NotNull Class<M> eventType, @NotNull BiConsumer<@NotNull T, @NotNull M> consumer)
-
Method Details
-
map
public <M extends E> EventBinding.FilteredBuilder<E,T> map(@NotNull @NotNull Class<M> eventType, @NotNull @NotNull BiConsumer<@NotNull T, @NotNull M> consumer) -
build
-