From 994036a3b8b09f8da1b6ec2055cc7a5ceb05a776 Mon Sep 17 00:00:00 2001 From: Alexander Harkness Date: Sun, 3 May 2020 20:04:33 +0000 Subject: Add cEntity::GetBoundingBox, and use where appropriate. (#4711) * Add cEntity::GetBoundingBox, and use where appropriate. --- Server/Plugins/APIDump/APIDesc.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Server/Plugins/APIDump/APIDesc.lua') diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua index 2513acceb..5df216f49 100644 --- a/Server/Plugins/APIDump/APIDesc.lua +++ b/Server/Plugins/APIDump/APIDesc.lua @@ -3190,6 +3190,16 @@ local Hash = cCryptoHash.sha1HexString("DataToHash") }, Notes = "Returns the number of hitpoints out of RawDamage that the currently equipped armor would cover. See {{TakeDamageInfo}} for more information on attack damage.", }, + GetBoundingBox = + { + Returns = + { + { + Type = "cBoundingBox", + }, + }, + Notes = "Returns the bounding box of the entity, which has width and height corresponding to the entity, and is aligned with the block grid.", + }, GetChunkX = { Returns = -- cgit v1.2.3