From 64561175abfd97c0f05a95ca201b6c5aeb4ad412 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Sat, 22 Jul 2017 19:56:56 +0200 Subject: BlockArea: Added the GetBounds function. --- Server/Plugins/APIDump/Classes/BlockArea.lua | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'Server/Plugins/APIDump/Classes') diff --git a/Server/Plugins/APIDump/Classes/BlockArea.lua b/Server/Plugins/APIDump/Classes/BlockArea.lua index e513a0094..c72cdff31 100644 --- a/Server/Plugins/APIDump/Classes/BlockArea.lua +++ b/Server/Plugins/APIDump/Classes/BlockArea.lua @@ -638,17 +638,30 @@ return Returns = { { - Name = "BLOCKTYPE", + Name = "BlockType", Type = "number", }, { - Name = "NIBBLETYPE", + Name = "BlockMeta", Type = "number", }, }, Notes = "Returns the block type and meta at the specified absolute coords", }, + GetBounds = + { + Params = {}, + Returns = + { + { + Name = "Bounds", + Type = "cCuboid", + } + }, + Notes = "Returns the {{cCuboid|cuboid}} that specifies the original coords of the world from which the area was read. Basically constructs a {{cCuboid}} out of GetOrigin() and GetOrigin() + GetCoordRange().", + }, + GetCoordRange = { Returns = -- cgit v1.2.3