summaryrefslogtreecommitdiffstats
path: root/source/FinishGen.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-08 14:16:39 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-08 14:16:39 +0200
commitfbabf9ee8c7f0940e6f7d01e0362849bf4f6396b (patch)
treec382dcd205dfc8b2dd61005332709029181715f7 /source/FinishGen.h
parentConfigurable classic composition generator (diff)
downloadcuberite-fbabf9ee8c7f0940e6f7d01e0362849bf4f6396b.tar
cuberite-fbabf9ee8c7f0940e6f7d01e0362849bf4f6396b.tar.gz
cuberite-fbabf9ee8c7f0940e6f7d01e0362849bf4f6396b.tar.bz2
cuberite-fbabf9ee8c7f0940e6f7d01e0362849bf4f6396b.tar.lz
cuberite-fbabf9ee8c7f0940e6f7d01e0362849bf4f6396b.tar.xz
cuberite-fbabf9ee8c7f0940e6f7d01e0362849bf4f6396b.tar.zst
cuberite-fbabf9ee8c7f0940e6f7d01e0362849bf4f6396b.zip
Diffstat (limited to 'source/FinishGen.h')
-rw-r--r--source/FinishGen.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/FinishGen.h b/source/FinishGen.h
index 2391d1638..816e2ca7c 100644
--- a/source/FinishGen.h
+++ b/source/FinishGen.h
@@ -64,7 +64,15 @@ public:
protected:
int m_Seed;
-
+
+ /// Tries to place sugarcane at the coords specified, returns true if successful
+ bool TryAddSugarcane(
+ int a_ChunkX, int a_ChunkZ,
+ int a_RelX, int a_RelY, int a_RelZ, // relative block coords of the sugarcane's base
+ cChunkDef::BlockTypes & a_BlockTypes, // Block types to read and change
+ cChunkDef::BlockNibbles & a_BlockMeta // Block meta to read and change
+ );
+
// cFinishGen override:
virtual void GenFinish(
int a_ChunkX, int a_ChunkZ,