From fd9e5629ac24725334eae7a2b6022e1a4d325fb2 Mon Sep 17 00:00:00 2001 From: Alexander Chibrikin Date: Thu, 29 Dec 2022 06:57:54 +0300 Subject: [PATCH] lord-server/lord#755 add reward chest for quests (lord-server/lord#897) --- classes/InvRef.lua | 1 + classes/ObjectRef/Entity.lua | 2 +- minetest_types.lua | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/InvRef.lua b/classes/InvRef.lua index 1dd6e99..954b134 100644 --- a/classes/InvRef.lua +++ b/classes/InvRef.lua @@ -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 diff --git a/classes/ObjectRef/Entity.lua b/classes/ObjectRef/Entity.lua index 3be77a1..5654f9f 100644 --- a/classes/ObjectRef/Entity.lua +++ b/classes/ObjectRef/Entity.lua @@ -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 diff --git a/minetest_types.lua b/minetest_types.lua index 3454325..74fe49b 100644 --- a/minetest_types.lua +++ b/minetest_types.lua @@ -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