models

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 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 DisconnectPacket

type DisconnectPacket struct {
	packets.MinecraftPacket

	Reason string `mc:"string"`
}

type HandshakePacket

type HandshakePacket struct {
	// *packets.UncompressedPacket
	packets.MinecraftPacket

	ProtocolVersion int32  `mc:"varint"`
	ServerAddress   string `mc:"string"`
	ServerPort      uint16 `mc:"inherit"`
	NextState       int32  `mc:"varint"`
}

type KeepAlivePacket

type KeepAlivePacket struct {
	// *packets.CompressedPacket
	packets.MinecraftPacket

	KeepAliveID int64 `mc:"inherit"`
}

type LoginStartPacket

type LoginStartPacket struct {
	// *packets.UncompressedPacket
	packets.MinecraftPacket

	Name string `mc:"string"`
}

type LoginSuccessPacket

type LoginSuccessPacket struct {
	// *packets.CompressedPacket
	packets.MinecraftPacket

	UUID     []byte `mc:"bytes" len:"16"`
	Username string `mc:"string"`
}

type SetCompressionPacket

type SetCompressionPacket struct {
	// *packets.UncompressedPacket
	packets.MinecraftPacket

	Treshold int32 `mc:"varint"`
}

Jump to

Keyboard shortcuts

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