diff --git a/doc/mod_api.txt b/doc/mod_api.txt index 67a572b..0d30ad8 100644 --- a/doc/mod_api.txt +++ b/doc/mod_api.txt @@ -27,8 +27,8 @@ Register a callback that will be run whenever a craft is registered via unified_ unified_inventory.register_on_craft_registered( 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") - -- The second argument will be the options passed in to the original unified_inventory.register_craft(options) function call + -- item_name (string): equivalent to `ItemStack:get_name()` + -- 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: