diff options
author | Bond-009 <bond.009@outlook.com> | 2018-04-11 13:17:30 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2018-04-11 13:17:30 +0200 |
commit | 98d807187bbaec4cd65dbe7c1ecac0435efb6df0 (patch) | |
tree | d917cf6bc68e013ff1229303d3668c2947b2682b /src/MobSpawner.h | |
parent | Update m_LastSentPosition in TeleportToCoords and DoMoveToWorld. (#4211) (diff) | |
download | cuberite-98d807187bbaec4cd65dbe7c1ecac0435efb6df0.tar cuberite-98d807187bbaec4cd65dbe7c1ecac0435efb6df0.tar.gz cuberite-98d807187bbaec4cd65dbe7c1ecac0435efb6df0.tar.bz2 cuberite-98d807187bbaec4cd65dbe7c1ecac0435efb6df0.tar.lz cuberite-98d807187bbaec4cd65dbe7c1ecac0435efb6df0.tar.xz cuberite-98d807187bbaec4cd65dbe7c1ecac0435efb6df0.tar.zst cuberite-98d807187bbaec4cd65dbe7c1ecac0435efb6df0.zip |
Diffstat (limited to 'src/MobSpawner.h')
-rw-r--r-- | src/MobSpawner.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/MobSpawner.h b/src/MobSpawner.h index c396637d5..695467692 100644 --- a/src/MobSpawner.h +++ b/src/MobSpawner.h @@ -45,14 +45,14 @@ public : /** 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, eMonsterType a_MobType, EMCSBiome a_Biome); + /** Returns all mob types that can spawn that biome */ + static std::set<eMonsterType> GetAllowedMobTypes(EMCSBiome a_Biome); + protected : /** Returns a random type that can spawn in the specified biome. Returns mtInvalidType if none is possible. */ eMonsterType ChooseMobType(EMCSBiome a_Biome); - /** Adds toAdd into toAddIn, if toAdd is in m_AllowedTypes */ - void addIfAllowed(eMonsterType toAdd, std::vector<eMonsterType> & toAddIn); - cMonster::eFamily m_MonsterFamily; std::set<eMonsterType> m_AllowedTypes; bool m_NewPack; |