Better argument documentation
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
This commit is contained in:
parent
f6fd709e93
commit
cc7947cd18
|
@ -27,8 +27,8 @@ Register a callback that will be run whenever a craft is registered via unified_
|
||||||
|
|
||||||
unified_inventory.register_on_craft_registered(
|
unified_inventory.register_on_craft_registered(
|
||||||
callback = function(item_name, options) ... end
|
callback = function(item_name, options) ... end
|
||||||
-- The first argument passed to the callback will be the name of the item with no count (e.g. "default:stone 10" > "default:stone")
|
-- item_name (string): equivalent to `ItemStack:get_name()`
|
||||||
-- The second argument will be the options passed in to the original unified_inventory.register_craft(options) function call
|
-- options (table): definition table of crafts registered by `unified_inventory.register_craft`
|
||||||
)
|
)
|
||||||
|
|
||||||
Register a callback that will be run after all mods have loaded and after the unified_inventory mod has initialised all its internal structures:
|
Register a callback that will be run after all mods have loaded and after the unified_inventory mod has initialised all its internal structures:
|
||||||
|
|
Loading…
Reference in New Issue