Minecraft v0.1.0 Minecraft.Server View Source

The core Minecraft server that listens on a TCP port.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor. See Supervisor for more information

Starts the server

Link to this section Types

Link to this type server_opt() View Source
server_opt() :: {:max_connections, non_neg_integer()} | {:port, 0..65535}
Link to this type server_opts() View Source
server_opts() :: [server_opt()]

Link to this section Functions

Returns a specification to start this module under a supervisor. See Supervisor for more information.

Valid options are:

  • :max_connections - The maximum number of connections this server can handle. Default is 100.
  • :port - Which port to start the server on. Default is 25565.
Link to this function start_link(opts \\ []) View Source
start_link(server_opts()) :: {:ok, pid()} | {:error, term()}

Starts the server.