minecraft

package
v0.0.0-...-88918dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxPlayer = 50
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PlayerInfo

type PlayerInfo struct {
	Name    string
	UUID    uuid.UUID
	OPLevel int
}

type Server

type Server struct {
	Address             string
	AcceptLoginCallback func(userName string)
	ChatMessageCallback func(text string)
}

func NewServer

func NewServer(address string) *Server

func (*Server) Run

func (s *Server) Run() error

type Session

type Session struct {
	Server          *Server
	ProtocolVersion int32
}

func (*Session) GetVersionName

func (s *Session) GetVersionName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL