summaryrefslogtreecommitdiffstats
path: root/src/Chunk.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/Chunk.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/Chunk.h')
-rw-r--r--src/Chunk.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/Chunk.h b/src/Chunk.h
index c7987723b..162c8de96 100644
--- a/src/Chunk.h
+++ b/src/Chunk.h
@@ -580,14 +580,17 @@ private:
/** Adds snow to the top of snowy biomes and hydrates farmland / fills cauldrons in rainy biomes */
void ApplyWeatherToTop(void);
- /** 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);
+ /** Grows sugarcane by the specified number of blocks, but no more than 3 blocks high (used by both bonemeal and ticking); returns the amount of blocks the sugarcane grew inside this call */
+ int GrowSugarcane (int a_RelX, int a_RelY, int a_RelZ, int a_NumBlocks);
- /** Grows cactus by the specified number of blocks, but no more than 3 blocks high (used by both bonemeal and ticking) */
- void GrowCactus (int a_RelX, int a_RelY, int a_RelZ, int a_NumBlocks);
+ /** Grows cactus by the specified number of blocks, but no more than 3 blocks high (used by both bonemeal and ticking); returns the amount of blocks the cactus grew inside this call */
+ int GrowCactus (int a_RelX, int a_RelY, int a_RelZ, int a_NumBlocks);
- /** 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);
+ /** Grows a tall grass present at the block specified to a two tall grass; returns true if the grass grew */
+ bool GrowTallGrass (int a_RelX, int a_RelY, int a_RelZ);
+
+ /** 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_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType, MTRand & a_Random);
/** Called by Tick() when an entity moves out of this chunk into a neighbor; moves the entity and sends spawn / despawn packet to clients */
void MoveEntityToNewChunk(cEntity * a_Entity);