| Name | Parameters | Return value | Notes |
| () (constructor) |
|
|
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 |
|
|
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 |
|
|
Returns the height of the grid |
| GetItem |
|
|
Returns the item at the specified coords |
| GetWidth |
|
|
Returns the width of the grid |
| SetItem |
| x | number | | y | number | | ItemType | number | | ItemCount | number | | ItemDamage | number |
|
|
Sets the item at the specified coords |
| SetItem |
|
|
Sets the item at the specified coords |