packets

package
v0.0.0-...-55cdb59 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientboundLoginCompressionPacket

type ClientboundLoginCompressionPacket struct {
	Threshold int32 `type:"varint"`
}

type ClientboundLoginDisconnectPacket

type ClientboundLoginDisconnectPacket struct {
	Reason string // chat message ptr
}

type ClientboundLoginEncryptionRequest

type ClientboundLoginEncryptionRequest struct {
	ServerId    string
	PublicKey   []byte ``
	VerifyToken []byte ``
}

type ClientboundLoginPluginRequest

type ClientboundLoginPluginRequest struct {
	MessageId int32 `type:"varint"`
	Channel   string
	Data      []byte `size:"infer"`
}

type ClientboundLoginSuccess

type ClientboundLoginSuccess struct {
	Uuid     uuid.UUID `size:"infer"`
	Username string
}

type ClientboundStatusPongPacket

type ClientboundStatusPongPacket struct {
	Time int64
}

type ClientboundStatusResponsePacket

type ClientboundStatusResponsePacket struct {
	Response string
}

type GameVersion

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

type ServerListPlayer

type ServerListPlayer struct {
	Name string    `json:"name"`
	Id   uuid.UUID `json:"id"`
}

type ServerListPlayers

type ServerListPlayers struct {
	Max    int                `json:"max"`
	Online int                `json:"online"`
	Sample []ServerListPlayer `json:"sample,omitempty"`
}

type ServerListResponse

type ServerListResponse struct {
	Description string            `json:"description,omitempty"` // chat message ptr
	Players     ServerListPlayers `json:"players"`
	Version     GameVersion       `json:"version"`
	Favicon     string            `json:"favicon,omitempty"`
}

type ServerboundHandshakeLegacyPingPacket

type ServerboundHandshakeLegacyPingPacket struct {
	Payload         byte
	ProtocolVersion byte
	Hostname        string
	Port            int32
}

type ServerboundHandshakePacket

type ServerboundHandshakePacket struct {
	ProtocolVersion int32 `type:"varint"`
	ServerHost      string
	ServerPort      uint16
	NextState       int32 `type:"varint"`
}

type ServerboundLoginEncryptionResponsePacket

type ServerboundLoginEncryptionResponsePacket struct {
	SharedSecret []byte ``
	VerifyToken  []byte ``
}

type ServerboundLoginPluginResponsePacket

type ServerboundLoginPluginResponsePacket struct {
	MessageID  int32 `type:"varint"`
	Successful bool
	Data       []byte `size:"infer" optional:"Successful"`
}

type ServerboundLoginStartPacket

type ServerboundLoginStartPacket struct {
	Username string
}

type ServerboundStatusPingPacket

type ServerboundStatusPingPacket struct {
	Time int64
}

type ServerboundStatusRequestPacket

type ServerboundStatusRequestPacket struct{}

Jump to

Keyboard shortcuts

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