1
0
cuberite-2a/src/Blocks/BlockPluginInterface.h

15 lines
490 B
C
Raw Normal View History

2014-02-02 09:59:36 -05:00
#pragma once
2014-03-30 14:02:30 -04:00
/** 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.
*/
2014-02-02 09:59:36 -05:00
class cBlockPluginInterface
{
public:
2014-03-30 14:02:30 -04:00
virtual ~cBlockPluginInterface() {}
2014-02-02 09:59:36 -05:00
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;
};