summaryrefslogtreecommitdiffstats
path: root/source/World.h
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-11-26 15:37:15 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-11-26 15:37:15 +0100
commit686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5 (patch)
treef31bbc5567d815b4c000da682c71327a6f51a1ab /source/World.h
parentMerge pull request #368 from mc-server/ExpOrbs (diff)
downloadcuberite-686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5.tar
cuberite-686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5.tar.gz
cuberite-686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5.tar.bz2
cuberite-686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5.tar.lz
cuberite-686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5.tar.xz
cuberite-686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5.tar.zst
cuberite-686e0c12e2fa1b8d8e0970306e57cbcfa247f5f5.zip
Diffstat (limited to '')
-rw-r--r--source/World.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/World.h b/source/World.h
index 9397f8b75..284e96bbb 100644
--- a/source/World.h
+++ b/source/World.h
@@ -353,8 +353,8 @@ 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.
- void SpawnExperienceOrb(double a_X, double a_Y, double a_Z, int a_Reward);
+ /// 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);