item_ao

package
v0.0.0-...-aecff93 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DropDistance float32 = 12

Variables

This section is empty.

Functions

func SpawnItem

func SpawnItem(p minetest.AOPos, name string, cnt int) mt.AOID

Types

type ItemAO

type ItemAO struct {
	sync.RWMutex

	AOID mt.AOID

	Pos minetest.AOPos

	Count int
	Name  string
}

func (*ItemAO) AOInit

func (item *ItemAO) AOInit(clt *minetest.Client) *minetest.AOInit

compare: minetest-root/builtin/game/item_entity.lua:21

func (*ItemAO) Clean

func (item *ItemAO) Clean()

func (*ItemAO) GetAO

func (item *ItemAO) GetAO() mt.AOID

func (*ItemAO) GetPos

func (item *ItemAO) GetPos() minetest.AOPos

func (*ItemAO) Punch

func (item *ItemAO) Punch(clt *minetest.Client, i *mt.ToSrvInteract)

func (*ItemAO) SetAO

func (item *ItemAO) SetAO(i mt.AOID)

func (*ItemAO) SetPos

func (item *ItemAO) SetPos(p minetest.AOPos)

Jump to

Keyboard shortcuts

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