summaryrefslogtreecommitdiffstats
path: root/Server/Plugins/APIDump/Classes/World.lua
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2017-04-04 07:53:14 +0200
committerMattes D <github@xoft.cz>2017-04-04 07:53:14 +0200
commitfb205174350792c5840897b63d7457b3536e0c27 (patch)
treeff5a7e38c3f56793a382a59287c352ec0769bc35 /Server/Plugins/APIDump/Classes/World.lua
parentAdded a nullptr check to cEntity::IsA (#3659) (diff)
downloadcuberite-fb205174350792c5840897b63d7457b3536e0c27.tar
cuberite-fb205174350792c5840897b63d7457b3536e0c27.tar.gz
cuberite-fb205174350792c5840897b63d7457b3536e0c27.tar.bz2
cuberite-fb205174350792c5840897b63d7457b3536e0c27.tar.lz
cuberite-fb205174350792c5840897b63d7457b3536e0c27.tar.xz
cuberite-fb205174350792c5840897b63d7457b3536e0c27.tar.zst
cuberite-fb205174350792c5840897b63d7457b3536e0c27.zip
Diffstat (limited to 'Server/Plugins/APIDump/Classes/World.lua')
-rw-r--r--Server/Plugins/APIDump/Classes/World.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/Server/Plugins/APIDump/Classes/World.lua b/Server/Plugins/APIDump/Classes/World.lua
index 91741377f..2733410e4 100644
--- a/Server/Plugins/APIDump/Classes/World.lua
+++ b/Server/Plugins/APIDump/Classes/World.lua
@@ -1112,6 +1112,23 @@ function OnAllChunksAvailable()</pre> All return values from the callbacks are i
},
Notes = "Calls the specified callback for each furnace in the chunk. Returns true if all furnaces in the chunk have been processed (including when there are zero furnaces), or false if the callback has aborted the enumeration by returning true. The CallbackFunction has the following signature: <pre class=\"prettyprint lang-lua\">function Callback({{cFurnaceEntity|FurnaceEntity}})</pre> The callback should return false or no value to continue with the next furnace, or true to abort the enumeration.",
},
+ ForEachLoadedChunk =
+ {
+ Params =
+ {
+ {
+ Name = "CallbackFunction",
+ Type = "function",
+ },
+ },
+ Returns =
+ {
+ {
+ Type = "boolean",
+ },
+ },
+ Notes = "Calls the specified callback for each loaded chunk in the world. Returns true if all chunks have been processed, or false if the callback has aborted the enumeration by returning true. The CallbackFunction has the following signature: <pre class=\"prettyprint lang-lua\">function Callback(ChunkX, ChunkZ)</pre> The callback should return false or no value to continue with the next chunk, or true to abort the enumeration.",
+ },
ForEachPlayer =
{
Params =