Class ServerBoundEvent
java.lang.Object
org.geysermc.mcprotocollib.network.event.server.ServerBoundEvent
- All Implemented Interfaces:
ServerEvent
Called when the server is bound to its host and port.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcall(ServerListener listener) Calls the event.Gets the server involved in this event.
-
Constructor Details
-
ServerBoundEvent
Creates a new ServerBoundEvent instance.- Parameters:
server- Server being bound.
-
-
Method Details
-
getServer
Gets the server involved in this event.- Returns:
- The event's server.
-
call
Description copied from interface:ServerEventCalls the event.- Specified by:
callin interfaceServerEvent- Parameters:
listener- Listener to call the event on.
-