server

package
v0.0.0-...-ca992e9 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PacketIChatMessage

type PacketIChatMessage struct {
	Message string
}

func (*PacketIChatMessage) Pull

func (p *PacketIChatMessage) Pull(reader buff.Buffer, conn base.Connection)

func (*PacketIChatMessage) UUID

func (p *PacketIChatMessage) UUID() int32

type PacketIClientSettings

type PacketIClientSettings struct {
	Locale       string
	ViewDistance byte
	ChatMode     client.ChatMode
	ChatColors   bool // if false, strip messages of colors before sending
	SkinParts    client.SkinParts
	MainHand     client.MainHand
}

func (*PacketIClientSettings) Pull

func (p *PacketIClientSettings) Pull(reader buff.Buffer, conn base.Connection)

func (*PacketIClientSettings) UUID

func (p *PacketIClientSettings) UUID() int32

type PacketIClientStatus

type PacketIClientStatus struct {
	Action client.StatusAction
}

func (*PacketIClientStatus) Pull

func (p *PacketIClientStatus) Pull(reader buff.Buffer, conn base.Connection)

func (*PacketIClientStatus) UUID

func (p *PacketIClientStatus) UUID() int32

type PacketIEncryptionResponse

type PacketIEncryptionResponse struct {
	Secret []byte
	Verify []byte
}

func (*PacketIEncryptionResponse) Pull

func (p *PacketIEncryptionResponse) Pull(reader buff.Buffer, conn base.Connection)

func (*PacketIEncryptionResponse) UUID

func (p *PacketIEncryptionResponse) UUID() int32

type PacketIHandshake

type PacketIHandshake struct {
	State base.PacketState
	// contains filtered or unexported fields
}

func (*PacketIHandshake) Pull

func (p *PacketIHandshake) Pull(reader buff.Buffer, conn base.Connection)

func (*PacketIHandshake) UUID

func (p *PacketIHandshake) UUID() int32

type PacketIKeepAlive

type PacketIKeepAlive struct {
	KeepAliveID int64
}

func (*PacketIKeepAlive) Pull

func (p *PacketIKeepAlive) Pull(reader buff.Buffer, conn base.Connection)

func (*PacketIKeepAlive) UUID

func (p *PacketIKeepAlive) UUID() int32

type PacketILoginPluginResponse

type PacketILoginPluginResponse struct {
	Message int32
	Success bool
	OptData []byte
}

func (*PacketILoginPluginResponse) Pull

func (p *PacketILoginPluginResponse) Pull(reader buff.Buffer, conn base.Connection)

func (*PacketILoginPluginResponse) UUID

type PacketILoginStart

type PacketILoginStart struct {
	PlayerName string
}

func (*PacketILoginStart) Pull

func (p *PacketILoginStart) Pull(reader buff.Buffer, conn base.Connection)

func (*PacketILoginStart) UUID

func (p *PacketILoginStart) UUID() int32

type PacketIPing

type PacketIPing struct {
	Ping int64
}

func (*PacketIPing) Pull

func (p *PacketIPing) Pull(reader buff.Buffer, conn base.Connection)

func (*PacketIPing) UUID

func (p *PacketIPing) UUID() int32

type PacketIPlayerAbilities

type PacketIPlayerAbilities struct {
	Abilities   client.PlayerAbilities
	FlightSpeed float32
	GroundSpeed float32
}

func (*PacketIPlayerAbilities) Pull

func (p *PacketIPlayerAbilities) Pull(reader buff.Buffer, conn base.Connection)

func (*PacketIPlayerAbilities) UUID

func (p *PacketIPlayerAbilities) UUID() int32

type PacketIPlayerLocation

type PacketIPlayerLocation struct {
	Location data.Location
	OnGround bool
}

func (*PacketIPlayerLocation) Pull

func (p *PacketIPlayerLocation) Pull(reader buff.Buffer, conn base.Connection)

func (*PacketIPlayerLocation) UUID

func (p *PacketIPlayerLocation) UUID() int32

type PacketIPlayerPosition

type PacketIPlayerPosition struct {
	Position data.PositionF
	OnGround bool
}

func (*PacketIPlayerPosition) Pull

func (p *PacketIPlayerPosition) Pull(reader buff.Buffer, conn base.Connection)

func (*PacketIPlayerPosition) UUID

func (p *PacketIPlayerPosition) UUID() int32

type PacketIPlayerRotation

type PacketIPlayerRotation struct {
	Rotation data.RotationF
	OnGround bool
}

func (*PacketIPlayerRotation) Pull

func (p *PacketIPlayerRotation) Pull(reader buff.Buffer, conn base.Connection)

func (*PacketIPlayerRotation) UUID

func (p *PacketIPlayerRotation) UUID() int32

type PacketIPluginMessage

type PacketIPluginMessage struct {
	Message plugin.Message
}

func (*PacketIPluginMessage) Pull

func (p *PacketIPluginMessage) Pull(reader buff.Buffer, conn base.Connection)

func (*PacketIPluginMessage) UUID

func (p *PacketIPluginMessage) UUID() int32

type PacketIQueryBlockNBT

type PacketIQueryBlockNBT struct {
	TransactionID int32
	Position      data.PositionI
}

func (*PacketIQueryBlockNBT) Pull

func (p *PacketIQueryBlockNBT) Pull(reader buff.Buffer, conn base.Connection)

func (*PacketIQueryBlockNBT) UUID

func (p *PacketIQueryBlockNBT) UUID() int32

type PacketIRequest

type PacketIRequest struct {
}

func (*PacketIRequest) Pull

func (p *PacketIRequest) Pull(reader buff.Buffer, conn base.Connection)

func (*PacketIRequest) UUID

func (p *PacketIRequest) UUID() int32

type PacketISetDifficulty

type PacketISetDifficulty struct {
	Difficult game.Difficulty
}

func (*PacketISetDifficulty) Pull

func (p *PacketISetDifficulty) Pull(reader buff.Buffer, conn base.Connection)

func (*PacketISetDifficulty) UUID

func (p *PacketISetDifficulty) UUID() int32

type PacketITeleportConfirm

type PacketITeleportConfirm struct {
	TeleportID int32
}

func (*PacketITeleportConfirm) Pull

func (p *PacketITeleportConfirm) Pull(reader buff.Buffer, conn base.Connection)

func (*PacketITeleportConfirm) UUID

func (p *PacketITeleportConfirm) UUID() int32

Jump to

Keyboard shortcuts

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