status

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const ClientBoundResponsePacketID byte = 0x00
View Source
const ServerBoundRequestPacketID byte = 0x00

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientBoundResponse

type ClientBoundResponse struct {
	JSONResponse protocol.String
}

func UnmarshalClientBoundResponse

func UnmarshalClientBoundResponse(packet protocol.Packet) (ClientBoundResponse, error)

func (ClientBoundResponse) Marshal

func (pk ClientBoundResponse) Marshal() protocol.Packet

type DescriptionJSON

type DescriptionJSON struct {
	Text string `json:"text"`
}

type PlayerSampleJSON

type PlayerSampleJSON struct {
	Name string `json:"name"`
	ID   string `json:"id"`
}

type PlayersJSON

type PlayersJSON struct {
	Max    int                `json:"max"`
	Online int                `json:"online"`
	Sample []PlayerSampleJSON `json:"sample"`
}

type ResponseJSON

type ResponseJSON struct {
	Version     VersionJSON     `json:"version"`
	Players     PlayersJSON     `json:"players"`
	Description DescriptionJSON `json:"description"`
	Favicon     string          `json:"favicon"`
}

type ServerBoundRequest

type ServerBoundRequest struct{}

func (ServerBoundRequest) Marshal

func (pk ServerBoundRequest) Marshal() protocol.Packet

type VersionJSON

type VersionJSON struct {
	Name     string `json:"name"`
	Protocol int    `json:"protocol"`
}

Jump to

Keyboard shortcuts

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