| Name | Parameters | Return value | Notes |
| () (constructor) |
Width, Height |
cCraftingGrid |
Creates a new CraftingGrid object. This new crafting grid is not related to any player, but may be needed for cCraftingRecipe's ConsumeIngredients function. |
| Clear |
|
|
Clears the entire grid |
| ConsumeGrid |
CraftingGrid |
|
Consumes items specified in CraftingGrid from the current contents. Used internally by cCraftingRecipe's ConsumeIngredients() function, but available to plugins, too. |
| 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 |
cItem |
Returns the item at the specified coords |
| GetWidth |
|
number |
Returns the width of the grid |
| SetItem |
x, y, ItemType, ItemCount, ItemDamage |
|
Sets the item at the specified coords |
| SetItem |
x, y, cItem |
|
Sets the item at the specified coords |