diff options
author | madmaxoft <github@xoft.cz> | 2013-09-15 22:11:02 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-09-15 22:11:02 +0200 |
commit | a6b3c560a225fe69ea0ee4170ee122faad934f16 (patch) | |
tree | a6efae68262fd2b92a5c101e71b9f0a60f5c2c12 /source/World.h | |
parent | Fixed previous commit (diff) | |
download | cuberite-a6b3c560a225fe69ea0ee4170ee122faad934f16.tar cuberite-a6b3c560a225fe69ea0ee4170ee122faad934f16.tar.gz cuberite-a6b3c560a225fe69ea0ee4170ee122faad934f16.tar.bz2 cuberite-a6b3c560a225fe69ea0ee4170ee122faad934f16.tar.lz cuberite-a6b3c560a225fe69ea0ee4170ee122faad934f16.tar.xz cuberite-a6b3c560a225fe69ea0ee4170ee122faad934f16.tar.zst cuberite-a6b3c560a225fe69ea0ee4170ee122faad934f16.zip |
Diffstat (limited to '')
-rw-r--r-- | source/World.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/source/World.h b/source/World.h index eacc772b7..dac30e6aa 100644 --- a/source/World.h +++ b/source/World.h @@ -438,13 +438,18 @@ public: /// Calls the callback for the chunk specified, with ChunkMapCS locked; returns false if the chunk doesn't exist, otherwise returns the same value as the callback
bool DoWithChunk(int a_ChunkX, int a_ChunkZ, cChunkCallback & a_Callback);
- void GrowTree (int a_BlockX, int a_BlockY, int a_BlockZ); // tolua_export
- void GrowTreeFromSapling(int a_BlockX, int a_BlockY, int a_BlockZ, char a_SaplingMeta); // tolua_export
- void GrowTreeByBiome (int a_BlockX, int a_BlockY, int a_BlockZ); // tolua_export
-
void GrowTreeImage(const sSetBlockVector & a_Blocks);
// tolua_begin
+
+ /// Grows a tree at the specified coords, either from a sapling there, or based on the biome
+ void GrowTree (int a_BlockX, int a_BlockY, int a_BlockZ);
+
+ /// Grows a tree at the specified coords, based on the sapling meta provided
+ void GrowTreeFromSapling(int a_BlockX, int a_BlockY, int a_BlockZ, NIBBLETYPE a_SaplingMeta);
+
+ /// Grows a tree at the specified coords, based on the biome in the place
+ void GrowTreeByBiome (int a_BlockX, int a_BlockY, int a_BlockZ);
/// Grows the plant at the specified block to its ripe stage (bonemeal used); returns false if the block is not growable. If a_IsBonemeal is true, block is not grown if not allowed in world.ini
bool GrowRipePlant(int a_BlockX, int a_BlockY, int a_BlockZ, bool a_IsByBonemeal = false);
@@ -453,7 +458,7 @@ public: void GrowCactus(int a_BlockX, int a_BlockY, int a_BlockZ, int a_NumBlocksToGrow);
/// 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, char a_BlockType);
+ void GrowMelonPumpkin(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType);
/// 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);
|