Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ServerVersion is the vanilla server version that is mostly implemented by this server. ServerVersion = "1.16.5" // ProtocolVersion is the minecraft protocol version that this server implements. ProtocolVersion = 754 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MCServer ¶
type MCServer struct {
// contains filtered or unexported fields
}
MCServer is a minecraft server. It holds things like a logger, a net.Listener, a game.Game and a config.Config, and coordinates all the components.
type Option ¶
type Option func(*MCServer)
Option is an API function that can be passed into New to customize the created server with optional arguments.
func WithListener ¶
WithListener tells the server, which listener he should use. If this is given, the server will not allocate a separate listener.
func WithLogger ¶
WithLogger will make the server use the given logger to write logs.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
Package comparr implements a data structure we call "compact array".
|
Package comparr implements a data structure we call "compact array". |
block
Package block provides means for registering blocks and creating blocks from registered block descriptors.
|
Package block provides means for registering blocks and creating blocks from registered block descriptors. |
tools
|
|
Click to show internal directories.
Click to hide internal directories.