summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockHandler.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-24 22:38:25 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-24 22:38:25 +0200
commit3a6002de5b13c1cd56d904892e5af6123978225d (patch)
tree5f8b28e6b4d21de5823b8c7988d41f4af653f1f7 /src/Blocks/BlockHandler.h
parentMerge pull request #1237 from tonibm19/master (diff)
downloadcuberite-3a6002de5b13c1cd56d904892e5af6123978225d.tar
cuberite-3a6002de5b13c1cd56d904892e5af6123978225d.tar.gz
cuberite-3a6002de5b13c1cd56d904892e5af6123978225d.tar.bz2
cuberite-3a6002de5b13c1cd56d904892e5af6123978225d.tar.lz
cuberite-3a6002de5b13c1cd56d904892e5af6123978225d.tar.xz
cuberite-3a6002de5b13c1cd56d904892e5af6123978225d.tar.zst
cuberite-3a6002de5b13c1cd56d904892e5af6123978225d.zip
Diffstat (limited to 'src/Blocks/BlockHandler.h')
-rw-r--r--src/Blocks/BlockHandler.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Blocks/BlockHandler.h b/src/Blocks/BlockHandler.h
index 01c64b457..a5d15d930 100644
--- a/src/Blocks/BlockHandler.h
+++ b/src/Blocks/BlockHandler.h
@@ -79,9 +79,10 @@ public:
/** Handles the dropping, but not destruction, of a block based on what ConvertTo(Verbatim)Pickups() returns, including the spawning of pickups and alertion of plugins
@param a_Digger The entity causing the drop; it may be NULL
+ @param a_CanDrop Informs the handler whether the block should be dropped at all. One example when this is false is when stone is destroyed by hand
@param a_DropVerbatim Calls ConvertToVerbatimPickups() instead of its counterpart, meaning the block itself is dropped by default (due to a speical tool or enchantment)
*/
- virtual void DropBlock(cChunkInterface & a_ChunkInterface, cWorldInterface & a_WorldInterface, cBlockPluginInterface & a_BlockPluginInterface, cEntity * a_Digger, int a_BlockX, int a_BlockY, int a_BlockZ, bool a_DropVerbatim = false);
+ virtual void DropBlock(cChunkInterface & a_ChunkInterface, cWorldInterface & a_WorldInterface, cBlockPluginInterface & a_BlockPluginInterface, cEntity * a_Digger, int a_BlockX, int a_BlockY, int a_BlockZ, bool a_CanDrop = true, bool a_DropVerbatim = false);
/// Returns step sound name of block
virtual const char * GetStepSound(void);