summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockPluginInterface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Blocks/BlockPluginInterface.h')
-rw-r--r--src/Blocks/BlockPluginInterface.h25
1 files changed, 17 insertions, 8 deletions
diff --git a/src/Blocks/BlockPluginInterface.h b/src/Blocks/BlockPluginInterface.h
index 0cf3ef0e3..da9f5c7a2 100644
--- a/src/Blocks/BlockPluginInterface.h
+++ b/src/Blocks/BlockPluginInterface.h
@@ -1,7 +1,8 @@
// BlockPluginInterface.h
-// Declares the cBlockPluginInterface class representing an interface that the blockhandlers and itemhandlers use for calling plugins
+// Declares the cBlockPluginInterface class representing an interface that the blockhandlers and itemhandlers use for
+// calling plugins
@@ -26,14 +27,22 @@ the caller provides.
*/
class cBlockPluginInterface
{
-public:
+ public:
virtual ~cBlockPluginInterface() {}
virtual bool CallHookBlockSpread(Vector3i a_BlockPos, eSpreadSource a_Source) = 0;
- virtual bool CallHookPlayerBreakingBlock(cPlayer & a_Player, Vector3i a_BlockPos, eBlockFace a_BlockFace, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) = 0;
- virtual bool CallHookPlayerBrokenBlock(cPlayer & a_Player, Vector3i a_BlockPos, eBlockFace a_BlockFace, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) = 0;
+ virtual bool CallHookPlayerBreakingBlock(
+ cPlayer & a_Player,
+ Vector3i a_BlockPos,
+ eBlockFace a_BlockFace,
+ BLOCKTYPE a_BlockType,
+ NIBBLETYPE a_BlockMeta
+ ) = 0;
+ virtual bool CallHookPlayerBrokenBlock(
+ cPlayer & a_Player,
+ Vector3i a_BlockPos,
+ eBlockFace a_BlockFace,
+ BLOCKTYPE a_BlockType,
+ NIBBLETYPE a_BlockMeta
+ ) = 0;
};
-
-
-
-