ItemStack & ItemStackMetaRef: 5.18 update annotations
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user