minecraft

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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