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 ¶
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 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 ¶
Click to show internal directories.
Click to hide internal directories.