diff options
author | madmaxoft <github@xoft.cz> | 2013-10-24 16:32:51 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-10-24 16:32:51 +0200 |
commit | 7c2ba5544205a4b59ec34b8b487f7f3b7e32af74 (patch) | |
tree | b94fe0821274069508edcbf68bda9e480ce5cb3b | |
parent | APIDump: Documented cPickup. (diff) | |
download | cuberite-7c2ba5544205a4b59ec34b8b487f7f3b7e32af74.tar cuberite-7c2ba5544205a4b59ec34b8b487f7f3b7e32af74.tar.gz cuberite-7c2ba5544205a4b59ec34b8b487f7f3b7e32af74.tar.bz2 cuberite-7c2ba5544205a4b59ec34b8b487f7f3b7e32af74.tar.lz cuberite-7c2ba5544205a4b59ec34b8b487f7f3b7e32af74.tar.xz cuberite-7c2ba5544205a4b59ec34b8b487f7f3b7e32af74.tar.zst cuberite-7c2ba5544205a4b59ec34b8b487f7f3b7e32af74.zip |
-rw-r--r-- | MCServer/Plugins/APIDump/APIDesc.lua | 41 |
1 files changed, 37 insertions, 4 deletions
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua index 0d7770a49..e273924be 100644 --- a/MCServer/Plugins/APIDump/APIDesc.lua +++ b/MCServer/Plugins/APIDump/APIDesc.lua @@ -693,10 +693,20 @@ World:ForEachChestInChunk(Player:GetChunkX(), Player:GetChunkZ(), cEnchantments = { - Desc = [[This class is the storage for enchantments for a single {{cItem|cItem}} object, through its m_Enchantments member variable. Although it is possible to create a standalone object of this class, it is not yet used in any API directly. -</p> - <p>Enchantments can be initialized either programmatically by calling the individual functions (SetLevel()), or by using a string description of the enchantment combination. This string description is in the form "id=lvl;id=lvl;...;id=lvl;", where id is either a numerical ID of the enchantment, or its textual representation from the table below, and lvl is the desired enchantment level. The class can also create its string description from its current contents; however that string description will only have the numerical IDs. -]], + Desc = [[ + This class is the storage for enchantments for a single {{cItem|cItem}} object, through its + m_Enchantments member variable. Although it is possible to create a standalone object of this class, + it is not yet used in any API directly.</p> + <p> + Enchantments can be initialized either programmatically by calling the individual functions + (SetLevel()), or by using a string description of the enchantment combination. This string + description is in the form "id=lvl;id=lvl;...;id=lvl;", where id is either a numerical ID of the + enchantment, or its textual representation from the table below, and lvl is the desired enchantment + level. The class can also create its string description from its current contents; however that + string description will only have the numerical IDs.</p> + <p> + See the {{cItem}} class for usage examples. + ]], Functions = { constructor = @@ -715,6 +725,29 @@ World:ForEachChestInChunk(Player:GetChunkX(), Player:GetChunkZ(), }, Constants = { + -- Only list these enchantment IDs, as they don't really need any kind of documentation: + enchAquaAffinity = { Notes = "" }, + enchBaneOfArthropods = { Notes = "" }, + enchBlastProtection = { Notes = "" }, + enchEfficiency = { Notes = "" }, + enchFeatherFalling = { Notes = "" }, + enchFireAspect = { Notes = "" }, + enchFireProtection = { Notes = "" }, + enchFlame = { Notes = "" }, + enchFortune = { Notes = "" }, + enchInfinity = { Notes = "" }, + enchKnockback = { Notes = "" }, + enchLooting = { Notes = "" }, + enchPower = { Notes = "" }, + enchProjectileProtection = { Notes = "" }, + enchProtection = { Notes = "" }, + enchPunch = { Notes = "" }, + enchRespiration = { Notes = "" }, + enchSharpness = { Notes = "" }, + enchSilkTouch = { Notes = "" }, + enchSmite = { Notes = "" }, + enchThorns = { Notes = "" }, + enchUnbreaking = { Notes = "" }, }, }, |