mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Add set_name(), set_count(), set_wear() and set_metadata() to Lua ItemStack
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user