From a9c0961e0c9c3b854aca34b6d582198be1cd2277 Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Sat, 28 Sep 2013 22:47:09 +0200 Subject: Add set_name(), set_count(), set_wear() and set_metadata() to Lua ItemStack --- src/script/lua_api/l_item.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/script/lua_api/l_item.h') diff --git a/src/script/lua_api/l_item.h b/src/script/lua_api/l_item.h index 7c2e1b098..7f5a1130d 100644 --- a/src/script/lua_api/l_item.h +++ b/src/script/lua_api/l_item.h @@ -41,15 +41,27 @@ private: // get_name(self) -> string static int l_get_name(lua_State *L); + // set_name(self, name) + static int l_set_name(lua_State *L); + // get_count(self) -> number static int l_get_count(lua_State *L); + // set_count(self, number) + static int l_set_count(lua_State *L); + // get_wear(self) -> number static int l_get_wear(lua_State *L); + // set_wear(self, number) + static int l_set_wear(lua_State *L); + // get_metadata(self) -> string static int l_get_metadata(lua_State *L); + // set_metadata(self, string) + static int l_set_metadata(lua_State *L); + // clear(self) -> true static int l_clear(lua_State *L); -- cgit v1.2.3