Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrServerClosed = errors.New("piston: server already closed or closing")
)
Functions ¶
This section is empty.
Types ¶
type Player ¶
type Player struct { Username string UUID uuid.UUID X int32 Y int32 Z int32 Yaw uint8 Pitch uint8 // contains filtered or unexported fields }
Player is save for concurrent use
func (*Player) Disconnect ¶
func (p *Player) Disconnect()
Disconnects a player and closes the connetion
type Server ¶
Keep a minecraft server Server is save for concurrent use
File Structure: worlds/[name]/[chunk-x]-[chunk-y].gob
func (*Server) RegisterOnShutdown ¶
func (srv *Server) RegisterOnShutdown(f func())
Execute f when srv.Shutdown is called. The server will not wait for f to finish
Click to show internal directories.
Click to hide internal directories.