diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-02 20:49:14 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-02 20:49:14 +0200 |
commit | 5fc7592cba384f0bc89dca7f531f3e823224255b (patch) | |
tree | b6a5d04f0ce4b2ec949ccc144513d969af3fdd04 /src/World.h | |
parent | Small tweak for mobs (diff) | |
parent | Suggestions two (diff) | |
download | cuberite-5fc7592cba384f0bc89dca7f531f3e823224255b.tar cuberite-5fc7592cba384f0bc89dca7f531f3e823224255b.tar.gz cuberite-5fc7592cba384f0bc89dca7f531f3e823224255b.tar.bz2 cuberite-5fc7592cba384f0bc89dca7f531f3e823224255b.tar.lz cuberite-5fc7592cba384f0bc89dca7f531f3e823224255b.tar.xz cuberite-5fc7592cba384f0bc89dca7f531f3e823224255b.tar.zst cuberite-5fc7592cba384f0bc89dca7f531f3e823224255b.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. |