public interface ProtocolHandlerList extends FunctionalHandlerList<com.comphenix.protocol.events.PacketEvent,ProtocolSubscription>
| Modifier and Type | Method and Description |
|---|---|
ProtocolHandlerList |
biConsumer(BiConsumer<ProtocolSubscription,? super com.comphenix.protocol.events.PacketEvent> handler)
Add a
BiConsumer handler. |
default ProtocolHandlerList |
consumer(Consumer<? super com.comphenix.protocol.events.PacketEvent> handler)
Add a
Consumer handler. |
register@Nonnull default ProtocolHandlerList consumer(@Nonnull Consumer<? super com.comphenix.protocol.events.PacketEvent> handler)
FunctionalHandlerListConsumer handler.consumer in interface FunctionalHandlerList<com.comphenix.protocol.events.PacketEvent,ProtocolSubscription>handler - the handler@Nonnull ProtocolHandlerList biConsumer(@Nonnull BiConsumer<ProtocolSubscription,? super com.comphenix.protocol.events.PacketEvent> handler)
FunctionalHandlerListBiConsumer handler.biConsumer in interface FunctionalHandlerList<com.comphenix.protocol.events.PacketEvent,ProtocolSubscription>handler - the handlerCopyright © 2022. All rights reserved.