summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginManager.h
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 /src/Bindings/PluginManager.h
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 'src/Bindings/PluginManager.h')
-rw-r--r--src/Bindings/PluginManager.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Bindings/PluginManager.h b/src/Bindings/PluginManager.h
index 44bc5a8d7..03f19e831 100644
--- a/src/Bindings/PluginManager.h
+++ b/src/Bindings/PluginManager.h
@@ -58,6 +58,7 @@ public: // tolua_export
// tolua_begin
enum PluginHook
{
+ HOOK_BLOCK_SPREAD,
HOOK_BLOCK_TO_PICKUPS,
HOOK_CHAT,
HOOK_CHUNK_AVAILABLE,
@@ -154,6 +155,7 @@ public: // tolua_export
unsigned int GetNumPlugins() const; // tolua_export
// Calls for individual hooks. Each returns false if the action is to continue or true if the plugin wants to abort
+ bool CallHookBlockSpread (cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ, eSpreadSource a_Source);
bool CallHookBlockToPickups (cWorld * a_World, cEntity * a_Digger, int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, cItems & a_Pickups);
bool CallHookChat (cPlayer * a_Player, AString & a_Message);
bool CallHookChunkAvailable (cWorld * a_World, int a_ChunkX, int a_ChunkZ);