#include <l_item.h>
|
template<> |
bool | readParam (lua_State *L, int index) |
|
static bool | isNaN (lua_State *L, int idx) |
|
template<typename T > |
static T | readParam (lua_State *L, int index) |
| Read a value using a template type T from Lua State L and index. More...
|
|
template<typename T > |
static T | readParam (lua_State *L, int index, const T &default_value) |
| Read a value using a template type T from Lua State L and index. More...
|
|
◆ LuaItemStack()
LuaItemStack::LuaItemStack |
( |
const ItemStack & |
item | ) |
|
◆ ~LuaItemStack()
LuaItemStack::~LuaItemStack |
( |
| ) |
|
|
default |
◆ checkobject()
LuaItemStack * LuaItemStack::checkobject |
( |
lua_State * |
L, |
|
|
int |
narg |
|
) |
| |
|
static |
References className.
Referenced by l_add_item(), l_add_wear(), l_clear(), l_get_count(), l_get_definition(), l_get_description(), l_get_free_space(), l_get_meta(), l_get_metadata(), l_get_name(), l_get_short_description(), l_get_stack_max(), l_get_tool_capabilities(), l_get_wear(), l_is_empty(), l_is_known(), l_item_fits(), l_peek_item(), l_replace(), l_set_count(), l_set_metadata(), l_set_name(), l_set_wear(), l_take_item(), l_to_string(), l_to_table(), mt_tostring(), and read_item().
◆ create()
int LuaItemStack::create |
( |
lua_State * |
L, |
|
|
const ItemStack & |
item |
|
) |
| |
|
static |
References LuaItemStack(), className, and NO_MAP_LOCK_REQUIRED.
Referenced by ScriptApiDetached::detached_inventory_AllowPut(), ScriptApiDetached::detached_inventory_AllowTake(), ScriptApiDetached::detached_inventory_OnPut(), ScriptApiDetached::detached_inventory_OnTake(), ScriptApiItem::item_CraftPredict(), ScriptApiItem::item_OnCraft(), ScriptApiItem::item_OnDrop(), ScriptApiItem::item_OnPlace(), ScriptApiItem::item_OnSecondaryUse(), ScriptApiItem::item_OnUse(), InvRef::l_add_item(), l_add_item(), ModApiCraft::l_get_craft_result(), InvRef::l_get_stack(), LuaLocalPlayer::l_get_wielded_item(), ObjectRef::l_get_wielded_item(), l_item_fits(), l_peek_item(), InvRef::l_remove_item(), l_take_item(), ScriptApiNodemeta::nodemeta_inventory_AllowPut(), ScriptApiNodemeta::nodemeta_inventory_AllowTake(), ScriptApiNodemeta::nodemeta_inventory_OnPut(), ScriptApiNodemeta::nodemeta_inventory_OnTake(), ScriptApiClient::on_item_use(), push_items(), and ScriptApiPlayer::pushPutTakeArguments().
◆ create_object()
int LuaItemStack::create_object |
( |
lua_State * |
L | ) |
|
|
static |
◆ gc_object()
int LuaItemStack::gc_object |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ getItem() [1/2]
◆ getItem() [2/2]
const ItemStack & LuaItemStack::getItem |
( |
| ) |
const |
◆ l_add_item()
int LuaItemStack::l_add_item |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_add_wear()
int LuaItemStack::l_add_wear |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_clear()
int LuaItemStack::l_clear |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_get_count()
int LuaItemStack::l_get_count |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_get_definition()
int LuaItemStack::l_get_definition |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_get_description()
int LuaItemStack::l_get_description |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_get_free_space()
int LuaItemStack::l_get_free_space |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_get_meta()
int LuaItemStack::l_get_meta |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_get_metadata()
int LuaItemStack::l_get_metadata |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_get_name()
int LuaItemStack::l_get_name |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_get_short_description()
int LuaItemStack::l_get_short_description |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_get_stack_max()
int LuaItemStack::l_get_stack_max |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_get_tool_capabilities()
int LuaItemStack::l_get_tool_capabilities |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_get_wear()
int LuaItemStack::l_get_wear |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_is_empty()
int LuaItemStack::l_is_empty |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_is_known()
int LuaItemStack::l_is_known |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_item_fits()
int LuaItemStack::l_item_fits |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_peek_item()
int LuaItemStack::l_peek_item |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_replace()
int LuaItemStack::l_replace |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_set_count()
int LuaItemStack::l_set_count |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_set_metadata()
int LuaItemStack::l_set_metadata |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_set_name()
int LuaItemStack::l_set_name |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_set_wear()
int LuaItemStack::l_set_wear |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_take_item()
int LuaItemStack::l_take_item |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_to_string()
int LuaItemStack::l_to_string |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ l_to_table()
int LuaItemStack::l_to_table |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ mt_tostring()
int LuaItemStack::mt_tostring |
( |
lua_State * |
L | ) |
|
|
staticprivate |
◆ Register()
void LuaItemStack::Register |
( |
lua_State * |
L | ) |
|
|
static |
◆ className
const char LuaItemStack::className = "ItemStack" |
|
staticprivate |
◆ m_stack
Referenced by getItem(), l_add_item(), l_add_wear(), l_clear(), l_get_count(), l_get_definition(), l_get_description(), l_get_free_space(), l_get_meta(), l_get_metadata(), l_get_name(), l_get_short_description(), l_get_stack_max(), l_get_tool_capabilities(), l_get_wear(), l_is_empty(), l_is_known(), l_item_fits(), l_peek_item(), l_replace(), l_set_count(), l_set_metadata(), l_set_name(), l_set_wear(), l_take_item(), l_to_string(), l_to_table(), and mt_tostring().
◆ methods
const luaL_Reg LuaItemStack::methods |
|
staticprivate |
Initial value:= {
{0,0}
}
#define luamethod(class, name)
Definition: l_internal.h:31
Referenced by Register().
The documentation for this class was generated from the following files: