diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-01-25 20:14:14 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-01-25 20:14:14 +0100 |
commit | 15b92af166e03e3deb8baf5eb2ec6b0be5981646 (patch) | |
tree | 49367551eb466edce81ed6f68507ab60c6efe3df /src/Blocks/BlockHandler.h | |
parent | dded dependecy on Blocks to Generator (diff) | |
download | cuberite-15b92af166e03e3deb8baf5eb2ec6b0be5981646.tar cuberite-15b92af166e03e3deb8baf5eb2ec6b0be5981646.tar.gz cuberite-15b92af166e03e3deb8baf5eb2ec6b0be5981646.tar.bz2 cuberite-15b92af166e03e3deb8baf5eb2ec6b0be5981646.tar.lz cuberite-15b92af166e03e3deb8baf5eb2ec6b0be5981646.tar.xz cuberite-15b92af166e03e3deb8baf5eb2ec6b0be5981646.tar.zst cuberite-15b92af166e03e3deb8baf5eb2ec6b0be5981646.zip |
Diffstat (limited to 'src/Blocks/BlockHandler.h')
-rw-r--r-- | src/Blocks/BlockHandler.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Blocks/BlockHandler.h b/src/Blocks/BlockHandler.h index a732aa797..6b28c60ab 100644 --- a/src/Blocks/BlockHandler.h +++ b/src/Blocks/BlockHandler.h @@ -4,6 +4,7 @@ #include "../Defines.h" #include "../Item.h" #include "../Chunk.h" +#include "WorldInterface.h" @@ -65,7 +66,7 @@ public: virtual void OnDigging(cWorld * a_World, cPlayer * a_Player, int a_BlockX, int a_BlockY, int a_BlockZ); /// Called if the user right clicks the block and the block is useable - virtual void OnUse(cWorld * a_World, cPlayer * a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ); + virtual void OnUse(cWorld * a_World, cWorldInterface * a_WorldInterface, cPlayer * a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ); /// <summary>Called when the item is mined to convert it into pickups. Pickups may specify multiple items. Appends items to a_Pickups, preserves its original contents</summary> virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta); |