21 lines
774 B
Lua
21 lines
774 B
Lua
---Version: 5.18
|
|
---@meta
|
|
|
|
---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.
|
|
---@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.
|
|
---@param wear_bar_params ItemDefinition.wearbar_color_table
|
|
function ItemStackMetaRef:set_wear_bar_params(wear_bar_params) end
|