ItemStack & ItemStackMetaRef: 5.18 update annotations

This commit is contained in:
Van
2026-11-08 20:46:47 +03:00
parent a94b014166
commit 2ea20a7960
2 changed files with 164 additions and 107 deletions

View File

@@ -1,15 +1,20 @@
--- @meta
---Version: 5.18
---@meta
--- ItemStack metadata: reference extra data and functionality stored in a stack.
--- Can be obtained via `item:get_meta()`.
---ItemStack metadata: reference extra data and functionality stored in a stack.
---
--- @class ItemStackMetaRef: MetaDataRef
---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.
---Overrides the item's tool capabilities.
---
---A `nil` value will clear the override data and restore the original behavior.
---@param tool_capabilities ItemDefinition.tool_capabilities_table
function ItemStackMetaRef:set_tool_capabilities(tool_capabilities) end
--- * Overrides the item's wear bar parameters (see "Wear Bar Color" section)
--- * A nil value will clear the override data and restore the original behavior.
---Overrides the item's wear bar parameters (see "Wear Bar Color" section)
---
---A `nil` value will clear the override data and restore the original behavior.
---@param wear_bar_params ItemDefinition.wearbar_color_table
function ItemStackMetaRef:set_wear_bar_params(wear_bar_params) end