ItemStack & ItemStackMetaRef: minor clarification of annotations

This commit is contained in:
Van
2026-04-27 19:39:07 +03:00
parent 8b995b5176
commit c4e69bae77
2 changed files with 6 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ function ItemStack:get_definition() end
--- @return number
function ItemStack:get_free_space() end
--- @return MetaDataRef
--- @return ItemStackMetaRef
function ItemStack:get_meta() end
--- Returns a string, for compatibility reasons this is equal to get_meta():get_string("")
@@ -52,7 +52,7 @@ function ItemStack:get_meta() end
function ItemStack:get_metadata() end
--- Returns item name (e.g. "default:stone")
--- @return string
--- @return ItemStackString
function ItemStack:get_name() end
--- Returns true/false (success), clears item on failure

View File

@@ -9,3 +9,7 @@ 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
--- * 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.
function ItemStackMetaRef:set_wear_bar_params(wear_bar_params) end