diff options
author | madmaxoft <github@xoft.cz> | 2014-07-18 23:51:36 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-07-18 23:51:36 +0200 |
commit | 76b33970b05c6ee8c018198904f8054b23df44d7 (patch) | |
tree | 1edf71ddb36ffa03abf97518005186f462bfee11 /MCServer/Plugins/APIDump/APIDesc.lua | |
parent | Merge branch 'Entities' (diff) | |
parent | Debuggers: Optimized and commented the /rmitem handler. (diff) | |
download | cuberite-76b33970b05c6ee8c018198904f8054b23df44d7.tar cuberite-76b33970b05c6ee8c018198904f8054b23df44d7.tar.gz cuberite-76b33970b05c6ee8c018198904f8054b23df44d7.tar.bz2 cuberite-76b33970b05c6ee8c018198904f8054b23df44d7.tar.lz cuberite-76b33970b05c6ee8c018198904f8054b23df44d7.tar.xz cuberite-76b33970b05c6ee8c018198904f8054b23df44d7.tar.zst cuberite-76b33970b05c6ee8c018198904f8054b23df44d7.zip |
Diffstat (limited to 'MCServer/Plugins/APIDump/APIDesc.lua')
-rw-r--r-- | MCServer/Plugins/APIDump/APIDesc.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua index 0e626c580..e65da1d16 100644 --- a/MCServer/Plugins/APIDump/APIDesc.lua +++ b/MCServer/Plugins/APIDump/APIDesc.lua @@ -1155,6 +1155,7 @@ These ItemGrids are available in the API and can be manipulated by the plugins, HasItems = { Params = "{{cItem|cItem}}", Return = "bool", Notes = "Returns true if there are at least as many items of the specified type as in the parameter" }, HowManyCanFit = { Params = "{{cItem|cItem}}", Return = "number", Notes = "Returns the number of the specified items that can fit in the storage, including empty slots" }, HowManyItems = { Params = "{{cItem|cItem}}", Return = "number", Notes = "Returns the number of the specified items that are currently stored" }, + RemoveItem = { Params = "{{cItem}}", Return = "number", Notes = "Removes the specified item from the inventory, as many as possible, up to the item's m_ItemCount. Returns the number of items that were removed." }, RemoveOneEquippedItem = { Params = "", Return = "", Notes = "Removes one item from the hotbar's currently selected slot" }, SetArmorSlot = { Params = "ArmorSlotNum, {{cItem|cItem}}", Return = "", Notes = "Sets the specified armor slot contents" }, SetEquippedSlotNum = { Params = "EquippedSlotNum", Return = "", Notes = "Sets the currently selected hotbar slot number" }, @@ -1384,6 +1385,7 @@ local Item5 = cItem(E_ITEM_DIAMOND_CHESTPLATE, 1, 0, "thorns=1;unbreaking=3"); { Params = "SlotNum", Return = "bool", Notes = "Returns true if the specified slot is empty, or an invalid slot is specified" }, { Params = "X, Y", Return = "bool", Notes = "Returns true if the specified slot is empty, or an invalid slot is specified" }, }, + RemoveItem = { Params = "{{cItem}}", Return = "number", Notes = "Removes the specified item from the grid, as many as possible, up to the item's m_ItemCount. Returns the number of items that were removed." }, RemoveOneItem = { { Params = "SlotNum", Return = "{{cItem|cItem}}", Notes = "Removes one item from the stack in the specified slot and returns it as a single cItem. Empty slots are skipped and an empty item is returned" }, |