summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-12-07 14:50:42 +0100
committerMattes D <github@xoft.cz>2013-12-07 14:50:42 +0100
commit7d58fa56f26bffa790d71fb5a1ce70d31da69684 (patch)
treef803a769a6bea4dfaa918188ea7c70477dede203 /src/World.cpp
parentUpdated TRANSAPI (diff)
parentDocumented SpawnFallingBlock() (diff)
downloadcuberite-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.cpp')
-rw-r--r--src/World.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 7982924ae..29fa8f9e4 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -14,6 +14,7 @@
// Entities (except mobs):
#include "Entities/ExpOrb.h"
+#include "Entities/FallingBlock.h"
#include "Entities/Pickup.h"
#include "Entities/Player.h"
#include "Entities/TNTEntity.h"
@@ -1617,6 +1618,17 @@ void cWorld::SpawnItemPickups(const cItems & a_Pickups, double a_BlockX, double
+int cWorld::SpawnFallingBlock(int a_X, int a_Y, int a_Z, BLOCKTYPE BlockType, NIBBLETYPE BlockMeta)
+{
+ cFallingBlock * FallingBlock = new cFallingBlock(Vector3i(a_X, a_Y, a_Z), BlockType, BlockMeta);
+ FallingBlock->Initialize(this);
+ return FallingBlock->GetUniqueID();
+}
+
+
+
+
+
int cWorld::SpawnExperienceOrb(double a_X, double a_Y, double a_Z, int a_Reward)
{
cExpOrb * ExpOrb = new cExpOrb(a_X, a_Y, a_Z, a_Reward);