summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/APIDesc.lua
diff options
context:
space:
mode:
authorJulian Laubstein <julianlaubstein@yahoo.de>2015-06-08 23:05:49 +0200
committerJulian Laubstein <julianlaubstein@yahoo.de>2015-06-08 23:05:49 +0200
commit87a8df7cdec4b914e82177a84694d9f5b4760d4d (patch)
treead10ff1cbc0f692bce7a44c969b3a9e20e06ac91 /MCServer/Plugins/APIDump/APIDesc.lua
parentMerge pull request #2212 from mc-server/revert-2179-ChunkQueueCollapsing (diff)
parentcBlockArea: Added CountSpecificBlocks() API function. (diff)
downloadcuberite-87a8df7cdec4b914e82177a84694d9f5b4760d4d.tar
cuberite-87a8df7cdec4b914e82177a84694d9f5b4760d4d.tar.gz
cuberite-87a8df7cdec4b914e82177a84694d9f5b4760d4d.tar.bz2
cuberite-87a8df7cdec4b914e82177a84694d9f5b4760d4d.tar.lz
cuberite-87a8df7cdec4b914e82177a84694d9f5b4760d4d.tar.xz
cuberite-87a8df7cdec4b914e82177a84694d9f5b4760d4d.tar.zst
cuberite-87a8df7cdec4b914e82177a84694d9f5b4760d4d.zip
Diffstat (limited to 'MCServer/Plugins/APIDump/APIDesc.lua')
-rw-r--r--MCServer/Plugins/APIDump/APIDesc.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua
index ba3c8b332..87edb226a 100644
--- a/MCServer/Plugins/APIDump/APIDesc.lua
+++ b/MCServer/Plugins/APIDump/APIDesc.lua
@@ -100,6 +100,11 @@ g_APIDesc =
CopyFrom = { Params = "BlockAreaSrc", Return = "", Notes = "Copies contents from BlockAreaSrc into self" },
CopyTo = { Params = "BlockAreaDst", Return = "", Notes = "Copies contents from self into BlockAreaDst." },
CountNonAirBlocks = { Params = "", Return = "number", Notes = "Returns the count of blocks that are not air. Returns 0 if blocktypes not available. Block metas are ignored (if present, air with any meta is still considered air)." },
+ CountSpecificBlocks =
+ {
+ { Params = "BlockType", Return = "number", Notes = "Counts the number of occurences of the specified blocktype contained in the area." },
+ { Params = "BlockType, BlockMeta", Return = "number", Notes = "Counts the number of occurrences of the specified blocktype + blockmeta combination contained in the area." },
+ },
Create = { Params = "SizeX, SizeY, SizeZ, [DataTypes]", Return = "", Notes = "Initializes this BlockArea to an empty area of the specified size and origin of {0, 0, 0}. Any previous contents are lost." },
Crop = { Params = "AddMinX, SubMaxX, AddMinY, SubMaxY, AddMinZ, SubMaxZ", Return = "", Notes = "Crops the specified number of blocks from each border. Modifies the size of this blockarea object." },
DumpToRawFile = { Params = "FileName", Return = "", Notes = "Dumps the raw data into a file. For debugging purposes only." },