This commit is contained in:
Alexander Chibrikin
2022-12-29 06:57:54 +03:00
committed by GitHub
parent 4936dbfab1
commit fd9e5629ac
3 changed files with 3 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ function InvRef:is_empty(list_name) end
function InvRef:get_size(list_name) end
--- set size of a list, avoid e.g. , 7*3), use , 21) --7*3 instead to avoid confusion with formspec#list
--- @param list_name string
--- @param size number
function InvRef:set_size(list_name, size) end
--- get width of a list
--- @param list_name string

View File

@@ -6,7 +6,7 @@ Entity = {}
--* The object is removed after returning from Lua. However the `ObjectRef`
--itself instantly becomes unusable with all further method calls having
--no effect and returning `nil`.
--* `set_velocity(vel)`
function Entity:set_velocity(vel) end
--* `vel` is a vector, e.g. `{x=0.0, y=2.3, z=1.0}`
--* `set_acceleration(acc)`
--* `acc` is a vector

View File

@@ -982,6 +982,7 @@ function minetest.get_node_timer(pos) end
function minetest.add_entity(pos, name, staticdata) end
--- Spawn item
--- * Returns `ObjectRef`, or `nil` if failed
--- @return ObjectRef|nil
---
--- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L4911-L4912)
function minetest.add_item(pos, item) end