Package com.osrsbots.orb.api.events
Interface NetworkListener
-
- All Superinterfaces:
com.osrsbots.orb.api.events.framework.EventListener
public interface NetworkListener extends com.osrsbots.orb.api.events.framework.EventListenerTheNetworkListenerinterface defines methods for handling network-related events. Classes implementing this interface can be registered as listeners to receive notifications aboutServerclient connections and disconnections.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidclientConnect(SClient client)Invoked when a new client connects to the network.voidclientDisconnect(SClient client)Invoked when a client disconnects from the network.default com.osrsbots.orb.api.events.framework.ListenerTypetype()Returns the type of this listener, indicating its association with network events.
-
-
-
Method Detail
-
type
default com.osrsbots.orb.api.events.framework.ListenerType type()
Returns the type of this listener, indicating its association with network events.- Specified by:
typein interfacecom.osrsbots.orb.api.events.framework.EventListener- Returns:
- The
ListenerType.NETWORK.
-
clientConnect
void clientConnect(SClient client)
Invoked when a new client connects to the network.- Parameters:
client- The connected client.
-
clientDisconnect
void clientDisconnect(SClient client)
Invoked when a client disconnects from the network.- Parameters:
client- The disconnected client.
-
-