summaryrefslogtreecommitdiffstats
path: root/Server
diff options
context:
space:
mode:
authorLane Kolbly <lane@rscheme.org>2017-07-23 11:46:38 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2017-07-23 11:46:38 +0200
commit87af95b67cb45b72bffd77f7744dc1a10cb3f25a (patch)
tree516a9c969936fc0d42a251f4462a5d1f92781230 /Server
parentCreepers explode when burned by flint and steel (#3865) (diff)
downloadcuberite-87af95b67cb45b72bffd77f7744dc1a10cb3f25a.tar
cuberite-87af95b67cb45b72bffd77f7744dc1a10cb3f25a.tar.gz
cuberite-87af95b67cb45b72bffd77f7744dc1a10cb3f25a.tar.bz2
cuberite-87af95b67cb45b72bffd77f7744dc1a10cb3f25a.tar.lz
cuberite-87af95b67cb45b72bffd77f7744dc1a10cb3f25a.tar.xz
cuberite-87af95b67cb45b72bffd77f7744dc1a10cb3f25a.tar.zst
cuberite-87af95b67cb45b72bffd77f7744dc1a10cb3f25a.zip
Diffstat (limited to 'Server')
-rw-r--r--Server/Plugins/APIDump/APIDesc.lua36
1 files changed, 36 insertions, 0 deletions
diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua
index 58a79fb66..288466303 100644
--- a/Server/Plugins/APIDump/APIDesc.lua
+++ b/Server/Plugins/APIDump/APIDesc.lua
@@ -3019,6 +3019,17 @@ local Hash = cCryptoHash.sha1HexString("DataToHash")
},
Notes = "Adds the specified amount of speed in the Z axis direction.",
},
+ ApplyArmorDamage =
+ {
+ Params =
+ {
+ {
+ Name = "DamageBlocked",
+ Type = "number",
+ },
+ },
+ Notes = "Lowers armor durability, as if the armor blocked the given amount of damage.",
+ },
ArmorCoversAgainst =
{
Params =
@@ -3124,6 +3135,31 @@ local Hash = cCryptoHash.sha1HexString("DataToHash")
},
Notes = "Returns the entity classname that this class implements. Each descendant overrides this function.",
},
+ GetEnchantmentCoverAgainst =
+ {
+ Params =
+ {
+ {
+ Name = "AttackerEntity",
+ Type = "cEntity",
+ },
+ {
+ Name = "DamageType",
+ Type = "eDamageType",
+ },
+ {
+ Name = "RawDamage",
+ Type = "number",
+ },
+ },
+ Returns =
+ {
+ {
+ Type = "number",
+ },
+ },
+ Notes = "Returns the number of hitpoints out of RawDamage that the enchantments on the currently equipped armor would cover. See {{TakeDamageInfo}} for more information on attack damage.",
+ },
GetEntityType =
{
Returns =