aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api/s_item.h
diff options
context:
space:
mode:
authorElias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com>2020-11-04 16:44:42 +0100
committerGitHub <noreply@github.com>2020-11-04 16:44:42 +0100
commit5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc (patch)
treec980d614fec4a5495798be3e79e033229062c3cd /src/script/cpp_api/s_item.h
parent28f6a79706b088c37268a59d90878220dc4ef9c7 (diff)
parent3af10766fd2b58b068e970266724d7eb10e9316b (diff)
downloaddragonfireclient-5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc.tar.xz
Merge branch 'master' into master
Diffstat (limited to 'src/script/cpp_api/s_item.h')
-rw-r--r--src/script/cpp_api/s_item.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/script/cpp_api/s_item.h b/src/script/cpp_api/s_item.h
index 25a3501f9..530f14bbc 100644
--- a/src/script/cpp_api/s_item.h
+++ b/src/script/cpp_api/s_item.h
@@ -31,32 +31,32 @@ class ModApiItemMod;
class InventoryList;
struct InventoryLocation;
-class ScriptApiItem
-: virtual public ScriptApiBase
+class ScriptApiItem : virtual public ScriptApiBase
{
public:
- bool item_OnDrop(ItemStack &item,
- ServerActiveObject *dropper, v3f pos);
- bool item_OnPlace(ItemStack &item,
- ServerActiveObject *placer, const PointedThing &pointed);
- bool item_OnUse(ItemStack &item,
- ServerActiveObject *user, const PointedThing &pointed);
- bool item_OnSecondaryUse(ItemStack &item,
- ServerActiveObject *user, const PointedThing &pointed);
+ bool item_OnDrop(ItemStack &item, ServerActiveObject *dropper, v3f pos);
+ bool item_OnPlace(ItemStack &item, ServerActiveObject *placer,
+ const PointedThing &pointed);
+ bool item_OnUse(ItemStack &item, ServerActiveObject *user,
+ const PointedThing &pointed);
+ bool item_OnSecondaryUse(ItemStack &item, ServerActiveObject *user,
+ const PointedThing &pointed);
bool item_OnCraft(ItemStack &item, ServerActiveObject *user,
- const InventoryList *old_craft_grid, const InventoryLocation &craft_inv);
+ const InventoryList *old_craft_grid,
+ const InventoryLocation &craft_inv);
bool item_CraftPredict(ItemStack &item, ServerActiveObject *user,
- const InventoryList *old_craft_grid, const InventoryLocation &craft_inv);
+ const InventoryList *old_craft_grid,
+ const InventoryLocation &craft_inv);
protected:
friend class LuaItemStack;
friend class ModApiItemMod;
- bool getItemCallback(const char *name, const char *callbackname, const v3s16 *p = nullptr);
+ bool getItemCallback(const char *name, const char *callbackname,
+ const v3s16 *p = nullptr);
/*!
* Pushes a `pointed_thing` tabe to the stack.
* \param hitpoint If true, the exact pointing location is also pushed
*/
void pushPointedThing(const PointedThing &pointed, bool hitpoint = false);
-
};