Class ServerBoundEvent

java.lang.Object
org.geysermc.mcprotocollib.network.event.server.ServerBoundEvent
All Implemented Interfaces:
ServerEvent

public class ServerBoundEvent extends Object implements ServerEvent
Called when the server is bound to its host and port.
  • Constructor Details

    • ServerBoundEvent

      public ServerBoundEvent(Server server)
      Creates a new ServerBoundEvent instance.
      Parameters:
      server - Server being bound.
  • Method Details

    • getServer

      public Server getServer()
      Gets the server involved in this event.
      Returns:
      The event's server.
    • call

      public void call(ServerListener listener)
      Description copied from interface: ServerEvent
      Calls the event.
      Specified by:
      call in interface ServerEvent
      Parameters:
      listener - Listener to call the event on.