IDE hinting: add MetaDataRef & all it inheritors

This commit is contained in:
Alexander Chibrikin
2022-12-27 04:25:40 +03:00
parent f8b932d5f9
commit 062c3709f5
6 changed files with 107 additions and 48 deletions

View File

@@ -0,0 +1,9 @@
--- ItemStack metadata: reference extra data and functionality stored in a stack.
--- Can be obtained via `item:get_meta()`.
---
--- @class ItemStackMetaRef: MetaDataRef
ItemStackMetaRef = {}
--- * Overrides the item's tool capabilities
--- * A nil value will clear the override data and restore the original behavior.
function ItemStackMetaRef:set_tool_capabilities(tool_capabilities) end