summaryrefslogtreecommitdiffstats
path: root/source/cChunk.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-02 21:22:05 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-02 21:22:05 +0200
commit919f896894204d839fc316713349add442b0f633 (patch)
treec8fd4e2203b811cf3a370ca5c604ef1251dc23f7 /source/cChunk.h
parentOnly apple leaves can drop apples (diff)
downloadcuberite-919f896894204d839fc316713349add442b0f633.tar
cuberite-919f896894204d839fc316713349add442b0f633.tar.gz
cuberite-919f896894204d839fc316713349add442b0f633.tar.bz2
cuberite-919f896894204d839fc316713349add442b0f633.tar.lz
cuberite-919f896894204d839fc316713349add442b0f633.tar.xz
cuberite-919f896894204d839fc316713349add442b0f633.tar.zst
cuberite-919f896894204d839fc316713349add442b0f633.zip
Diffstat (limited to 'source/cChunk.h')
-rw-r--r--source/cChunk.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/cChunk.h b/source/cChunk.h
index 5aff98962..652e63204 100644
--- a/source/cChunk.h
+++ b/source/cChunk.h
@@ -40,6 +40,7 @@ class cPlayer;
class cChunkMap;
class cChestEntity;
class cFurnaceEntity;
+class cBlockArea;
typedef std::list<cClientHandle *> cClientHandleList;
typedef cItemCallback<cEntity> cEntityCallback;
@@ -256,7 +257,7 @@ private:
void TickGrass (int a_RelX, int a_RelY, int a_RelZ, MTRand & a_TickRandom);
void TickMelonPumpkin(int a_RelX, int a_RelY, int a_RelZ, int a_BlockIdx, BLOCKTYPE a_BlockType, MTRand & a_TickRandom);
void TickFarmland (int a_RelX, int a_RelY, int a_RelZ);
- void TickLeaves (int a_RelX, int a_RelY, int a_RelZ);
+ void TickLeaves (int a_RelX, int a_RelY, int a_RelZ, MTRand & a_TickRandom);
/// Grows sugarcane by the specified number of blocks, but no more than 3 blocks high (used by both bonemeal and ticking)
void GrowSugarcane (int a_RelX, int a_RelY, int a_RelZ, int a_NumBlocks);
@@ -267,6 +268,9 @@ private:
/// Grows a melon or a pumpkin next to the block specified (assumed to be the stem)
void GrowMelonPumpkin(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType, MTRand & a_Random);
+ /// Checks if a leaves block at the specified coords has a log up to 4 blocks away connected by other leaves blocks (false if no log)
+ bool HasNearLog(cBlockArea & a_Area, int a_BlockX, int a_BlockY, int a_BlockZ);
+
/// Same as GetBlock(), but relative coords needn't be in this chunk (uses 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);