Files
mc/server/doc.go
T

14 lines
520 B
Go
Raw Normal View History

2026-07-09 08:33:57 +08:00
// Package server implements a high-level implementation of a Minecraft server.
// Creating such a server may be done using the `server.New()` function.
// Additional configuration may be passed by using server.Config{...}.New().
// `Server.Listen()` may be called to start and run the server. It should be
// followed up by a loop as such:
//
// for p := range srv.Accept() {
// // Use p
// }
//
// `Server.Accept()` blocks until a new player connects to the server and
// spawns in the default world.
package server