summaryrefslogtreecommitdiffstats
path: root/src/MobSpawner.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-19 23:00:54 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-19 23:00:54 +0200
commit718eb227abe3b9a0e5277d663e32c6e10d51ab52 (patch)
tree5be83249ccd5b1ab4d2b87a4fa1597424d4e19b2 /src/MobSpawner.h
parentMerge branch 'master' into MobSpawner (diff)
downloadcuberite-718eb227abe3b9a0e5277d663e32c6e10d51ab52.tar
cuberite-718eb227abe3b9a0e5277d663e32c6e10d51ab52.tar.gz
cuberite-718eb227abe3b9a0e5277d663e32c6e10d51ab52.tar.bz2
cuberite-718eb227abe3b9a0e5277d663e32c6e10d51ab52.tar.lz
cuberite-718eb227abe3b9a0e5277d663e32c6e10d51ab52.tar.xz
cuberite-718eb227abe3b9a0e5277d663e32c6e10d51ab52.tar.zst
cuberite-718eb227abe3b9a0e5277d663e32c6e10d51ab52.zip
Diffstat (limited to 'src/MobSpawner.h')
-rw-r--r--src/MobSpawner.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/MobSpawner.h b/src/MobSpawner.h
index f3c56fe2d..e139f6923 100644
--- a/src/MobSpawner.h
+++ b/src/MobSpawner.h
@@ -51,9 +51,10 @@ public :
typedef const std::set<cMonster *> tSpawnedContainer;
tSpawnedContainer & getSpawned(void);
+ /** Returns true if specified type of mob can spawn on specified block */
+ static bool CanSpawnHere(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_RelZ, cMonster::eType a_MobType, EMCSBiome a_Biome);
+
protected :
- // return true if specified type of mob can spawn on specified block
- bool CanSpawnHere(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_RelZ, cMonster::eType a_MobType, EMCSBiome a_Biome);
// return a random type that can spawn on specified biome.
// returns E_ENTITY_TYPE_DONOTUSE if none is possible