Class ServerAdapter
java.lang.Object
org.geysermc.mcprotocollib.network.event.server.ServerAdapter
- All Implemented Interfaces:
ServerListener
An adapter for picking server events to listen for.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidserverBound(ServerBoundEvent event) Called when a server is bound to its host and port.voidserverClosed(ServerClosedEvent event) Called when a server is closed.voidserverClosing(ServerClosingEvent event) Called when a server is about to close.voidsessionAdded(SessionAddedEvent event) Called when a session is added to the server.voidCalled when a session is removed and disconnected from the server.
-
Constructor Details
-
ServerAdapter
public ServerAdapter()
-
-
Method Details
-
serverBound
Description copied from interface:ServerListenerCalled when a server is bound to its host and port.- Specified by:
serverBoundin interfaceServerListener- Parameters:
event- Data relating to the event.
-
serverClosing
Description copied from interface:ServerListenerCalled when a server is about to close.- Specified by:
serverClosingin interfaceServerListener- Parameters:
event- Data relating to the event.
-
serverClosed
Description copied from interface:ServerListenerCalled when a server is closed.- Specified by:
serverClosedin interfaceServerListener- Parameters:
event- Data relating to the event.
-
sessionAdded
Description copied from interface:ServerListenerCalled when a session is added to the server.- Specified by:
sessionAddedin interfaceServerListener- Parameters:
event- Data relating to the event.
-
sessionRemoved
Description copied from interface:ServerListenerCalled when a session is removed and disconnected from the server.- Specified by:
sessionRemovedin interfaceServerListener- Parameters:
event- Data relating to the event.
-