summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockPluginInterface.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-30 20:02:30 +0200
committermadmaxoft <github@xoft.cz>2014-03-30 20:02:30 +0200
commita5c0600e6c69c329fcafc2f9138b9439cf5f65ce (patch)
treea9fc9b6e6e52e6c2bf3fd617cf7450cf3cc12770 /src/Blocks/BlockPluginInterface.h
parentMerge branch 'NetherFortGen'. (diff)
downloadcuberite-a5c0600e6c69c329fcafc2f9138b9439cf5f65ce.tar
cuberite-a5c0600e6c69c329fcafc2f9138b9439cf5f65ce.tar.gz
cuberite-a5c0600e6c69c329fcafc2f9138b9439cf5f65ce.tar.bz2
cuberite-a5c0600e6c69c329fcafc2f9138b9439cf5f65ce.tar.lz
cuberite-a5c0600e6c69c329fcafc2f9138b9439cf5f65ce.tar.xz
cuberite-a5c0600e6c69c329fcafc2f9138b9439cf5f65ce.tar.zst
cuberite-a5c0600e6c69c329fcafc2f9138b9439cf5f65ce.zip
Diffstat (limited to 'src/Blocks/BlockPluginInterface.h')
-rw-r--r--src/Blocks/BlockPluginInterface.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Blocks/BlockPluginInterface.h b/src/Blocks/BlockPluginInterface.h
index 7428c9a7a..3a36c40b1 100644
--- a/src/Blocks/BlockPluginInterface.h
+++ b/src/Blocks/BlockPluginInterface.h
@@ -1,8 +1,14 @@
#pragma once
+/** This interface is used to decouple block handlers from the cPluginManager dependancy through cWorld.
+The block handlers call this interface, which is then implemented by the specific classes that
+the caller provides.
+*/
class cBlockPluginInterface
{
public:
+ virtual ~cBlockPluginInterface() {}
+
virtual bool CallHookBlockToPickups(cEntity * a_Digger, int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, cItems & a_Pickups) = 0;
};