summaryrefslogtreecommitdiffstats
path: root/src/BlockInServerPluginInterface.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-15 19:01:55 +0200
committerMattes D <github@xoft.cz>2014-10-15 19:09:09 +0200
commiteeb580a74e48829908c303f8145802bfa1805c68 (patch)
treea08569e93e3b203f64237ef5fc6902821e24f83b /src/BlockInServerPluginInterface.h
parentUsernames are lowercased before generating offline UUID. (diff)
downloadcuberite-eeb580a74e48829908c303f8145802bfa1805c68.tar
cuberite-eeb580a74e48829908c303f8145802bfa1805c68.tar.gz
cuberite-eeb580a74e48829908c303f8145802bfa1805c68.tar.bz2
cuberite-eeb580a74e48829908c303f8145802bfa1805c68.tar.lz
cuberite-eeb580a74e48829908c303f8145802bfa1805c68.tar.xz
cuberite-eeb580a74e48829908c303f8145802bfa1805c68.tar.zst
cuberite-eeb580a74e48829908c303f8145802bfa1805c68.zip
Diffstat (limited to '')
-rw-r--r--src/BlockInServerPluginInterface.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/BlockInServerPluginInterface.h b/src/BlockInServerPluginInterface.h
index e82435364..70c9944a8 100644
--- a/src/BlockInServerPluginInterface.h
+++ b/src/BlockInServerPluginInterface.h
@@ -6,14 +6,30 @@
#include "Root.h"
#include "Bindings/PluginManager.h"
-class cBlockInServerPluginInterface : public cBlockPluginInterface
+
+
+
+
+class cBlockInServerPluginInterface :
+ public cBlockPluginInterface
{
public:
cBlockInServerPluginInterface(cWorld & a_World) : m_World(a_World) {}
+
+ virtual bool CallHookBlockSpread(int a_BlockX, int a_BlockY, int a_BlockZ, eSpreadSource a_Source)
+ {
+ return cPluginManager::Get()->CallHookBlockSpread(m_World, a_BlockX, a_BlockY, a_BlockZ, a_Source);
+ }
+
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);
+ return cPluginManager::Get()->CallHookBlockToPickups(m_World, a_Digger, a_BlockX, a_BlockY, a_BlockZ, a_BlockType, a_BlockMeta, a_Pickups);
}
+
private:
cWorld & m_World;
};
+
+
+
+