summaryrefslogtreecommitdiffstats
path: root/source/Chunk.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-28 14:05:23 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-28 14:05:23 +0200
commit5f208f30ac5f72dc0e7a6f5a658902ce9d1c57c1 (patch)
tree899f54ac10f7f36d460f3235db476aa9e7f7fbce /source/Chunk.h
parentDropSpensers: Fixed activation when receiving redstone signal. Now only one item is dropspensed. (diff)
downloadcuberite-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 'source/Chunk.h')
-rw-r--r--source/Chunk.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/Chunk.h b/source/Chunk.h
index f6a8a082c..506d0cd0f 100644
--- a/source/Chunk.h
+++ b/source/Chunk.h
@@ -280,6 +280,12 @@ public:
/// Same as GetBlock(), but relative coords needn't be in this chunk (uses m_Neighbor-s or m_ChunkMap in such a case); returns true on success; only usable in Tick()
bool UnboundedRelGetBlock(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta) const;
+ /// Same as GetBlockType(), but relative coords needn't be in this chunk (uses m_Neighbor-s or m_ChunkMap in such a case); returns true on success; only usable in Tick()
+ bool UnboundedRelGetBlockType(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE & a_BlockType) const;
+
+ /// Same as GetBlockMeta(), but relative coords needn't be in this chunk (uses m_Neighbor-s or m_ChunkMap in such a case); returns true on success; only usable in Tick()
+ bool UnboundedRelGetBlockMeta(int a_RelX, int a_RelY, int a_RelZ, NIBBLETYPE & a_BlockMeta) const;
+
/// Same as SetBlock(), but relative coords needn't be in this chunk (uses m_Neighbor-s or m_ChunkMap in such a case); returns true on success; only usable in Tick()
bool UnboundedRelSetBlock(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta);