summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-26 21:37:15 +0200
committermadmaxoft <github@xoft.cz>2013-09-26 21:37:15 +0200
commitb4c7b1879385932706734e30926b362b1aea1c09 (patch)
tree6a87d36e17809b0635b44c4d815f0f3ee12ff367 /MCServer/Plugins/APIDump
parentAPIDump: completed cChestEntity docs. (diff)
downloadcuberite-b4c7b1879385932706734e30926b362b1aea1c09.tar
cuberite-b4c7b1879385932706734e30926b362b1aea1c09.tar.gz
cuberite-b4c7b1879385932706734e30926b362b1aea1c09.tar.bz2
cuberite-b4c7b1879385932706734e30926b362b1aea1c09.tar.lz
cuberite-b4c7b1879385932706734e30926b362b1aea1c09.tar.xz
cuberite-b4c7b1879385932706734e30926b362b1aea1c09.tar.zst
cuberite-b4c7b1879385932706734e30926b362b1aea1c09.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/APIDump/APIDesc.lua11
1 files changed, 8 insertions, 3 deletions
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua
index 69e1e213d..333d1abe3 100644
--- a/MCServer/Plugins/APIDump/APIDesc.lua
+++ b/MCServer/Plugins/APIDump/APIDesc.lua
@@ -511,16 +511,21 @@ World:ForEachChestInChunk(Player:GetChunkX(), Player:GetChunkZ(),
cCraftingGrid =
{
Desc = [[
- cCraftingGrid represents the player's crafting grid. It is used only in
+ cCraftingGrid represents the player's crafting grid. It is used in
{{OnCraftingNoRecipe|OnCraftingNoRecipe}}, {{OnPostCrafting|OnPostCrafting}} and
{{OnPreCrafting|OnPreCrafting}} hooks. Plugins may use it to inspect the items the player placed
- on their crafting grid.
+ on their crafting grid.</p>
+ <p>
+ Also, an object of this type is used in {{cCraftingRecipe}}'s ConsumeIngredients() function for
+ specifying the exact number of ingredients to consume in that recipe; plugins may use this to
+ apply the crafting recipe.</p>
]],
Functions =
{
+ constructor = { Params = "Width, Height", Return = "cCraftingGrid", Notes = "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 = { Params = "", Return = "", Notes = "Clears the entire grid" },
- ConsumeGrid = { Params = "{{cCraftingGrid|CraftingGrid}}", Return = "", Notes = "Consumes items specified in CraftingGrid from the current contents" },
+ ConsumeGrid = { Params = "{{cCraftingGrid|CraftingGrid}}", Return = "", Notes = "Consumes items specified in CraftingGrid from the current contents. Used internally by {{cCraftingRecipe}}'s ConsumeIngredients() function, but available to plugins, too." },
Dump = { Params = "", Return = "", Notes = "DEBUG build: Dumps the contents of the grid to the log. RELEASE build: no action" },
GetHeight = { Params = "", Return = "number", Notes = "Returns the height of the grid" },
GetItem = { Params = "x, y", Return = "{{cItem|cItem}}", Notes = "Returns the item at the specified coords" },