List of usage examples for net.minecraftforge.common BiomeDictionary getBiomes
@Nonnull public static Set<Biome> getBiomes(Type type)
From source file:nightkosh.gravestone_extended.core.GSEntity.java
License:LGPL
private static void addSpawn(List<BiomeDictionary.Type> biomeTypes, Class<? extends EntityLiving> entityClass, EnumCreatureType mobType, int spawnProbability, int spawnMinCount, int spawnMaxCount) { List<Biome> biomes = new ArrayList<>(); for (BiomeDictionary.Type biomeType : biomeTypes) { biomes.addAll(BiomeDictionary.getBiomes(biomeType)); }/*w w w. jav a 2s .com*/ Biome[] biomeArray = new Biome[biomes.size()]; biomes.toArray(biomeArray); EntityRegistry.addSpawn(entityClass, spawnProbability, spawnMinCount, spawnMaxCount, mobType, biomeArray); }
From source file:robmart.rpgmode.common.CommonProxy.java
License:Open Source License
public void postInit(FMLPostInitializationEvent event) { RPGMode.logger.info("Post initialization starting"); InitItems.registerOreDictionary();/*from w w w .j a va 2 s . c o m*/ for (Biome biome : BiomeDictionary.getBiomes(BiomeDictionary.Type.NETHER)) biome.decorator = new BiomeHellDecoratorWrapper(biome.decorator); }
From source file:vazkii.quark.world.feature.NaturalBlazesInNether.java
License:Creative Commons License
@Override public void init(FMLInitializationEvent event) { SpawnListEntry blazeEntry = new SpawnListEntry(EntityBlaze.class, weight, min, max); BiomeDictionary.getBiomes(BiomeDictionary.Type.NETHER) .forEach(biome -> biome.getSpawnableList(EnumCreatureType.MONSTER).add(blazeEntry)); }
From source file:vazkii.quark.world.feature.Wraiths.java
License:Creative Commons License
@Override public void init(FMLInitializationEvent event) { EntityRegistry.addSpawn(EntityWraith.class, weight, min, max, EnumCreatureType.MONSTER, BiomeDictionary.getBiomes(Type.NETHER).toArray(new Biome[0])); }