aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_itemstackmeta.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/lua_api/l_itemstackmeta.h')
-rw-r--r--src/script/lua_api/l_itemstackmeta.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/script/lua_api/l_itemstackmeta.h b/src/script/lua_api/l_itemstackmeta.h
index 241f04c4c..46c40ab30 100644
--- a/src/script/lua_api/l_itemstackmeta.h
+++ b/src/script/lua_api/l_itemstackmeta.h
@@ -40,7 +40,18 @@ private:
virtual void reportMetadataChange();
+ void setToolCapabilities(const ToolCapabilities &caps)
+ {
+ istack->metadata.setToolCapabilities(caps);
+ }
+
+ void clearToolCapabilities()
+ {
+ istack->metadata.clearToolCapabilities();
+ }
+
// Exported functions
+ static int l_set_tool_capabilities(lua_State *L);
// garbage collector
static int gc_object(lua_State *L);