1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add set_name(), set_count(), set_wear() and set_metadata() to Lua ItemStack

This commit is contained in:
PilzAdam 2013-09-28 22:47:09 +02:00
parent 731392866f
commit a9c0961e0c
3 changed files with 79 additions and 0 deletions

View file

@ -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);