ents

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientSettings added in v0.0.9

type ClientSettings struct {
	SkinParts    byte
	Language     string
	ViewDistance byte
	ChatMode     byte
}

type Console

type Console interface {
	Sender
}

type Entity

type Entity interface {
	EntityUUID() int64
	GetPosition() *data.PositionF

	PushMetadata(network.Buffer)
}

type EntityLiving

type EntityLiving interface {
	Entity

	GetHeadPos() *data.HeadPosition

	GetHealth() float64
	SetHealth(health float64)
	UUID() data.UUID
}

type Player

type Player interface {
	EntityLiving
	Sender

	GetIsOnline() bool
	SetIsOnline(state bool)

	GetClientSettings() *ClientSettings
	GetAbsorption() byte
	GetFood() float32

	GetGamemode() player.GameMode
	SetGamemode(gamemode player.GameMode)

	GetXP() int32
	GetLevel() int32
	SetXP(int32)
	SetLevel(int32)

	GetProfile() *player.Profile

	GetPing() int32
	SetPing(ping_delay int64, server_ping int64)
	GetKeepAlive() int64
	SetKeepAlive(time int64)

	SendMsgPos(pos chat.MessagePosition, messages ...string)
	SendMsgColorPos(pos chat.MessagePosition, messages ...string)
	GetConnection() network.Connection

	Disconnect()
}

type Sender

type Sender interface {
	SendMsg(message ...string)
	SendMsgColor(message ...string)
}

Jump to

Keyboard shortcuts

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