diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-14 20:30:16 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-14 20:30:16 +0200 |
commit | 41a38e8d9098d6627cd26351577cf032e6996c87 (patch) | |
tree | 34d53e6291c6d353a9c3a37a472b933f9fa5e57d /source/Chunk.h | |
parent | Initial Floody fluid simulator. (diff) | |
download | cuberite-41a38e8d9098d6627cd26351577cf032e6996c87.tar cuberite-41a38e8d9098d6627cd26351577cf032e6996c87.tar.gz cuberite-41a38e8d9098d6627cd26351577cf032e6996c87.tar.bz2 cuberite-41a38e8d9098d6627cd26351577cf032e6996c87.tar.lz cuberite-41a38e8d9098d6627cd26351577cf032e6996c87.tar.xz cuberite-41a38e8d9098d6627cd26351577cf032e6996c87.tar.zst cuberite-41a38e8d9098d6627cd26351577cf032e6996c87.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Chunk.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/Chunk.h b/source/Chunk.h index 0a51e99d2..9b0602f0b 100644 --- a/source/Chunk.h +++ b/source/Chunk.h @@ -130,11 +130,15 @@ public: void SetBlock(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta ); // SetBlock() does a lot of work (heightmap, tickblocks, blockentities) so a BlockIdx version doesn't make sense void SetBlock( const Vector3i & a_RelBlockPos, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta ) { SetBlock( a_RelBlockPos.x, a_RelBlockPos.y, a_RelBlockPos.z, a_BlockType, a_BlockMeta ); } + void CheckBlock(int a_RelX, int a_RelY, int a_RelZ); void FastSetBlock(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType, BLOCKTYPE a_BlockMeta ); // Doesn't force block updates on neighbors, use for simple changes such as grass growing etc. BLOCKTYPE GetBlock( int a_X, int a_Y, int a_Z ); BLOCKTYPE GetBlock( int a_BlockIdx ); void GetBlockTypeMeta(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta); + /// Queues all 6 neighbors of the specified block for checking. If outside the chunk, relays the checking to the neighboring chunk + void CheckNeighbors(int a_RelX, int a_RelY, int a_RelZ); + EMCSBiome GetBiomeAt(int a_RelX, int a_RelZ) const {return cChunkDef::GetBiome(m_BiomeMap, a_RelX, a_RelZ); } void CollectPickupsByPlayer(cPlayer * a_Player); |