ents

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArmorData added in v0.1.0

type ArmorData struct {
	Small      bool
	Gravity    bool
	Arms       bool
	RemoveBase bool
	Marker     bool
}

type ArmorPos added in v0.1.0

type ArmorPos struct {
	BodyPos *data.FloatPosition

	LeftArm  *data.FloatPosition
	RightArm *data.FloatPosition

	LeftLeg  *data.FloatPosition
	RightLeg *data.FloatPosition
}

type ArmorStand added in v0.1.0

type ArmorStand interface {
	EntityLiving

	GetArmorData() ArmorData
	SetArmorData(ArmorData)

	GetArmorPos() *ArmorPos
}

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() int32
	GetPosition() *data.PositionF

	GetType() entity.Entity

	SetData(EntityMeta)
	GetData() EntityMeta

	PushMetadata(network.Buffer)
}

type EntityCreator added in v0.1.0

type EntityCreator interface {
	NewEntity(entity.Entity) Entity
}

type EntityLiving

type EntityLiving interface {
	Entity

	GetHeadPos() *data.FloatPosition

	GetHealth() float64
	SetHealth(health float64)
}

type EntityMeta added in v0.1.0

type EntityMeta struct {
	OnFire    bool
	Crouched  bool
	Sprinting bool
	Eating    bool
	Invisible bool
}

type Horse added in v0.1.0

type Horse interface {
	EntityLiving

	GetAge() byte
	SetAge(byte)

	GetHorseData() *HorseData
}

type HorseData added in v0.1.0

type HorseData struct {
	IsTame    bool
	HasSaddle bool
	HasChest  bool
	IsBred    bool
	IsEating  bool
	IsRealing bool
	MouthOpen bool

	Type  living.HorseType
	Color living.HorseColor
	Style living.HorseStyle
	Armor living.HorseArmor
}

type Player

type Player interface {
	EntityLiving
	Sender

	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

	IsSneaking() bool
	IsSprinting() bool
	SetSprinting(bool)
	SetSneaking(bool)

	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