summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/APIDesc.lua
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-03-16 16:12:16 +0100
committerHowaner <franzi.moos@googlemail.com>2014-03-27 23:20:28 +0100
commit54d55b31ef9b17673212184ac523f6f2a964338d (patch)
treedf88721405d1d729de04ed6d57db81d47453a42e /MCServer/Plugins/APIDump/APIDesc.lua
parentAdd SpreadSource (diff)
downloadcuberite-54d55b31ef9b17673212184ac523f6f2a964338d.tar
cuberite-54d55b31ef9b17673212184ac523f6f2a964338d.tar.gz
cuberite-54d55b31ef9b17673212184ac523f6f2a964338d.tar.bz2
cuberite-54d55b31ef9b17673212184ac523f6f2a964338d.tar.lz
cuberite-54d55b31ef9b17673212184ac523f6f2a964338d.tar.xz
cuberite-54d55b31ef9b17673212184ac523f6f2a964338d.tar.zst
cuberite-54d55b31ef9b17673212184ac523f6f2a964338d.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..92b57865f 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 = "^es.*",
+ TextBefore = [[
+ These constants are used to differentiate the various sources of spreads. They are used in
+ the {{OnBlockSpread|HOOK_BLOCK_SPREAD}} hook.
+ ]],
}
},
}, -- Globals