diff options
author | Mattes D <github@xoft.cz> | 2016-06-04 13:08:15 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-06-04 13:08:15 +0200 |
commit | fc874ed57d6f16dc5d4b616711e3bfbd6e963ccf (patch) | |
tree | d299b6e8cd24f087f8bf5047cde858d4bcedbcf5 /src/World.h | |
parent | Debuggers: Added the forgotten Inject.lua file. (diff) | |
parent | Makes tall grass and large flowers bonemealable (diff) | |
download | cuberite-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/World.h')
-rw-r--r-- | src/World.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/World.h b/src/World.h index eafe7b9b6..faddc6f59 100644 --- a/src/World.h +++ b/src/World.h @@ -445,6 +445,10 @@ public: Returns the UniqueID of the spawned minecart, or cEntity::INVALID_ID on failure. */ UInt32 SpawnMinecart(double a_X, double a_Y, double a_Z, int a_MinecartType, const cItem & a_Content = cItem(), int a_BlockHeight = 1); + /** Spawns a boat at the given coordinates. + Returns the UniqueID of the spawned boat, or cEntity::INVALID_ID on failure. */ + UInt32 SpawnBoat(double a_X, double a_Y, double a_Z); + /** Spawns an experience orb at the given location with the given reward. Returns the UniqueID of the spawned experience orb, or cEntity::INVALID_ID on failure. */ virtual UInt32 SpawnExperienceOrb(double a_X, double a_Y, double a_Z, int a_Reward) override; @@ -582,14 +586,14 @@ public: /** 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); - /** 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 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); + /** 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); - /** 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); /** Returns the biome at the specified coords. Reads the biome from the chunk, if loaded, otherwise uses the world generator to provide the biome value */ EMCSBiome GetBiomeAt(int a_BlockX, int a_BlockZ); @@ -933,6 +937,8 @@ private: bool m_IsPumpkinBonemealable; bool m_IsSaplingBonemealable; bool m_IsSugarcaneBonemealable; + bool m_IsBigFlowerBonemealable; + bool m_IsTallGrassBonemealable; /** Whether command blocks are enabled or not */ bool m_bCommandBlocksEnabled; |