Uses of Interface
eu.cloudnetservice.driver.network.protocol.PacketListener
Packages that use PacketListener
-
Uses of PacketListener in eu.cloudnetservice.driver.network.protocol
Methods in eu.cloudnetservice.driver.network.protocol that return types with arguments of type PacketListenerModifier and TypeMethodDescriptionPacketListenerRegistry.listeners()Get all listener instances which are registered to any channel in this registry.PacketListenerRegistry.packetListeners()Get a channel id - listeners mapping of listeners which were registered to this registry.Methods in eu.cloudnetservice.driver.network.protocol with parameters of type PacketListenerModifier and TypeMethodDescriptionvoidPacketListenerRegistry.addListener(int channel, @NonNull PacketListener listener) Adds a packet listener for each packet that uses the provided channel id.voidPacketListenerRegistry.removeListener(int channel, @NonNull PacketListener listener) Removes the given listener from the given channel if it was registered previously.Method parameters in eu.cloudnetservice.driver.network.protocol with type arguments of type PacketListenerModifier and TypeMethodDescriptionvoidPacketListenerRegistry.addListener(int channel, @NonNull Class<? extends PacketListener> listenerClass) Adds a packet listener for each packet that uses the provided channel id.