diff options
author | Alexander Harkness <bearbin@gmail.com> | 2013-11-26 18:21:06 +0100 |
---|---|---|
committer | Alexander Harkness <bearbin@gmail.com> | 2013-11-26 18:21:06 +0100 |
commit | 0de95a215f960c51bd7180218c1acef2414ce7d0 (patch) | |
tree | 80c80002565be1dc2fa537416ca7e6a1fd3e9da0 /src/World.h | |
parent | Merge branch 'master' into foldermove2 (diff) | |
parent | cWorld::SpawnExperienceOrb() now returns the entity ID of the spawned orb. (diff) | |
download | cuberite-0de95a215f960c51bd7180218c1acef2414ce7d0.tar cuberite-0de95a215f960c51bd7180218c1acef2414ce7d0.tar.gz cuberite-0de95a215f960c51bd7180218c1acef2414ce7d0.tar.bz2 cuberite-0de95a215f960c51bd7180218c1acef2414ce7d0.tar.lz cuberite-0de95a215f960c51bd7180218c1acef2414ce7d0.tar.xz cuberite-0de95a215f960c51bd7180218c1acef2414ce7d0.tar.zst cuberite-0de95a215f960c51bd7180218c1acef2414ce7d0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/World.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/World.h b/src/World.h index d10aa3b78..284e96bbb 100644 --- a/src/World.h +++ b/src/World.h @@ -353,6 +353,9 @@ public: /// Spawns item pickups for each item in the list. May compress pickups if too many entities. All pickups get the speed specified: void SpawnItemPickups(const cItems & a_Pickups, double a_BlockX, double a_BlockY, double a_BlockZ, double a_SpeedX, double a_SpeedY, double a_SpeedZ, bool IsPlayerCreated = false); + /// Spawns an experience orb at the given location with the given reward. It returns the UniqueID of the spawned experience orb. + int SpawnExperienceOrb(double a_X, double a_Y, double a_Z, int a_Reward); + /// Spawns a new primed TNT entity at the specified block coords and specified fuse duration. Initial velocity is given based on the relative coefficient provided void SpawnPrimedTNT(double a_X, double a_Y, double a_Z, double a_FuseTimeInSec, double a_InitialVelocityCoeff = 1); |