From b571294b6e24c3ae152f2017caf4013365efdccf Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Sun, 20 Oct 2013 23:43:09 +0200 Subject: APIDump: Added link from cItem to the global ItemToString() et al. --- MCServer/Plugins/APIDump/APIDesc.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'MCServer/Plugins/APIDump') diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua index 5893825b8..1a7072f04 100644 --- a/MCServer/Plugins/APIDump/APIDesc.lua +++ b/MCServer/Plugins/APIDump/APIDesc.lua @@ -1100,7 +1100,11 @@ These ItemGrids are available in the API and can be manipulated by the plugins, {{cEnchantments}} class and are accessible through the m_Enchantments variable.

To test if a cItem object represents an empty item, do not compare the item type nor the item count, - but rather use the IsEmpty() function. + but rather use the IsEmpty() function.

+

+ To translate from a cItem to its string representation, use the {{Globals#functions|global function}} + ItemToString(), ItemTypeToString() or ItemToFullString(). To translate from a string to a cItem, + use the StringToItem() global function. ]], Functions = -- cgit v1.2.3