35 bool item_OnUse(std::optional<ItemStack> &item,
Definition inventory.h:157
ScriptApiBase(ScriptingType type)
Definition s_base.cpp:64
bool item_OnUse(std::optional< ItemStack > &item, ServerActiveObject *user, const PointedThing &pointed)
Definition s_item.cpp:90
bool item_OnCraft(ItemStack &item, ServerActiveObject *user, const InventoryList *old_craft_grid, const InventoryLocation &craft_inv)
Definition s_item.cpp:148
void pushPointedThing(const PointedThing &pointed, bool hitpoint=false)
Definition s_item.cpp:262
friend class LuaItemStack
Definition s_item.h:45
bool getItemCallback(const char *name, const char *callbackname, const v3s16 *p=nullptr)
Definition s_item.cpp:218
bool item_OnSecondaryUse(std::optional< ItemStack > &item, ServerActiveObject *user, const PointedThing &pointed)
Definition s_item.cpp:120
bool item_CraftPredict(ItemStack &item, ServerActiveObject *user, const InventoryList *old_craft_grid, const InventoryLocation &craft_inv)
Definition s_item.cpp:180
bool item_OnPlace(std::optional< ItemStack > &item, ServerActiveObject *placer, const PointedThing &pointed)
Definition s_item.cpp:55
friend class ModApiItem
Definition s_item.h:46
u16 item_OnDrop(const ItemStack &item, ServerActiveObject *dropper, v3f pos)
Definition s_item.cpp:21
Definition serveractiveobject.h:42
core::vector3d< s16 > v3s16
Definition irr_v3d.h:13
core::vector3df v3f
Definition irr_v3d.h:11
Definition inventorymanager.h:18
Definition inventory.h:21
An active object or node which is selected by a ray on the map.
Definition pointedthing.h:22
static std::string p(std::string path)
Definition test_filesys.cpp:66