summaryrefslogtreecommitdiff
path: root/src/script/cpp_api/s_client.h
diff options
context:
space:
mode:
authorVincent Glize <vincentglize@hotmail.fr>2017-10-02 22:09:49 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-10-02 22:09:49 +0200
commit4e19791cde6b203ad853905d8c1481c43004a7ea (patch)
tree9db628a01d6678b453fe7ae2b49c60c38179a29c /src/script/cpp_api/s_client.h
parentb9fb3cea33f495f0c9c9d7d74ed67af6aab78b04 (diff)
downloadminetest-4e19791cde6b203ad853905d8c1481c43004a7ea.tar.gz
minetest-4e19791cde6b203ad853905d8c1481c43004a7ea.tar.bz2
minetest-4e19791cde6b203ad853905d8c1481c43004a7ea.zip
[CSM] Add callback on open inventory (#5793)
Diffstat (limited to 'src/script/cpp_api/s_client.h')
-rw-r--r--src/script/cpp_api/s_client.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/cpp_api/s_client.h b/src/script/cpp_api/s_client.h
index 074a68e39..717fbb4cc 100644
--- a/src/script/cpp_api/s_client.h
+++ b/src/script/cpp_api/s_client.h
@@ -57,5 +57,7 @@ public:
bool on_placenode(const PointedThing &pointed, const ItemDefinition &item);
bool on_item_use(const ItemStack &item, const PointedThing &pointed);
+ bool on_inventory_open(Inventory *inventory);
+
void setEnv(ClientEnvironment *env);
};