diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-11-30 20:57:14 +0100 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-11-30 20:57:14 +0100 |
commit | 2630798f0969e44180cfbeb2076629f19690a472 (patch) | |
tree | de76eaeca5a4dc9644eac8ce71490b69c283359f /src/Blocks/BlockHandler.h | |
parent | Water can destroy vine. (diff) | |
download | cuberite-2630798f0969e44180cfbeb2076629f19690a472.tar cuberite-2630798f0969e44180cfbeb2076629f19690a472.tar.gz cuberite-2630798f0969e44180cfbeb2076629f19690a472.tar.bz2 cuberite-2630798f0969e44180cfbeb2076629f19690a472.tar.lz cuberite-2630798f0969e44180cfbeb2076629f19690a472.tar.xz cuberite-2630798f0969e44180cfbeb2076629f19690a472.tar.zst cuberite-2630798f0969e44180cfbeb2076629f19690a472.zip |
Diffstat (limited to 'src/Blocks/BlockHandler.h')
-rw-r--r-- | src/Blocks/BlockHandler.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Blocks/BlockHandler.h b/src/Blocks/BlockHandler.h index f2298afb5..6c782da8c 100644 --- a/src/Blocks/BlockHandler.h +++ b/src/Blocks/BlockHandler.h @@ -14,6 +14,7 @@ class cBlockPluginInterface; class cChunkInterface; class cWorldInterface; class cItems; +class cWorld; @@ -83,7 +84,10 @@ public: @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_CanDrop = true); - + + /** Checks if the block can stay at the specified absolute coords */ + bool CanBeAt(cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ); + /// Checks if the block can stay at the specified relative coords in the chunk virtual bool CanBeAt(cChunkInterface & a_ChunkInterface, int a_RelX, int a_RelY, int a_RelZ, const cChunk & a_Chunk); |