private void removeNormalMobsAndCreatures() {
   BiomeGenBase[] allbiomes =
       new BiomeGenBase[] {
         BiomeGenBase.beach,
         BiomeGenBase.desert,
         BiomeGenBase.desertHills,
         BiomeGenBase.extremeHills,
         BiomeGenBase.extremeHillsEdge,
         BiomeGenBase.forest,
         BiomeGenBase.forestHills,
         BiomeGenBase.frozenOcean,
         BiomeGenBase.frozenRiver,
         BiomeGenBase.iceMountains,
         BiomeGenBase.icePlains,
         BiomeGenBase.jungle,
         BiomeGenBase.jungleHills,
         BiomeGenBase.mushroomIsland,
         BiomeGenBase.mushroomIslandShore,
         BiomeGenBase.ocean,
         BiomeGenBase.plains,
         BiomeGenBase.river,
         BiomeGenBase.sky,
         BiomeGenBase.swampland,
         BiomeGenBase.taiga,
         BiomeGenBase.taigaHills
       };
   if (!spawnSheep)
     FMLRegistry.removeSpawn(EntitySheep.class, EnumCreatureType.creature, allbiomes);
   if (!spawnCow) FMLRegistry.removeSpawn(EntityCow.class, EnumCreatureType.creature, allbiomes);
   if (!spawnPig) FMLRegistry.removeSpawn(EntityPig.class, EnumCreatureType.creature, allbiomes);
   if (!spawnChicken)
     FMLRegistry.removeSpawn(EntityChicken.class, EnumCreatureType.creature, allbiomes);
   if (!spawnOcelot)
     FMLRegistry.removeSpawn(EntityOcelot.class, EnumCreatureType.monster, allbiomes);
   if (!spawnWolf) FMLRegistry.removeSpawn(EntityWolf.class, EnumCreatureType.creature, allbiomes);
   if (!spawnCaveSpider)
     FMLRegistry.removeSpawn(EntityCaveSpider.class, EnumCreatureType.monster, allbiomes);
   if (!spawnCreeper)
     FMLRegistry.removeSpawn(EntityCreeper.class, EnumCreatureType.monster, allbiomes);
   if (!spawnEnderman)
     FMLRegistry.removeSpawn(EntityEnderman.class, EnumCreatureType.monster, allbiomes);
   if (!spawnGhast)
     FMLRegistry.removeSpawn(EntityGhast.class, EnumCreatureType.monster, allbiomes);
   if (!spawnGiantZombie)
     FMLRegistry.removeSpawn(EntityGiantZombie.class, EnumCreatureType.monster, allbiomes);
   if (!spawnGolem)
     FMLRegistry.removeSpawn(EntityGolem.class, EnumCreatureType.monster, allbiomes);
   if (!spawnMooshroom)
     FMLRegistry.removeSpawn(EntityMooshroom.class, EnumCreatureType.creature, allbiomes);
   if (!spawnPigZombie)
     FMLRegistry.removeSpawn(EntityPigZombie.class, EnumCreatureType.monster, allbiomes);
   if (!spawnSilverFish)
     FMLRegistry.removeSpawn(EntitySilverfish.class, EnumCreatureType.monster, allbiomes);
   if (!spawnSkeleton)
     FMLRegistry.removeSpawn(EntitySkeleton.class, EnumCreatureType.monster, allbiomes);
   if (!spawnSlime)
     FMLRegistry.removeSpawn(EntitySlime.class, EnumCreatureType.monster, allbiomes);
   if (!spawnSpider)
     FMLRegistry.removeSpawn(EntitySpider.class, EnumCreatureType.monster, allbiomes);
   if (!spawnSquid)
     FMLRegistry.removeSpawn(EntitySquid.class, EnumCreatureType.waterCreature, allbiomes);
   if (!spawnZombie)
     FMLRegistry.removeSpawn(EntityZombie.class, EnumCreatureType.monster, allbiomes);
 }
Beispiel #2
0
 /**
  * Remove a spawn
  *
  * @param entityName
  * @param spawnList
  * @param biomes
  */
 public static void removeSpawn(
     String entityName, EnumCreatureType spawnList, BiomeGenBase... biomes) {
   FMLRegistry.removeSpawn(entityName, spawnList, biomes);
 }
Beispiel #3
0
 /**
  * Remove a spawn
  *
  * @param entityClass
  * @param spawnList
  * @param biomes
  */
 public static void removeSpawn(
     Class<? extends EntityLiving> entityClass,
     EnumCreatureType spawnList,
     BiomeGenBase... biomes) {
   FMLRegistry.removeSpawn(entityClass, spawnList, biomes);
 }
Beispiel #4
0
 /**
  * Remove a spawn
  *
  * @param entityName
  * @param spawnList
  */
 public static void removeSpawn(String entityName, EnumCreatureType spawnList) {
   FMLRegistry.removeSpawn(
       entityName, spawnList, FMLServerHandler.instance().getDefaultOverworldBiomes());
 }
Beispiel #5
0
 /**
  * Remove a spawn
  *
  * @param entityClass
  * @param spawnList
  */
 public static void removeSpawn(
     Class<? extends EntityLiving> entityClass, EnumCreatureType spawnList) {
   FMLRegistry.removeSpawn(
       entityClass, spawnList, FMLServerHandler.instance().getDefaultOverworldBiomes());
 }