diff options
author | Mattes D <github@xoft.cz> | 2013-12-07 14:50:42 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2013-12-07 14:50:42 +0100 |
commit | 7d58fa56f26bffa790d71fb5a1ce70d31da69684 (patch) | |
tree | f803a769a6bea4dfaa918188ea7c70477dede203 /src/World.h | |
parent | Updated TRANSAPI (diff) | |
parent | Documented SpawnFallingBlock() (diff) | |
download | cuberite-7d58fa56f26bffa790d71fb5a1ce70d31da69684.tar cuberite-7d58fa56f26bffa790d71fb5a1ce70d31da69684.tar.gz cuberite-7d58fa56f26bffa790d71fb5a1ce70d31da69684.tar.bz2 cuberite-7d58fa56f26bffa790d71fb5a1ce70d31da69684.tar.lz cuberite-7d58fa56f26bffa790d71fb5a1ce70d31da69684.tar.xz cuberite-7d58fa56f26bffa790d71fb5a1ce70d31da69684.tar.zst cuberite-7d58fa56f26bffa790d71fb5a1ce70d31da69684.zip |
Diffstat (limited to 'src/World.h')
-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 ea0db53e6..3b729c5ff 100644 --- a/src/World.h +++ b/src/World.h @@ -355,6 +355,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 falling block entity at the given position. It returns the UniqueID of the spawned falling block. + int SpawnFallingBlock(int a_X, int a_Y, int a_Z, BLOCKTYPE BlockType, NIBBLETYPE BlockMeta); + /// 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); |