summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/APIDesc.lua
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-05-01 11:49:41 +0200
committerMattes D <github@xoft.cz>2015-05-01 11:49:41 +0200
commit259132d17e53ec99c4eb00cd856260d14ea1234d (patch)
treebcb6ff9fc661b0fc1d8ad492f12c874227b4d949 /MCServer/Plugins/APIDump/APIDesc.lua
parentMerge pull request #1923 from mc-server/ReadWholeFileFix (diff)
parentAdded cBlockArea:CountNonAirBlocks API function. (diff)
downloadcuberite-259132d17e53ec99c4eb00cd856260d14ea1234d.tar
cuberite-259132d17e53ec99c4eb00cd856260d14ea1234d.tar.gz
cuberite-259132d17e53ec99c4eb00cd856260d14ea1234d.tar.bz2
cuberite-259132d17e53ec99c4eb00cd856260d14ea1234d.tar.lz
cuberite-259132d17e53ec99c4eb00cd856260d14ea1234d.tar.xz
cuberite-259132d17e53ec99c4eb00cd856260d14ea1234d.tar.zst
cuberite-259132d17e53ec99c4eb00cd856260d14ea1234d.zip
Diffstat (limited to 'MCServer/Plugins/APIDump/APIDesc.lua')
-rw-r--r--MCServer/Plugins/APIDump/APIDesc.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua
index 7c9a2e0cb..7c0a8e818 100644
--- a/MCServer/Plugins/APIDump/APIDesc.lua
+++ b/MCServer/Plugins/APIDump/APIDesc.lua
@@ -99,6 +99,7 @@ g_APIDesc =
Clear = { Params = "", Return = "", Notes = "Clears the object, resets it to zero size" },
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)." },
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." },