diff options
author | Mattes D <github@xoft.cz> | 2014-06-03 19:02:40 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-06-03 19:02:40 +0200 |
commit | 0c5492946b84aefe4f5d366d14de0ceb5e97b189 (patch) | |
tree | 37c13749e6050794ada0a1e1d42c9d998f3c8040 /src/World.h | |
parent | docs/Generator: Shrunk the hand-drawn images by 50 %. (diff) | |
parent | Merge remote-tracking branch 'origin/pistonfixes' (diff) | |
download | cuberite-0c5492946b84aefe4f5d366d14de0ceb5e97b189.tar cuberite-0c5492946b84aefe4f5d366d14de0ceb5e97b189.tar.gz cuberite-0c5492946b84aefe4f5d366d14de0ceb5e97b189.tar.bz2 cuberite-0c5492946b84aefe4f5d366d14de0ceb5e97b189.tar.lz cuberite-0c5492946b84aefe4f5d366d14de0ceb5e97b189.tar.xz cuberite-0c5492946b84aefe4f5d366d14de0ceb5e97b189.tar.zst cuberite-0c5492946b84aefe4f5d366d14de0ceb5e97b189.zip |
Diffstat (limited to 'src/World.h')
-rw-r--r-- | src/World.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/World.h b/src/World.h index 86cbb3e7e..98b241a2b 100644 --- a/src/World.h +++ b/src/World.h @@ -117,6 +117,20 @@ public: }; + class cTaskSendBlockToAllPlayers : + public cTask + { + public: + cTaskSendBlockToAllPlayers(std::vector<Vector3i> & a_SendQueue); + + protected: + // cTask overrides: + virtual void Run(cWorld & a_World) override; + + std::vector<Vector3i> m_SendQueue; + }; + + static const char * GetClassStatic(void) // Needed for ManualBindings's ForEach templates { return "cWorld"; @@ -373,7 +387,7 @@ public: /** Sets the block at the specified coords to the specified value. Full processing, incl. updating neighbors, is performed. */ - void SetBlock(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta); + void SetBlock(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, bool a_SendToClients = true); /** Sets the block at the specified coords to the specified value. The replacement doesn't trigger block updates. |