summaryrefslogtreecommitdiffstats
path: root/src/Blocks/WorldInterface.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-09-12 20:43:05 +0200
committerMattes D <github@xoft.cz>2014-09-12 20:43:05 +0200
commitdb13405da236b5ba42d36135bf905a30341a425c (patch)
tree42e2cad05899d63f2471578b20313583ca570a70 /src/Blocks/WorldInterface.h
parentFixed iron ore drop. (diff)
parentOnly drop flint or gravel, not both. (diff)
downloadcuberite-db13405da236b5ba42d36135bf905a30341a425c.tar
cuberite-db13405da236b5ba42d36135bf905a30341a425c.tar.gz
cuberite-db13405da236b5ba42d36135bf905a30341a425c.tar.bz2
cuberite-db13405da236b5ba42d36135bf905a30341a425c.tar.lz
cuberite-db13405da236b5ba42d36135bf905a30341a425c.tar.xz
cuberite-db13405da236b5ba42d36135bf905a30341a425c.tar.zst
cuberite-db13405da236b5ba42d36135bf905a30341a425c.zip
Diffstat (limited to 'src/Blocks/WorldInterface.h')
-rw-r--r--src/Blocks/WorldInterface.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Blocks/WorldInterface.h b/src/Blocks/WorldInterface.h
index b43d011d8..889ef1d87 100644
--- a/src/Blocks/WorldInterface.h
+++ b/src/Blocks/WorldInterface.h
@@ -35,6 +35,9 @@ public:
/** Spawns a mob of the specified type. Returns the mob's EntityID if recognized and spawned, <0 otherwise */
virtual int SpawnMob(double a_PosX, double a_PosY, double a_PosZ, cMonster::eType a_MonsterType) = 0;
+ /** Spawns an experience orb at the given location with the given reward. It returns the UniqueID of the spawned experience orb. */
+ virtual int SpawnExperienceOrb(double a_X, double a_Y, double a_Z, int a_Reward) = 0;
+
/** Calls the callback for the block entity at the specified coords; returns false if there's no block entity at those coords, true if found */
virtual bool DoWithBlockEntityAt(int a_BlockX, int a_BlockY, int a_BlockZ, cBlockEntityCallback & a_Callback) = 0;