18 static const luaL_Reg
methods[];
67 static int l_clear(lua_State *L);
148 static void *
packIn(lua_State *L,
int idx);
149 static void packOut(lua_State *L,
void *ptr);
165 static void Initialize(lua_State *L,
int top);
#define DISABLE_CLASS_COPY(C)
Definition basic_macros.h:26
static int l_set_wear(lua_State *L)
Definition l_item.cpp:115
static const char className[]
Definition l_item.h:153
const ItemStack & getItem() const
Definition l_item.h:139
static int l_add_wear(lua_State *L)
Definition l_item.cpp:339
LuaItemStack(const ItemStack &item)
Definition l_item.cpp:474
static int l_take_item(lua_State *L)
Definition l_item.cpp:415
static int l_get_free_space(lua_State *L)
Definition l_item.cpp:278
static int gc_object(lua_State *L)
Definition l_item.cpp:19
static int l_add_item(lua_State *L)
Definition l_item.cpp:387
ItemStack m_stack
Definition l_item.h:13
static int l_equals(lua_State *L)
Definition l_item.cpp:443
static int create(lua_State *L, const ItemStack &item)
Definition l_item.cpp:495
static int l_set_name(lua_State *L)
Definition l_item.cpp:56
static int l_set_count(lua_State *L)
Definition l_item.cpp:84
static int l_item_fits(lua_State *L)
Definition l_item.cpp:401
static int l_get_tool_capabilities(lua_State *L)
Definition l_item.cpp:324
static int l_add_wear_by_uses(lua_State *L)
Definition l_item.cpp:357
static int l_to_string(lua_State *L)
Definition l_item.cpp:218
static int l_get_short_description(lua_State *L)
Definition l_item.cpp:188
ItemStack & getItem()
Definition l_item.h:140
static void packOut(lua_State *L, void *ptr)
Definition l_item.cpp:511
static int create_object(lua_State *L)
Definition l_item.cpp:481
static int l_set_metadata(lua_State *L)
Definition l_item.cpp:161
static int mt_tostring(lua_State *L)
Definition l_item.cpp:27
static int l_get_name(lua_State *L)
Definition l_item.cpp:46
static int l_clear(lua_State *L)
Definition l_item.cpp:198
static int l_is_empty(lua_State *L)
Definition l_item.cpp:36
static int l_replace(lua_State *L)
Definition l_item.cpp:208
static int l_get_wear(lua_State *L)
Definition l_item.cpp:105
static int l_get_count(lua_State *L)
Definition l_item.cpp:74
static const luaL_Reg methods[]
Definition l_item.h:536
static int l_get_definition(lua_State *L)
Definition l_item.cpp:302
static int l_get_stack_max(lua_State *L)
Definition l_item.cpp:268
static int l_get_description(lua_State *L)
Definition l_item.cpp:178
static int l_to_table(lua_State *L)
Definition l_item.cpp:228
static void * packIn(lua_State *L, int idx)
Definition l_item.cpp:505
static int l_get_wear_bar_params(lua_State *L)
Definition l_item.cpp:372
static int l_get_metadata(lua_State *L)
Definition l_item.cpp:146
static int l_get_meta(lua_State *L)
Definition l_item.cpp:136
static int l_is_known(lua_State *L)
Definition l_item.cpp:289
static int l_peek_item(lua_State *L)
Definition l_item.cpp:429
static int l_register_alias_raw(lua_State *L)
Definition l_item.cpp:662
static void InitializeAsync(lua_State *L, int top)
Definition l_item.cpp:725
static int l_unregister_item_raw(lua_State *L)
Definition l_item.cpp:641
static int l_register_item_raw(lua_State *L)
Definition l_item.cpp:574
static void InitializeClient(lua_State *L, int top)
Definition l_item.cpp:732
static int l_get_content_id(lua_State *L)
Definition l_item.cpp:678
static void Initialize(lua_State *L, int top)
Definition l_item.cpp:716
static int l_get_name_from_content_id(lua_State *L)
Definition l_item.cpp:704
#define idx(x, y)
Definition noise.cpp:490
Definition inventory.h:19