diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-28 14:05:23 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-05-28 14:05:23 +0200 |
commit | 5f208f30ac5f72dc0e7a6f5a658902ce9d1c57c1 (patch) | |
tree | 899f54ac10f7f36d460f3235db476aa9e7f7fbce /source/ChunkMap.h | |
parent | DropSpensers: Fixed activation when receiving redstone signal. Now only one item is dropspensed. (diff) | |
download | cuberite-5f208f30ac5f72dc0e7a6f5a658902ce9d1c57c1.tar cuberite-5f208f30ac5f72dc0e7a6f5a658902ce9d1c57c1.tar.gz cuberite-5f208f30ac5f72dc0e7a6f5a658902ce9d1c57c1.tar.bz2 cuberite-5f208f30ac5f72dc0e7a6f5a658902ce9d1c57c1.tar.lz cuberite-5f208f30ac5f72dc0e7a6f5a658902ce9d1c57c1.tar.xz cuberite-5f208f30ac5f72dc0e7a6f5a658902ce9d1c57c1.tar.zst cuberite-5f208f30ac5f72dc0e7a6f5a658902ce9d1c57c1.zip |
Diffstat (limited to '')
-rw-r--r-- | source/ChunkMap.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/ChunkMap.h b/source/ChunkMap.h index 204bbf662..4a25abd4b 100644 --- a/source/ChunkMap.h +++ b/source/ChunkMap.h @@ -375,11 +375,17 @@ private: /// Gets a block in any chunk while in the cChunk's Tick() method; returns true if successful, false if chunk not loaded (doesn't queue load) bool LockedGetBlock(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta); + /// Gets a block type in any chunk while in the cChunk's Tick() method; returns true if successful, false if chunk not loaded (doesn't queue load) + bool LockedGetBlockType(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE & a_BlockType); + + /// Gets a block meta in any chunk while in the cChunk's Tick() method; returns true if successful, false if chunk not loaded (doesn't queue load) + bool LockedGetBlockMeta(int a_BlockX, int a_BlockY, int a_BlockZ, NIBBLETYPE & a_BlockMeta); + /// Sets a block in any chunk while in the cChunk's Tick() method; returns true if successful, false if chunk not loaded (doesn't queue load) - bool LockedSetBlock(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta); + bool LockedSetBlock(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta); /// Fast-sets a block in any chunk while in the cChunk's Tick() method; returns true if successful, false if chunk not loaded (doesn't queue load) - bool LockedFastSetBlock(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta); + bool LockedFastSetBlock(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta); /// Locates a chunk ptr in the chunkmap; doesn't create it when not found; assumes m_CSLayers is locked. To be called only from cChunkMap. cChunk * FindChunk(int a_ChunkX, int a_ChunkZ); |