====== OnPostCrafting hook callback function ======
OnPostCrafting() is called when a player changes contents of their crafting grid, after the recipe has been established by MCServer. Plugins may use this to modify the resulting recipe or provide a recipe if a built-in one isn't found.

If a plugin implements custom recipes, it should do so using the [[API:plugin:OnPreCrafting|OnPreCrafting]]() hook, because that will save the server from going through the built-in recipes. The OnPostCrafting hook is intended as a notification, with a chance to tweak the result.

===== Function signature =====
<code lua>
function OnPostCrafting(Player, CraftingGrid, Recipe)
</code>
Parameters:
| Player | [[API:cPlayer|cPlayer]] | The player who has changed the crafting grid contents |
| CraftingGrid | [[API:cCraftingGrid|cCraftingGrid]] | The new crafting grid contents |
| Recipe | [[API:cCraftingRecipe|cCraftingRecipe]] | The recipe that MCServer has decided to use |

===== Return values =====
If the function returns false or no value, other plugins' callbacks are called. If the function returns true, no other callbacks are called for this event. In either case, MCServer uses the value of Recipe as the recipe to be presented to the player.

===== Registering the callback =====
To register your plugin to receive a callback through this function, use the hook [[api:plugin:hooks|HOOK_POST_CRAFTING]]
<code lua>
cPluginManager:Get():AddHook(Plugin, cPluginManager.HOOK_POST_CRAFTING);
</code>
