summaryrefslogtreecommitdiffstats
path: root/src/BlockID.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-10-05 22:09:19 +0200
committermadmaxoft <github@xoft.cz>2014-10-05 22:09:19 +0200
commit77c5b410e653433a17c7cf25b115dae4c25bdbd2 (patch)
tree9c83562622c5f554355ddd2ca54605aa04379627 /src/BlockID.cpp
parentFixed typo. (diff)
downloadcuberite-77c5b410e653433a17c7cf25b115dae4c25bdbd2.tar
cuberite-77c5b410e653433a17c7cf25b115dae4c25bdbd2.tar.gz
cuberite-77c5b410e653433a17c7cf25b115dae4c25bdbd2.tar.bz2
cuberite-77c5b410e653433a17c7cf25b115dae4c25bdbd2.tar.lz
cuberite-77c5b410e653433a17c7cf25b115dae4c25bdbd2.tar.xz
cuberite-77c5b410e653433a17c7cf25b115dae4c25bdbd2.tar.zst
cuberite-77c5b410e653433a17c7cf25b115dae4c25bdbd2.zip
Diffstat (limited to '')
-rw-r--r--src/BlockID.cpp51
1 files changed, 0 insertions, 51 deletions
diff --git a/src/BlockID.cpp b/src/BlockID.cpp
index 9026d81f2..755c721db 100644
--- a/src/BlockID.cpp
+++ b/src/BlockID.cpp
@@ -253,57 +253,6 @@ AString ItemToFullString(const cItem & a_Item)
-int StringToMobType(const AString & a_MobString)
-{
- static struct
- {
- int m_MobType;
- const char * m_String;
- } MobMap [] =
- {
- {mtCreeper, "Creeper"},
- {mtSkeleton, "Skeleton"},
- {mtSpider, "Spider"},
- {mtGiant, "Giant"},
- {mtZombie, "Zombie"},
- {mtSlime, "Slime"},
- {mtGhast, "Ghast"},
- {mtZombiePigman, "ZombiePigman"},
- {mtEnderman, "Enderman"},
- {mtCaveSpider, "CaveSpider"},
- {mtSilverfish, "SilverFish"},
- {mtBlaze, "Blaze"},
- {mtMagmaCube, "MagmaCube"},
- {mtEnderDragon, "EnderDragon"},
- {mtWither, "Wither"},
- {mtBat, "Bat"},
- {mtWitch, "Witch"},
- {mtPig, "Pig"},
- {mtSheep, "Sheep"},
- {mtCow, "Cow"},
- {mtChicken, "Chicken"},
- {mtSquid, "Squid"},
- {mtWolf, "Wolf"},
- {mtMooshroom, "Mooshroom"},
- {mtSnowGolem, "SnowGolem"},
- {mtOcelot, "Ocelot"},
- {mtIronGolem, "IronGolem"},
- {mtVillager, "Villager"},
- };
- for (size_t i = 0; i < ARRAYCOUNT(MobMap); i++)
- {
- if (NoCaseCompare(MobMap[i].m_String, a_MobString) == 0)
- {
- return MobMap[i].m_MobType;
- }
- } // for i - MobMap[]
- return -1;
-}
-
-
-
-
-
eDimension StringToDimension(const AString & a_DimensionString)
{
// First try decoding as a number