serverbound

package
v0.0.0-...-b730334 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatMessage

type ChatMessage struct {
	Message pk.String
}

func (*ChatMessage) FromPacket

func (s *ChatMessage) FromPacket(packet pk.Packet) error

type ClickWindow

type ClickWindow struct {
	WindowID     pk.UByte
	Slot         pk.Short
	Button       pk.Byte
	ActionNumber pk.Short
	Mode         pk.VarInt
	ClickedItem  pk.Slot
}

func (*ClickWindow) FromPacket

func (s *ClickWindow) FromPacket(packet pk.Packet) error

type ClientSettings

type ClientSettings struct {
	Locale             pk.String
	ViewDistance       pk.Byte
	ChatMode           pk.VarInt
	ChatColors         pk.Boolean
	DisplayedSkinParts pk.UByte
	MainHand           pk.VarInt
}

func (*ClientSettings) FromPacket

func (s *ClientSettings) FromPacket(packet pk.Packet) error

type EntityAction

type EntityAction struct {
	EntityID  pk.VarInt
	ActionID  pk.VarInt
	JumpBoost pk.VarInt
}

func (*EntityAction) FromPacket

func (p *EntityAction) FromPacket(packet pk.Packet) error

type InteractEntity

type InteractEntity struct {
	EntityID pk.VarInt
	Type     pk.VarInt
	TargetX  pk.Float  // Optional, if Type == 2 (interact at)
	TargetY  pk.Float  // Optional, if Type == 2 (interact at)
	TargetZ  pk.Float  // Optional, if Type == 2 (interact at)
	Hand     pk.VarInt // Optional, if Type == 0 || Type == 2 (interact or interact at)
	Sneaking pk.Boolean
}

func (*InteractEntity) FromPacket

func (s *InteractEntity) FromPacket(packet pk.Packet) error

type KeepAlive

type KeepAlive struct {
	ID pk.Long
}

func (*KeepAlive) FromPacket

func (p *KeepAlive) FromPacket(packet pk.Packet) error

type PlayerBlockPlacement

type PlayerBlockPlacement struct {
	Hand            pk.VarInt
	Location        pk.Position
	Face            pk.VarInt
	CursorPositionX pk.Float
	CursorPositionY pk.Float
	CursorPositionZ pk.Float
	InsideBlock     pk.Boolean
}

func (*PlayerBlockPlacement) FromPacket

func (s *PlayerBlockPlacement) FromPacket(packet pk.Packet) error

type PlayerDigging

type PlayerDigging struct {
	Status   pk.VarInt
	Location pk.Position
	Face     pk.Byte
}

func (*PlayerDigging) FromPacket

func (s *PlayerDigging) FromPacket(packet pk.Packet) error

type PlayerPosition

type PlayerPosition struct {
	X        pk.Double
	Y        pk.Double
	Z        pk.Double
	OnGround pk.Boolean
}

func (*PlayerPosition) FromPacket

func (s *PlayerPosition) FromPacket(packet pk.Packet) error

type PlayerPositionAndRotation

type PlayerPositionAndRotation struct {
	X        pk.Double
	Y        pk.Double
	Z        pk.Double
	Yaw      pk.Float
	Pitch    pk.Float
	OnGround pk.Boolean
}

func (*PlayerPositionAndRotation) FromPacket

func (s *PlayerPositionAndRotation) FromPacket(packet pk.Packet) error

type PlayerRotation

type PlayerRotation struct {
	Yaw      pk.Float
	Pitch    pk.Float
	OnGround pk.Boolean
}

func (*PlayerRotation) FromPacket

func (s *PlayerRotation) FromPacket(packet pk.Packet) error

type QueryStatusPing

type QueryStatusPing struct {
	Payload pk.Long
}

func (*QueryStatusPing) FromPacket

func (p *QueryStatusPing) FromPacket(packet pk.Packet) error

Jump to

Keyboard shortcuts

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