summaryrefslogtreecommitdiffstats
path: root/src/ChunkMap.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-06-04 13:08:15 +0200
committerMattes D <github@xoft.cz>2016-06-04 13:08:15 +0200
commitfc874ed57d6f16dc5d4b616711e3bfbd6e963ccf (patch)
treed299b6e8cd24f087f8bf5047cde858d4bcedbcf5 /src/ChunkMap.h
parentDebuggers: Added the forgotten Inject.lua file. (diff)
parentMakes tall grass and large flowers bonemealable (diff)
downloadcuberite-fc874ed57d6f16dc5d4b616711e3bfbd6e963ccf.tar
cuberite-fc874ed57d6f16dc5d4b616711e3bfbd6e963ccf.tar.gz
cuberite-fc874ed57d6f16dc5d4b616711e3bfbd6e963ccf.tar.bz2
cuberite-fc874ed57d6f16dc5d4b616711e3bfbd6e963ccf.tar.lz
cuberite-fc874ed57d6f16dc5d4b616711e3bfbd6e963ccf.tar.xz
cuberite-fc874ed57d6f16dc5d4b616711e3bfbd6e963ccf.tar.zst
cuberite-fc874ed57d6f16dc5d4b616711e3bfbd6e963ccf.zip
Diffstat (limited to 'src/ChunkMap.h')
-rw-r--r--src/ChunkMap.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/ChunkMap.h b/src/ChunkMap.h
index bbde06dcf..8a604ac09 100644
--- a/src/ChunkMap.h
+++ b/src/ChunkMap.h
@@ -360,14 +360,17 @@ public:
/** Returns the number of valid chunks and the number of dirty chunks */
void GetChunkStats(int & a_NumChunksValid, int & a_NumChunksDirty);
- /** Grows a melon or a pumpkin next to the block specified (assumed to be the stem) */
- void GrowMelonPumpkin(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, MTRand & a_Rand);
+ /** Grows a melon or a pumpkin next to the block specified (assumed to be the stem); returns true if the pumpkin or melon sucessfully grew */
+ bool GrowMelonPumpkin(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, MTRand & a_Rand);
- /** Grows a sugarcane present at the block specified by the amount of blocks specified, up to the max height specified in the config */
- void GrowSugarcane(int a_BlockX, int a_BlockY, int a_BlockZ, int a_NumBlocksToGrow);
+ /** Grows a sugarcane present at the block specified by the amount of blocks specified, up to the max height specified in the config; returns the amount of blocks the sugarcane grew inside this call */
+ int GrowSugarcane(int a_BlockX, int a_BlockY, int a_BlockZ, int a_NumBlocksToGrow);
- /** Grows a cactus present at the block specified by the amount of blocks specified, up to the max height specified in the config */
- void GrowCactus(int a_BlockX, int a_BlockY, int a_BlockZ, int a_NumBlocksToGrow);
+ /** Grows a cactus present at the block specified by the amount of blocks specified, up to the max height specified in the config; returns the amount of blocks the cactus grew inside this call */
+ int GrowCactus(int a_BlockX, int a_BlockY, int a_BlockZ, int a_NumBlocksToGrow);
+
+ /** Grows a tall grass present at the block specified to a two tall grass; returns true if the grass grew */
+ bool GrowTallGrass(int a_BlockX, int a_BlockY, int a_BlockZ);
/** Sets the blockticking to start at the specified block. Only one blocktick per chunk may be set, second call overwrites the first call */
void SetNextBlockTick(int a_BlockX, int a_BlockY, int a_BlockZ);