diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-03-16 14:38:41 +0100 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-03-27 23:20:28 +0100 |
commit | c4a8336e847d2f4731dd9d899d6af200631f8aef (patch) | |
tree | b4032137f8033224894a190d0c799eb819989f22 /src/Bindings/PluginManager.h | |
parent | Add new leaves to all classes. (diff) | |
download | cuberite-c4a8336e847d2f4731dd9d899d6af200631f8aef.tar cuberite-c4a8336e847d2f4731dd9d899d6af200631f8aef.tar.gz cuberite-c4a8336e847d2f4731dd9d899d6af200631f8aef.tar.bz2 cuberite-c4a8336e847d2f4731dd9d899d6af200631f8aef.tar.lz cuberite-c4a8336e847d2f4731dd9d899d6af200631f8aef.tar.xz cuberite-c4a8336e847d2f4731dd9d899d6af200631f8aef.tar.zst cuberite-c4a8336e847d2f4731dd9d899d6af200631f8aef.zip |
Diffstat (limited to 'src/Bindings/PluginManager.h')
-rw-r--r-- | src/Bindings/PluginManager.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Bindings/PluginManager.h b/src/Bindings/PluginManager.h index 44bc5a8d7..18d34a50d 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); 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); |