summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/APIDesc.lua
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-28 16:39:32 +0100
committermadmaxoft <github@xoft.cz>2014-03-28 16:39:32 +0100
commit173fd0dd9246a0a30041cc103327aed5dd7166d5 (patch)
tree095ec63173d417d83cc709a4bd0fa35801484e4b /MCServer/Plugins/APIDump/APIDesc.lua
parentFixed Prefab's rotations. (diff)
parentAdd missing ChunkDesc import. (diff)
downloadcuberite-173fd0dd9246a0a30041cc103327aed5dd7166d5.tar
cuberite-173fd0dd9246a0a30041cc103327aed5dd7166d5.tar.gz
cuberite-173fd0dd9246a0a30041cc103327aed5dd7166d5.tar.bz2
cuberite-173fd0dd9246a0a30041cc103327aed5dd7166d5.tar.lz
cuberite-173fd0dd9246a0a30041cc103327aed5dd7166d5.tar.xz
cuberite-173fd0dd9246a0a30041cc103327aed5dd7166d5.tar.zst
cuberite-173fd0dd9246a0a30041cc103327aed5dd7166d5.zip
Diffstat (limited to 'MCServer/Plugins/APIDump/APIDesc.lua')
-rw-r--r--MCServer/Plugins/APIDump/APIDesc.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua
index 74e7bf860..01f000182 100644
--- a/MCServer/Plugins/APIDump/APIDesc.lua
+++ b/MCServer/Plugins/APIDump/APIDesc.lua
@@ -1826,6 +1826,7 @@ cPluginManager.AddHook(cPluginManager.HOOK_CHAT, OnChatMessage);
},
Constants =
{
+ HOOK_BLOCK_SPREAD = { Notes = "Called when a block spreads based on world conditions" },
HOOK_BLOCK_TO_PICKUPS = { Notes = "Called when a block has been dug and is being converted to pickups. The server has provided the default pickups and the plugins may modify them." },
HOOK_CHAT = { Notes = "Called when a client sends a chat message that is not a command. The plugin may modify the chat message" },
HOOK_CHUNK_AVAILABLE = { Notes = "Called when a chunk is loaded or generated and becomes available in the {{cWorld|world}}." },
@@ -2767,6 +2768,14 @@ end
data provided with the explosions, such as the exploding {{cCreeper|creeper}} entity or the
{{Vector3i|coords}} of the exploding bed.
]],
+ },
+ SpreadSource =
+ {
+ Include = "^ss.*",
+ TextBefore = [[
+ These constants are used to differentiate the various sources of spreads, such as grass growing.
+ They are used in the {{OnBlockSpread|HOOK_BLOCK_SPREAD}} hook.
+ ]],
}
},
}, -- Globals