mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
biombe dicshonary
This commit is contained in:
parent
d2e94af59d
commit
565fea133e
@ -26,7 +26,8 @@ import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.entity.EnumCreatureType;
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
import net.minecraft.world.biome.BiomeGenBase.SpawnListEntry;
|
||||
import net.minecraft.world.biome.BiomeGenBase.TempCategory;
|
||||
import net.minecraftforge.common.BiomeDictionary;
|
||||
import net.minecraftforge.common.BiomeDictionary.Type;
|
||||
|
||||
public class EntityMappings {
|
||||
|
||||
@ -258,7 +259,7 @@ public class EntityMappings {
|
||||
addSpawn(EntityCreeperPhosgene.class, 5, 1, 1, EnumCreatureType.monster, BiomeGenBase.getBiomeGenArray());
|
||||
addSpawn(EntityCreeperVolatile.class, 10, 1, 1, EnumCreatureType.monster, BiomeGenBase.getBiomeGenArray());
|
||||
addSpawn(EntityCreeperGold.class, 1, 1, 1, EnumCreatureType.monster, BiomeGenBase.getBiomeGenArray());
|
||||
addSpawn(EntityPlasticBag.class, 1, 1, 3, EnumCreatureType.waterCreature, getOceanBiomes());
|
||||
addSpawn(EntityPlasticBag.class, 1, 1, 3, EnumCreatureType.waterCreature, BiomeDictionary.getBiomesForType(Type.OCEAN));
|
||||
|
||||
int id = 0;
|
||||
for(Quartet<Class<? extends Entity>, String, Integer, Boolean> entry : entityMappings) {
|
||||
@ -303,15 +304,4 @@ public class EntityMappings {
|
||||
spawns.add(new SpawnListEntry(entityClass, weightedProb, min, max));
|
||||
}
|
||||
}
|
||||
|
||||
public static BiomeGenBase[] getOceanBiomes() {
|
||||
List<BiomeGenBase> biomes = new ArrayList();
|
||||
|
||||
for(BiomeGenBase biome : BiomeGenBase.getBiomeGenArray()) {
|
||||
if(biome != null && biome.getTempCategory() == TempCategory.OCEAN) {
|
||||
biomes.add(biome);
|
||||
}
|
||||
}
|
||||
return biomes.toArray(new BiomeGenBase[0]);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user