summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockMobHead.h
diff options
context:
space:
mode:
authorandrew <xdotftw@gmail.com>2014-03-24 11:29:19 +0100
committerandrew <xdotftw@gmail.com>2014-03-24 11:29:19 +0100
commit6b77dc74ade3d8088da09d26c1b701d92ef28e9e (patch)
tree78e16164d1668d628ef0f545a5e62f5cbc1025fc /src/Blocks/BlockMobHead.h
parentPlugins can set flying speed. (diff)
downloadcuberite-6b77dc74ade3d8088da09d26c1b701d92ef28e9e.tar
cuberite-6b77dc74ade3d8088da09d26c1b701d92ef28e9e.tar.gz
cuberite-6b77dc74ade3d8088da09d26c1b701d92ef28e9e.tar.bz2
cuberite-6b77dc74ade3d8088da09d26c1b701d92ef28e9e.tar.lz
cuberite-6b77dc74ade3d8088da09d26c1b701d92ef28e9e.tar.xz
cuberite-6b77dc74ade3d8088da09d26c1b701d92ef28e9e.tar.zst
cuberite-6b77dc74ade3d8088da09d26c1b701d92ef28e9e.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockMobHead.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Blocks/BlockMobHead.h b/src/Blocks/BlockMobHead.h
index 2b128f13b..6aa01f986 100644
--- a/src/Blocks/BlockMobHead.h
+++ b/src/Blocks/BlockMobHead.h
@@ -21,6 +21,18 @@ public:
{
a_Pickups.push_back(cItem(E_ITEM_HEAD, 1, 0));
}
+
+ bool TrySpawnWither(cChunkInterface & a_ChunkInterface, int a_BlockX, int a_BlockY, int a_BlockZ)
+ {
+ if (a_BlockY < 2)
+ {
+ return false;
+ }
+
+ // TODO 2014-03-24 xdot
+
+ return false;
+ }
virtual void OnPlacedByPlayer(
cChunkInterface & a_ChunkInterface, cWorldInterface & a_WorldInterface, cPlayer * a_Player,
@@ -62,6 +74,8 @@ public:
cWorld * World = (cWorld *) &a_WorldInterface;
World->DoWithMobHeadAt(a_BlockX, a_BlockY, a_BlockZ, Callback);
a_ChunkInterface.SetBlockMeta(a_BlockX, a_BlockY, a_BlockZ, a_BlockMeta);
+
+ TrySpawnWither(a_ChunkInterface, a_BlockX, a_BlockY, a_BlockZ);
}
} ;