summaryrefslogtreecommitdiffstats
path: root/source/World.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-18 22:44:22 +0200
committermadmaxoft <github@xoft.cz>2013-08-18 22:44:22 +0200
commit7b10068370e42def4e28785d2e49acba52bad1fd (patch)
tree7cd6f4a961981f934127f097798317611946285a /source/World.h
parentRemoved SetServerBlock griefing. (diff)
downloadcuberite-7b10068370e42def4e28785d2e49acba52bad1fd.tar
cuberite-7b10068370e42def4e28785d2e49acba52bad1fd.tar.gz
cuberite-7b10068370e42def4e28785d2e49acba52bad1fd.tar.bz2
cuberite-7b10068370e42def4e28785d2e49acba52bad1fd.tar.lz
cuberite-7b10068370e42def4e28785d2e49acba52bad1fd.tar.xz
cuberite-7b10068370e42def4e28785d2e49acba52bad1fd.tar.zst
cuberite-7b10068370e42def4e28785d2e49acba52bad1fd.zip
Diffstat (limited to '')
-rw-r--r--source/World.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/source/World.h b/source/World.h
index 5d3de06d0..8c90b08c4 100644
--- a/source/World.h
+++ b/source/World.h
@@ -311,8 +311,23 @@ public:
bool ForEachChunkInRect(int a_MinChunkX, int a_MaxChunkX, int a_MinChunkZ, int a_MaxChunkZ, cChunkDataCallback & a_Callback);
// tolua_begin
- void SetBlock (int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta);
- void FastSetBlock (int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta);
+
+ /** 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);
+
+ /** Sets the block at the specified coords to the specified value.
+ The replacement doesn't trigger block updates.
+ The replaced blocks aren't checked for block entities (block entity is leaked if it exists at this block)
+ */
+ void FastSetBlock(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta);
+
+ /** Queues a SetBlock() with the specified parameters after the specified number of ticks.
+ Calls SetBlock(), so performs full processing of the replaced block.
+ */
+ void QueueSetBlock(int a_BlockX, int a_BLockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, int a_TickDelay);
+
BLOCKTYPE GetBlock (int a_BlockX, int a_BlockY, int a_BlockZ);
NIBBLETYPE GetBlockMeta (int a_BlockX, int a_BlockY, int a_BlockZ);
void SetBlockMeta (int a_BlockX, int a_BlockY, int a_BlockZ, NIBBLETYPE a_MetaData);