player

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 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 Player

type Player struct {
	entity.Entity
	UUID [2]int64 //128bit UUID

	Pos Pos

	HeldItem int //拿着的物品栏位

	Health         float32 //血量
	Food           int32   //饱食度
	FoodSaturation float32 //食物饱和度

	Level int32
}

Player includes the player's status.

type Pos

type Pos struct {
	X, Y, Z    float64
	Yaw, Pitch float32
	OnGround   bool
}

func (Pos) Equal

func (p Pos) Equal(other Pos) bool

func (Pos) LookEqual

func (p Pos) LookEqual(other Pos) bool

func (Pos) PosEqual

func (p Pos) PosEqual(other Pos) bool

Jump to

Keyboard shortcuts

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