ItemStack & ItemStackMetaRef: minor clarification of annotations
This commit is contained in:
@@ -44,7 +44,7 @@ function ItemStack:get_definition() end
|
|||||||
--- @return number
|
--- @return number
|
||||||
function ItemStack:get_free_space() end
|
function ItemStack:get_free_space() end
|
||||||
|
|
||||||
--- @return MetaDataRef
|
--- @return ItemStackMetaRef
|
||||||
function ItemStack:get_meta() end
|
function ItemStack:get_meta() end
|
||||||
|
|
||||||
--- Returns a string, for compatibility reasons this is equal to get_meta():get_string("")
|
--- 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
|
function ItemStack:get_metadata() end
|
||||||
|
|
||||||
--- Returns item name (e.g. "default:stone")
|
--- Returns item name (e.g. "default:stone")
|
||||||
--- @return string
|
--- @return ItemStackString
|
||||||
function ItemStack:get_name() end
|
function ItemStack:get_name() end
|
||||||
|
|
||||||
--- Returns true/false (success), clears item on failure
|
--- Returns true/false (success), clears item on failure
|
||||||
|
|||||||
@@ -9,3 +9,7 @@ ItemStackMetaRef = {}
|
|||||||
--- * Overrides the item's tool capabilities
|
--- * Overrides the item's tool capabilities
|
||||||
--- * A nil value will clear the override data and restore the original behavior.
|
--- * A nil value will clear the override data and restore the original behavior.
|
||||||
function ItemStackMetaRef:set_tool_capabilities(tool_capabilities) end
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user