summaryrefslogtreecommitdiffstats
path: root/src/BlockInServerPluginInterface.h
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-02-02 15:59:36 +0100
committerTycho <work.tycho+git@gmail.com>2014-02-02 15:59:36 +0100
commit42497847acd65c34b67f4c6c2a16320ecbe19c65 (patch)
treeca1faaae5c7d0fbd756f4cee56f61500ba0a12ed /src/BlockInServerPluginInterface.h
parentMerge branch 'master' into GeneratingBenchmark2 (diff)
downloadcuberite-42497847acd65c34b67f4c6c2a16320ecbe19c65.tar
cuberite-42497847acd65c34b67f4c6c2a16320ecbe19c65.tar.gz
cuberite-42497847acd65c34b67f4c6c2a16320ecbe19c65.tar.bz2
cuberite-42497847acd65c34b67f4c6c2a16320ecbe19c65.tar.lz
cuberite-42497847acd65c34b67f4c6c2a16320ecbe19c65.tar.xz
cuberite-42497847acd65c34b67f4c6c2a16320ecbe19c65.tar.zst
cuberite-42497847acd65c34b67f4c6c2a16320ecbe19c65.zip
Diffstat (limited to 'src/BlockInServerPluginInterface.h')
-rw-r--r--src/BlockInServerPluginInterface.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/BlockInServerPluginInterface.h b/src/BlockInServerPluginInterface.h
new file mode 100644
index 000000000..e82435364
--- /dev/null
+++ b/src/BlockInServerPluginInterface.h
@@ -0,0 +1,19 @@
+
+#pragma once
+
+#include "Blocks/BlockPluginInterface.h"
+#include "World.h"
+#include "Root.h"
+#include "Bindings/PluginManager.h"
+
+class cBlockInServerPluginInterface : public cBlockPluginInterface
+{
+public:
+ cBlockInServerPluginInterface(cWorld & a_World) : m_World(a_World) {}
+ virtual bool CallHookBlockToPickups(cEntity * a_Digger, int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, cItems & a_Pickups) override
+ {
+ return cRoot::Get()->GetPluginManager()->CallHookBlockToPickups(&m_World, a_Digger, a_BlockX, a_BlockY, a_BlockZ, a_BlockType, a_BlockMeta, a_Pickups);
+ }
+private:
+ cWorld & m_World;
+};