====== cCraftingGrid class ======
cCraftingGrid represents the player's crafting grid. It is used only in [[API:plugin:OnCraftingNoRecipe|OnCraftingNoRecipe]], [[API:plugin:OnPostCrafting|OnPostCrafting]] and [[API:plugin:OnPreCrafting|OnPreCrafting]] hooks. Plugins may use it to inspect the items the player placed on their crafting grid.

===== Functions =====
^ Function Name ^ Parameters ^ Return value ^ Notes ^
| Clear | | | Clears the entire grid |
| ConsumeGrid | [[API:cCraftingGrid|CraftingGrid]] | | Consumes items specified in CraftingGrid from the current contents |
| Dump | | | DEBUG build: Dumps the contents of the grid to the log. RELEASE build: no action |
| GetHeight | | number | Returns the height of the grid |
| GetItem | x, y | [[API:cItem|cItem]] | Returns the item at the specified coords |
| GetWidth | | number | Returns the width of the grid |
| SetItem | x, y, [[API:cItem|cItem]] | | Sets the item at the specified coords |
| SetItem | x, y, ItemType, ItemCount, ItemDamage | | Sets the item at the specified coords |