minecraft

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SLP_Version17   = 0
	SLP_Version16   = 1
	SLP_Version15   = 2
	SLP_VersionBeta = 3
)

Variables

This section is empty.

Functions

func Initialize added in v0.4.0

func Initialize(_ map[string]any, registry *wrapper.Registry)

func NewCheckMinecraftStatusTask

func NewCheckMinecraftStatusTask() *checkMinecraftStatusTask

func NewFetchMinecraftPlayersTask added in v0.2.0

func NewFetchMinecraftPlayersTask() *fetchMinecraftPlayersTask

Types

type Stats added in v0.6.0

type Stats struct {
	Version struct {
		Name     string `json:"name"`
		Protocol int    `json:"protocol"`
	} `json:"version"`
	Players struct {
		Max    int `json:"max"`
		Online int `json:"online"`
		Sample []struct {
			Name string `json:"name"`
			Id   string `json:"id"`
		} `json:"sample"`
	} `json:"players"`
	Description        map[string]any `json:"description"`
	Favicon            string         `json:"favicon"`
	EnforcesSecureChat bool           `json:"enforcesSecureChat"`
}

func Query added in v0.6.0

func Query(ctx context.Context, hostname string, port uint16, version int) (*Stats, error)

Jump to

Keyboard shortcuts

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