Interface SingleHandlerList<T extends org.bukkit.event.Event>
- All Superinterfaces:
FunctionalHandlerList<T,SingleSubscription<T>>
public interface SingleHandlerList<T extends org.bukkit.event.Event>
extends FunctionalHandlerList<T,SingleSubscription<T>>
-
Method Summary
Modifier and TypeMethodDescription@NotNull SingleHandlerList<T>biConsumer(@NotNull BiConsumer<SingleSubscription<T>, ? super T> handler) Add aBiConsumerhandler.default @NotNull SingleHandlerList<T>Add aConsumerhandler.Methods inherited from interface dev.demeng.pluginbase.event.functional.FunctionalHandlerList
register
-
Method Details
-
consumer
@NotNull default @NotNull SingleHandlerList<T> consumer(@NotNull @NotNull Consumer<? super T> handler) Description copied from interface:FunctionalHandlerListAdd aConsumerhandler.- Specified by:
consumerin interfaceFunctionalHandlerList<T extends org.bukkit.event.Event,SingleSubscription<T extends org.bukkit.event.Event>> - Parameters:
handler- the handler- Returns:
- this handler list
-
biConsumer
@NotNull @NotNull SingleHandlerList<T> biConsumer(@NotNull @NotNull BiConsumer<SingleSubscription<T>, ? super T> handler) Description copied from interface:FunctionalHandlerListAdd aBiConsumerhandler.- Specified by:
biConsumerin interfaceFunctionalHandlerList<T extends org.bukkit.event.Event,SingleSubscription<T extends org.bukkit.event.Event>> - Parameters:
handler- the handler- Returns:
- this handler list
-