diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-20 13:00:20 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-20 13:00:20 +0200 |
commit | f68b04e0294e5bc854fa6daad061e0280e5bb4f6 (patch) | |
tree | be65263521bfc5190af505c0fc3e3119742ba539 /src/Blocks/BlockHandler.h | |
parent | Fixed issues relating to saplings and leaves (diff) | |
download | cuberite-f68b04e0294e5bc854fa6daad061e0280e5bb4f6.tar cuberite-f68b04e0294e5bc854fa6daad061e0280e5bb4f6.tar.gz cuberite-f68b04e0294e5bc854fa6daad061e0280e5bb4f6.tar.bz2 cuberite-f68b04e0294e5bc854fa6daad061e0280e5bb4f6.tar.lz cuberite-f68b04e0294e5bc854fa6daad061e0280e5bb4f6.tar.xz cuberite-f68b04e0294e5bc854fa6daad061e0280e5bb4f6.tar.zst cuberite-f68b04e0294e5bc854fa6daad061e0280e5bb4f6.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockHandler.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Blocks/BlockHandler.h b/src/Blocks/BlockHandler.h index ee4d4a6fe..a6810933c 100644 --- a/src/Blocks/BlockHandler.h +++ b/src/Blocks/BlockHandler.h @@ -71,13 +71,16 @@ public: /// Called if the user right clicks the block and the block is useable virtual void OnUse(cChunkInterface & a_ChunkInterface, cWorldInterface & a_WorldInterface, cPlayer * a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ) {}; - /** Called when a Right Click to this Block is cancelled */ + /** Called when a right click to this block is cancelled */ virtual void OnCancelRightClick(cChunkInterface & a_ChunkInterface, cWorldInterface & a_WorldInterface, cPlayer * a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace) {}; /// <summary>Called when the item is mined to convert it into pickups. Pickups may specify multiple items. Appends items to a_Pickups, preserves its original contents</summary> virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta); - /// Handles the dropping of a block based on what ConvertToDrops() returns. This will not destroy the block. a_Digger is the entity causing the drop; it may be NULL + /** 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_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); /// Returns step sound name of block |