Java 类net.minecraftforge.common.BiomeManager.BiomeEntry 实例源码

项目:Coding    文件:ModBiomes.java   
public static void preInit() {
    int biomeID = 10;
    while (BiomeDictionary.isBiomeRegistered(biomeID))
        biomeID++;

    // Create Town Forest
    biomeTownForest = new BiomeTownForest(biomeID).setBiomeName(BiomeTownForest.name);
       // Allow villages in this biome
    BiomeManager.addVillageBiome(biomeTownForest, true);
    BiomeDictionary.registerBiomeType(biomeTownForest, Type.MAGICAL);
    int weight = Configs.VILLAGE.town_weight;
    LogHelper.info("ModBiomes: Town Forest created with weight: " + weight);
    biomeEntryTownForest = new BiomeEntry(biomeTownForest, weight);
    BiomeManager.addBiome(BiomeType.WARM, biomeEntryTownForest);

    // Create City Forest
    biomeID++;
    biomeCityPlains = new BiomeCityPlains(biomeID).setBiomeName(BiomeCityPlains.name);
       // Allow villages in this biome
    BiomeManager.addVillageBiome(biomeCityPlains, true);
    BiomeDictionary.registerBiomeType(biomeCityPlains, Type.MAGICAL);
    weight = Configs.VILLAGE.city_weight;
    LogHelper.info("ModBiomes: City Plains created with weight: " + weight);
    biomeEntryCityPlains = new BiomeEntry(biomeCityPlains, weight);
    BiomeManager.addBiome(BiomeType.WARM, biomeEntryCityPlains);
}
项目:ExPetrum    文件:WorldTypeExP.java   
public GenLayerBiomeMod(long p_i45560_1_, GenLayer p_i45560_3_, WorldType p_i45560_4_, ChunkGeneratorSettings p_i45560_5_)
{
    super(p_i45560_1_);
    this.parent = p_i45560_3_;
    this.biomes.add(new BiomeEntry(ExPBiomes.plains, 10));
       this.biomes.add(new BiomeEntry(ExPBiomes.forest, 10));
       this.biomes.add(new BiomeEntry(ExPBiomes.mountains, 10));
       this.biomes.add(new BiomeEntry(ExPBiomes.dense_forest, 10));
       this.biomes.add(new BiomeEntry(ExPBiomes.swampland, 10));
       this.biomes.add(new BiomeEntry(ExPBiomes.rare_forest, 10));
       this.biomes.add(new BiomeEntry(ExPBiomes.hills, 10));
       this.biomes.add(new BiomeEntry(ExPBiomes.cold_forest, 10));
    this.biomes.add(new BiomeEntry(ExPBiomes.dense_cold_forest, 10));
    this.biomes.add(new BiomeEntry(ExPBiomes.cold_plains, 10));
    this.biomes.add(new BiomeEntry(ExPBiomes.savanna, 10));
    this.biomes.add(new BiomeEntry(ExPBiomes.warm_forest, 10));
    this.biomes.add(new BiomeEntry(ExPBiomes.warm_plains, 10));
    this.biomes.add(new BiomeEntry(ExPBiomes.dense_warm_forest, 10));
    this.biomes.add(new BiomeEntry(ExPBiomes.jungle, 10));
    this.biomes.add(new BiomeEntry(ExPBiomes.desert, 10));
    this.settings = p_i45560_5_;
}
项目:PopularMMOS-EpicProportions-Mod    文件:GenLayerBiomeEpic.java   
public GenLayerBiomeEpic(long p_i2122_1_, GenLayer p_i2122_3_, WorldType p_i2122_4_)
{
    super(p_i2122_1_);

    this.parent = p_i2122_3_;

    this.desertBiomes.removeAll(BiomeManager.desertBiomes);
    this.warmBiomes.removeAll(BiomeManager.warmBiomes);
    this.coolBiomes.removeAll(BiomeManager.coolBiomes);
    this.icyBiomes.removeAll(BiomeManager.icyBiomes);

    if (p_i2122_4_ == WorldType.DEFAULT_1_1)
    {

        desertBiomes.add(new BiomeEntry(BiomeRegistry.biomePat, 10));
        desertBiomes.add(new BiomeEntry(BiomeRegistry.biomeJen, 10));
    }
    else
    {

        desertBiomes.add(new BiomeEntry(BiomeRegistry.biomePat, 10));
        desertBiomes.add(new BiomeEntry(BiomeRegistry.biomeJen, 10));
    }
}
项目:AdvancedRocketry    文件:DimensionProperties.java   
public DimensionProperties(int id) {
    name = "Temp";
    resetProperties();

    planetId = id;
    parentPlanet = -1;
    childPlanets = new HashSet<Integer>();
    orbitalPhi = 0;

    allowedBiomes = new LinkedList<BiomeManager.BiomeEntry>();
    terraformedBiomes = new LinkedList<BiomeManager.BiomeEntry>();
    satallites = new HashMap<>();
    tickingSatallites = new HashMap<Long,SatelliteBase>();
    isNativeDimension = true;
    isGasGiant = false;
}
项目:AdvancedRocketry    文件:DimensionProperties.java   
/**
 * Adds all biomes of this type to the list of biomes allowed to generate
 * @param type
 */
public void addBiomeType(BiomeDictionary.Type type) {

    ArrayList<BiomeGenBase> entryList = new ArrayList<BiomeGenBase>();

    entryList.addAll(Arrays.asList(BiomeDictionary.getBiomesForType(type)));

    //Neither are acceptable on planets
    entryList.remove(BiomeGenBase.hell);
    entryList.remove(BiomeGenBase.sky);

    //Make sure we dont add double entries
    Iterator<BiomeGenBase> iter = entryList.iterator();
    while(iter.hasNext()) {
        BiomeGenBase nextbiome = iter.next();
        for(BiomeEntry entry : allowedBiomes) {
            if(BiomeDictionary.areBiomesEquivalent(entry.biome, nextbiome))
                iter.remove();
        }

    }
    allowedBiomes.addAll(getBiomesEntries(entryList));

}
项目:AdvancedRocketry    文件:DimensionProperties.java   
/**
 * Removes all biomes of this type from the list of biomes allowed to generate
 * @param type
 */
public void removeBiomeType(BiomeDictionary.Type type) {

    ArrayList<BiomeGenBase> entryList = new ArrayList<BiomeGenBase>();

    entryList.addAll(Arrays.asList(BiomeDictionary.getBiomesForType(type)));

    for(BiomeGenBase biome : entryList) {
        Iterator<BiomeEntry> iterator = allowedBiomes.iterator();
        while(iterator.hasNext()) {
            if(BiomeDictionary.areBiomesEquivalent(iterator.next().biome, biome))
                iterator.remove();
        }
    }

}
项目:RidiculousWorld    文件:BiomeGenSpooky.java   
public BiomeGenSpooky(int id)
{
    super(id);
    this.spawnableCreatureList.clear();
    this.theBiomeDecorator.treesPerChunk = 10;
    this.theBiomeDecorator.grassPerChunk = 2;
    this.theBiomeDecorator.mushroomsPerChunk = 1;
    this.spawnableCreatureList.clear();
    this.spawnableCreatureList.add(new SpawnListEntry(EntityWolf.class, 10, 4, 4));
    this.spawnableMonsterList.add(new SpawnListEntry(EntityWitch.class, 10, 4, 4));
    this.spawnableMonsterList.add(new SpawnListEntry(EntityFrankenstein.class, 90, 4, 4));
    BiomeManager.addBiome(BiomeManager.BiomeType.COOL, new BiomeEntry(this, Config.spookyWeight));
    BiomeManager.addStrongholdBiome(this);
    BiomeDictionary.registerBiomeType(this, Type.SPOOKY, Type.MAGICAL, Type.FOREST);
    setBiomeName("Spooky Forest");
    setTemperatureRainfall(0.25F, 0.5F);
    setColor(0xF2A100);
    this.waterColorMultiplier = 0x970E0E;
}
项目:The-Derpy-Shiz-Mod    文件:DerpyWorld.java   
public void main() {
    //Ores
    GameRegistry.registerWorldGenerator(new WorldGenDerpyOres(), 42);

    //Biome
    BiomeGenBase magicBiome = new MagicBiomeGen(Main.idMagicBiome);
    BiomeDictionary.registerBiomeType(magicBiome, BiomeDictionary.Type.MAGICAL);
    BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(magicBiome, 10));
    BiomeManager.addSpawnBiome(magicBiome);

    //Trees
    GameRegistry.registerWorldGenerator(new DerpyTreeGen(new WorldGenMagicTree(false),magicBiome,9,1),42);
    GameRegistry.registerWorldGenerator(new DerpyTreeGen(new WorldGenEbonyTree(false),magicBiome,10,1),42);

    BiomeGenBase[] forests = BiomeDictionary.getBiomesForType(Type.FOREST);
    for (int i=0;i<forests.length;i++) {
        BiomeGenBase b = forests[i];
        GameRegistry.registerWorldGenerator(new DerpyTreeGen(new WorldGenEbonyTree(false),b,2,3),1);
    }
}
项目:CrystalMod    文件:ModBiomes.java   
public static void init(){
    float height = ((float)68 - 65.0F) / 17.0F;
    float heightVar = Math.abs((((float)10 - 7.0F) / (20.0F * 4.0F) + ((float)5 - 4.0F) / 20.0F) / 2.0F);
    Biome.BiomeProperties bambooProperties = new Biome.BiomeProperties("Bamboo Forest").setBaseHeight(height).setHeightVariation(heightVar).setTemperature(0.8F).setRainfall(0.4F);
    BAMBOO_FOREST = (BiomeBambooForest) new BiomeBambooForest(bambooProperties).setRegistryName(CrystalMod.resourceL("bambooforest"));
    GameRegistry.register(BAMBOO_FOREST);
    BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(BAMBOO_FOREST, 10));
    BiomeDictionary.addTypes(BAMBOO_FOREST, BiomeDictionary.Type.FOREST, BiomeDictionary.Type.WET);
    BiomeManager.addSpawnBiome(BAMBOO_FOREST);
    ModLogger.info("Added "+BAMBOO_FOREST.getBiomeName()+" id = "+Biome.getIdForBiome(BAMBOO_FOREST));
}
项目:PopularMMOS-EpicProportions-Mod    文件:JenGenLayerBiome.java   
public JenGenLayerBiome(long p_i2122_1_, GenLayer p_i2122_3_, WorldType p_i2122_4_)
{
    super(p_i2122_1_);

    this.parent = p_i2122_3_;

    this.desertBiomes.addAll(BiomeManager.desertBiomes);
    this.warmBiomes.addAll(BiomeManager.warmBiomes);
    this.coolBiomes.addAll(BiomeManager.coolBiomes);
    this.icyBiomes.addAll(BiomeManager.icyBiomes);

    if (p_i2122_4_ == WorldType.DEFAULT_1_1)
    {
        desertBiomes.add(new BiomeEntry(BiomeGenBase.desert, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.forest, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.extremeHills, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.swampland, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.plains, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.taiga, 10));
        desertBiomes.add(new BiomeEntry(BiomeRegistry.biomeJen, 10));
    }
    else
    {
        desertBiomes.add(new BiomeEntry(BiomeGenBase.desert, 30));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.savanna, 20));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.plains, 10));
        desertBiomes.add(new BiomeEntry(BiomeRegistry.biomeJen, 10));
    }
}
项目:PopularMMOS-EpicProportions-Mod    文件:PatGenLayerBiome.java   
public PatGenLayerBiome(long p_i2122_1_, GenLayer p_i2122_3_, WorldType p_i2122_4_)
{
    super(p_i2122_1_);

    this.parent = p_i2122_3_;

    this.desertBiomes.addAll(BiomeManager.desertBiomes);
    this.warmBiomes.addAll(BiomeManager.warmBiomes);
    this.coolBiomes.addAll(BiomeManager.coolBiomes);
    this.icyBiomes.addAll(BiomeManager.icyBiomes);

    if (p_i2122_4_ == WorldType.DEFAULT_1_1)
    {
        desertBiomes.add(new BiomeEntry(BiomeGenBase.desert, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.forest, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.extremeHills, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.swampland, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.plains, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.taiga, 10));
        desertBiomes.add(new BiomeEntry(BiomeRegistry.biomePat, 10));
    }
    else
    {
        desertBiomes.add(new BiomeEntry(BiomeGenBase.desert, 30));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.savanna, 20));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.plains, 10));
        desertBiomes.add(new BiomeEntry(BiomeRegistry.biomePat, 10));
    }
}
项目:PopularMMOS-EpicProportions-Mod    文件:GenLayerBiome.java   
public GenLayerBiome(long p_i2122_1_, GenLayer p_i2122_3_, WorldType p_i2122_4_)
{
    super(p_i2122_1_);

    this.parent = p_i2122_3_;

    this.desertBiomes.addAll(BiomeManager.desertBiomes);
    this.warmBiomes.addAll(BiomeManager.warmBiomes);
    this.coolBiomes.addAll(BiomeManager.coolBiomes);
    this.icyBiomes.addAll(BiomeManager.icyBiomes);

    if (p_i2122_4_ == WorldType.DEFAULT_1_1)
    {
        desertBiomes.add(new BiomeEntry(BiomeGenBase.desert, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.forest, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.extremeHills, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.swampland, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.plains, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.taiga, 10));
        desertBiomes.add(new BiomeEntry(BiomeRegistry.biomePat, 10));
        desertBiomes.add(new BiomeEntry(BiomeRegistry.biomeJen, 10));
    }
    else
    {
        desertBiomes.add(new BiomeEntry(BiomeGenBase.desert, 30));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.savanna, 20));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.plains, 10));
        desertBiomes.add(new BiomeEntry(BiomeRegistry.biomePat, 10));
        desertBiomes.add(new BiomeEntry(BiomeRegistry.biomeJen, 10));
    }
}
项目:Minestrappolation-4    文件:MBiomeManager.java   
private static void registerBiomes(BiomeGenBase biome, BiomeType type, Type forgeType, int id, boolean canSpawnIn)
{
    BiomeDictionary.registerBiomeType(biome, forgeType);
    BiomeManager.addBiome(type, new BiomeEntry(biome, id));
    if (canSpawnIn)
    {
        BiomeManager.addSpawnBiome(biome);
    }
}
项目:AdvancedRocketry    文件:GenLayerBiomePlanet.java   
protected BiomeEntry getWeightedBiomeEntry()
{
    if(biomeEntries == null || biomeEntries.isEmpty())
        return new BiomeEntry(BiomeGenBase.ocean, 100);

    List<BiomeEntry> biomeList = biomeEntries;
    int totalWeight = WeightedRandom.getTotalWeight(biomeList);
    int weight = nextInt(Math.max(totalWeight / 10,1)) * 10;
    return (BiomeEntry)WeightedRandom.getItem(biomeList, weight);
}
项目:RidiculousWorld    文件:BiomeGenTime.java   
public BiomeGenTime(int id)
{
    super(id);
    /*this.spawnableCreatureList.clear();
    this.theBiomeDecorator.treesPerChunk = 10;
    this.theBiomeDecorator.grassPerChunk = 2;
    this.theBiomeDecorator.mushroomsPerChunk = 1;
    this.spawnableCreatureList.clear();
    this.spawnableCreatureList.add(new SpawnListEntry(EntityWolf.class, 10, 4, 4));
    this.spawnableMonsterList.add(new SpawnListEntry(EntityWitch.class, 10, 4, 4));
    this.spawnableMonsterList.add(new SpawnListEntry(EntityFrankenstein.class, 90, 4, 4));*/
    this.spawnableMonsterList.clear();
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySpider.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityZombie.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySkeleton.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityCreeper.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySlime.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityOldEnderman.class, 10, 1, 4));
    this.setHeight(height_LowPlains);
    this.theBiomeDecorator.treesPerChunk = -999;
    this.theBiomeDecorator.flowersPerChunk = -1;
    this.theBiomeDecorator.grassPerChunk = 5;
    this.flowers.clear();
    this.flowers.add(new FlowerEntry(Blocks.yellow_flower, 0, 10));
    this.flowers.add(new FlowerEntry(RidiculousBlocks.flower, 0, 10));
    this.flowers.add(new FlowerEntry(RidiculousBlocks.flower, 1, 1));
    this.flowers.add(new FlowerEntry(RidiculousBlocks.flower, 2, 1));
    BiomeManager.addSpawnBiome(this);
    BiomeManager.addBiome(BiomeManager.BiomeType.COOL, new BiomeEntry(this, Config.timeWeight));
    BiomeManager.addBiome(BiomeManager.BiomeType.WARM, new BiomeEntry(this, Config.timeWeight));
    //BiomeManager.addStrongholdBiome(this);
    BiomeDictionary.registerBiomeType(this, Type.PLAINS, Type.MAGICAL);
    setBiomeName("Timeslip Fields");
    setTemperatureRainfall(0.25F, 0.5F);
    setColor(0x7FBBFF);
    //this.waterColorMultiplier = 0x970E0E;
}
项目:Spencerios-Mod-Mod    文件:SpenceriosModMod.java   
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
    SMMConfigManager.init(new File(event.getModConfigurationDirectory().getAbsolutePath() + File.separator + "SMM.cfg"));
    SMMBlocks.initBlocks();
    SMMItems.initItems();
    SMMArmor.initArmor();
    SMMTools.initTools();
    GameRegistry.registerWorldGenerator(new SMMGenerationManager(), 0);
    BiomeManager.warmBiomes.add(new BiomeEntry(mgForest, ConfigFields.madagascarianForestRarity));
    BiomeManager.addSpawnBiome(mgForest);
}
项目:Cauldron    文件:GenLayerBiome.java   
public GenLayerBiome(long p_i2122_1_, GenLayer p_i2122_3_, WorldType p_i2122_4_)
{
    super(p_i2122_1_);

    this.parent = p_i2122_3_;

    this.desertBiomes.addAll(BiomeManager.desertBiomes);
    this.warmBiomes.addAll(BiomeManager.warmBiomes);
    this.coolBiomes.addAll(BiomeManager.coolBiomes);
    this.icyBiomes.addAll(BiomeManager.icyBiomes);

    if (p_i2122_4_ == WorldType.DEFAULT_1_1)
    {
        desertBiomes.add(new BiomeEntry(BiomeGenBase.desert, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.forest, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.extremeHills, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.swampland, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.plains, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.taiga, 10));
    }
    else
    {
        desertBiomes.add(new BiomeEntry(BiomeGenBase.desert, 30));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.savanna, 20));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.plains, 10));
    }
}
项目:Cauldron    文件:GenLayerBiome.java   
public GenLayerBiome(long p_i2122_1_, GenLayer p_i2122_3_, WorldType p_i2122_4_)
{
    super(p_i2122_1_);

    this.parent = p_i2122_3_;

    this.desertBiomes.addAll(BiomeManager.desertBiomes);
    this.warmBiomes.addAll(BiomeManager.warmBiomes);
    this.coolBiomes.addAll(BiomeManager.coolBiomes);
    this.icyBiomes.addAll(BiomeManager.icyBiomes);

    if (p_i2122_4_ == WorldType.DEFAULT_1_1)
    {
        desertBiomes.add(new BiomeEntry(BiomeGenBase.desert, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.forest, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.extremeHills, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.swampland, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.plains, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.taiga, 10));
    }
    else
    {
        desertBiomes.add(new BiomeEntry(BiomeGenBase.desert, 30));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.savanna, 20));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.plains, 10));
    }
}
项目:modpack    文件:LavaGenLayerBiome.java   
public LavaGenLayerBiome(long p_i2122_1_, GenLayer p_i2122_3_, WorldType p_i2122_4_)
{
    super(p_i2122_1_);

    this.parent = p_i2122_3_;

    this.desertBiomes.addAll(BiomeManager.desertBiomes);
    this.warmBiomes.addAll(BiomeManager.warmBiomes);
    this.coolBiomes.addAll(BiomeManager.coolBiomes);
    this.icyBiomes.addAll(BiomeManager.icyBiomes);

    if (p_i2122_4_ == WorldType.DEFAULT_1_1)
    {
        desertBiomes.add(new BiomeEntry(BiomeGenBase.desert, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.forest, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.extremeHills, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.swampland, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.plains, 10));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.taiga, 10));
        desertBiomes.add(new BiomeEntry(MainRegistry.biomelava, 10));
    }
    else
    {
        desertBiomes.add(new BiomeEntry(BiomeGenBase.desert, 30));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.savanna, 20));
        desertBiomes.add(new BiomeEntry(BiomeGenBase.plains, 10));
        desertBiomes.add(new BiomeEntry(MainRegistry.biomelava, 10));
    }
}
项目:TheStuffMod    文件:ModBiomes.java   
public static void init() {
    BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(cherryForest, 4));
    BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(rubberPlains, 4));
    BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(lemonForest, 4));
    BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(pearForest, 4));
    BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(mangoForest, 4));
    BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(fruitForest, 2));
    BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(mapleWoods, 5));
    BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(oliveWoods, 5));
    BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(ebonyWoods, 5));
    BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(jacarandaWoods, 5));
    BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(endearingWoods, 3));
    BiomeManager.addBiome(BiomeType.DESERT, new BiomeEntry(bananaGrove, 6));
    BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(cherryForest, 4));
    BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(rubberPlains, 4));
    BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(lemonForest, 4));
    BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(pearForest, 4));
    BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(mangoForest, 4));
    BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(fruitForest, 2));
    BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(mapleWoods, 5));
    BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(oliveWoods, 5));
    BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(ebonyWoods, 5));
    BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(jacarandaWoods, 5));
    BiomeManager.addBiome(BiomeType.COOL, new BiomeEntry(endearingWoods, 3));
    BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(bananaGrove, 3));

    BiomeManager.addVillageBiome(rubberPlains, true);
    BiomeManager.addVillageBiome(bananaGrove, true);
}
项目:Soul-Forest    文件:GenLayerBiomeSoulForest.java   
private int getWeightedBiomeFromList(List<BiomeEntry> biomeList){
int totalWeight = WeightedRandom.getTotalWeight(biomeList);
long randomLong = this.nextLong(totalWeight / 10);
int randomNr = (int)randomLong * 10;
BiomeEntry entry = (BiomeEntry)WeightedRandom.getItem(biomeList, randomNr);
int biomeID = entry.biome.biomeID;
return ((BiomeEntry)WeightedRandom.getItem(biomeList, (int)this.nextLong(WeightedRandom.getTotalWeight(biomeList) / 10) * 10)).biome.biomeID;
   }
项目:ExPetrum    文件:WorldTypeExP.java   
protected net.minecraftforge.common.BiomeManager.BiomeEntry getWeightedBiomeEntry()
{
    int totalWeight = net.minecraft.util.WeightedRandom.getTotalWeight(this.biomes);
    int weight = nextInt(totalWeight);
    return net.minecraft.util.WeightedRandom.getRandomItem(this.biomes, weight);
}
项目:PopularMMOS-EpicProportions-Mod    文件:JenGenLayerBiome.java   
/**
 * Returns a list of integer values generated by this layer. These may be interpreted as temperatures, rainfall
 * amounts, or biomeList[] indices based on the particular GenLayer subclass.
 */
public int[] getInts(int p_75904_1_, int p_75904_2_, int p_75904_3_, int p_75904_4_)
{
    int[] aint = this.parent.getInts(p_75904_1_, p_75904_2_, p_75904_3_, p_75904_4_);
    int[] aint1 = IntCache.getIntCache(p_75904_3_ * p_75904_4_);

    for (int i1 = 0; i1 < p_75904_4_; ++i1)
    {
        for (int j1 = 0; j1 < p_75904_3_; ++j1)
        {
            this.initChunkSeed((long)(j1 + p_75904_1_), (long)(i1 + p_75904_2_));
            int k1 = aint[j1 + i1 * p_75904_3_];
            int l1 = (k1 & 3840) >> 8;
            k1 &= -3841;

            if (isBiomeOceanic(k1))
            {
                aint1[j1 + i1 * p_75904_3_] = k1;
            }
            else if (k1 == BiomeGenBase.mushroomIsland.biomeID)
            {
                aint1[j1 + i1 * p_75904_3_] = k1;
            }
            else if (k1 == 1)
            {
                if (l1 > 0)
                {
                    if (this.nextInt(3) == 0)
                    {
                        aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.mesaPlateau.biomeID;
                    }
                    else
                    {
                        aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.mesaPlateau_F.biomeID;
                    }
                }
                else
                {
                    aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.desertBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.desertBiomes) / 10) * 10))).biome.biomeID;
                }
            }
            else if (k1 == 2)
            {
                if (l1 > 0)
                {
                    aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.jungle.biomeID;
                }
                else
                {
                    aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.warmBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.warmBiomes) / 10) * 10))).biome.biomeID;
                }
            }
            else if (k1 == 3)
            {
                if (l1 > 0)
                {
                    aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.megaTaiga.biomeID;
                }
                else
                {
                    aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.coolBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.coolBiomes) / 10) * 10))).biome.biomeID;
                }
            }
            else if (k1 == 4)
            {
                aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.icyBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.icyBiomes) / 10) * 10))).biome.biomeID;
            }
            else
            {
                aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.mushroomIsland.biomeID;
            }
        }
    }

    return aint1;
}
项目:PopularMMOS-EpicProportions-Mod    文件:PatGenLayerBiome.java   
/**
 * Returns a list of integer values generated by this layer. These may be interpreted as temperatures, rainfall
 * amounts, or biomeList[] indices based on the particular GenLayer subclass.
 */
public int[] getInts(int p_75904_1_, int p_75904_2_, int p_75904_3_, int p_75904_4_)
{
    int[] aint = this.parent.getInts(p_75904_1_, p_75904_2_, p_75904_3_, p_75904_4_);
    int[] aint1 = IntCache.getIntCache(p_75904_3_ * p_75904_4_);

    for (int i1 = 0; i1 < p_75904_4_; ++i1)
    {
        for (int j1 = 0; j1 < p_75904_3_; ++j1)
        {
            this.initChunkSeed((long)(j1 + p_75904_1_), (long)(i1 + p_75904_2_));
            int k1 = aint[j1 + i1 * p_75904_3_];
            int l1 = (k1 & 3840) >> 8;
            k1 &= -3841;

            if (isBiomeOceanic(k1))
            {
                aint1[j1 + i1 * p_75904_3_] = k1;
            }
            else if (k1 == BiomeGenBase.mushroomIsland.biomeID)
            {
                aint1[j1 + i1 * p_75904_3_] = k1;
            }
            else if (k1 == 1)
            {
                if (l1 > 0)
                {
                    if (this.nextInt(3) == 0)
                    {
                        aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.mesaPlateau.biomeID;
                    }
                    else
                    {
                        aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.mesaPlateau_F.biomeID;
                    }
                }
                else
                {
                    aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.desertBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.desertBiomes) / 10) * 10))).biome.biomeID;
                }
            }
            else if (k1 == 2)
            {
                if (l1 > 0)
                {
                    aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.jungle.biomeID;
                }
                else
                {
                    aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.warmBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.warmBiomes) / 10) * 10))).biome.biomeID;
                }
            }
            else if (k1 == 3)
            {
                if (l1 > 0)
                {
                    aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.megaTaiga.biomeID;
                }
                else
                {
                    aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.coolBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.coolBiomes) / 10) * 10))).biome.biomeID;
                }
            }
            else if (k1 == 4)
            {
                aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.icyBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.icyBiomes) / 10) * 10))).biome.biomeID;
            }
            else
            {
                aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.mushroomIsland.biomeID;
            }
        }
    }

    return aint1;
}
项目:PopularMMOS-EpicProportions-Mod    文件:GenLayerBiome.java   
/**
 * Returns a list of integer values generated by this layer. These may be interpreted as temperatures, rainfall
 * amounts, or biomeList[] indices based on the particular GenLayer subclass.
 */
public int[] getInts(int p_75904_1_, int p_75904_2_, int p_75904_3_, int p_75904_4_)
{
    int[] aint = this.parent.getInts(p_75904_1_, p_75904_2_, p_75904_3_, p_75904_4_);
    int[] aint1 = IntCache.getIntCache(p_75904_3_ * p_75904_4_);

    for (int i1 = 0; i1 < p_75904_4_; ++i1)
    {
        for (int j1 = 0; j1 < p_75904_3_; ++j1)
        {
            this.initChunkSeed((long)(j1 + p_75904_1_), (long)(i1 + p_75904_2_));
            int k1 = aint[j1 + i1 * p_75904_3_];
            int l1 = (k1 & 3840) >> 8;
            k1 &= -3841;

            if (isBiomeOceanic(k1))
            {
                aint1[j1 + i1 * p_75904_3_] = k1;
            }
            else if (k1 == BiomeGenBase.mushroomIsland.biomeID)
            {
                aint1[j1 + i1 * p_75904_3_] = k1;
            }
            else if (k1 == 1)
            {
                if (l1 > 0)
                {
                    if (this.nextInt(3) == 0)
                    {
                        aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.mesaPlateau.biomeID;
                    }
                    else
                    {
                        aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.mesaPlateau_F.biomeID;
                    }
                }
                else
                {
                    aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.desertBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.desertBiomes) / 10) * 10))).biome.biomeID;
                }
            }
            else if (k1 == 2)
            {
                if (l1 > 0)
                {
                    aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.jungle.biomeID;
                }
                else
                {
                    aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.warmBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.warmBiomes) / 10) * 10))).biome.biomeID;
                }
            }
            else if (k1 == 3)
            {
                if (l1 > 0)
                {
                    aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.megaTaiga.biomeID;
                }
                else
                {
                    aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.coolBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.coolBiomes) / 10) * 10))).biome.biomeID;
                }
            }
            else if (k1 == 4)
            {
                aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.icyBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.icyBiomes) / 10) * 10))).biome.biomeID;
            }
            else
            {
                aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.mushroomIsland.biomeID;
            }
        }
    }

    return aint1;
}
项目:Aftermath    文件:BiomesAftermath.java   
private static void registerBiomes()
{
    biomeWasteland = new BiomeWasteland(100).setBiomeName("Wasteland");
    BiomeDictionary.registerBiomeType(biomeWasteland, BiomeDictionary.Type.DEAD);
    BiomeManager.addBiome(BiomeManager.BiomeType.WARM, new BiomeManager.BiomeEntry(biomeWasteland,1000));




    BiomeManager.removeSpawnBiome(BiomeGenBase.beach);
    BiomeManager.removeSpawnBiome(BiomeGenBase.birchForest);
    BiomeManager.removeSpawnBiome(BiomeGenBase.birchForestHills);
    BiomeManager.removeSpawnBiome(BiomeGenBase.coldBeach);
    BiomeManager.removeSpawnBiome(BiomeGenBase.coldTaiga);
    BiomeManager.removeSpawnBiome(BiomeGenBase.coldTaigaHills);
    BiomeManager.removeSpawnBiome(BiomeGenBase.deepOcean);
    BiomeManager.removeSpawnBiome(BiomeGenBase.desert);
    BiomeManager.removeSpawnBiome(BiomeGenBase.desertHills);
    BiomeManager.removeSpawnBiome(BiomeGenBase.extremeHills);
    BiomeManager.removeSpawnBiome(BiomeGenBase.extremeHillsEdge);
    BiomeManager.removeSpawnBiome(BiomeGenBase.extremeHillsPlus);
    BiomeManager.removeSpawnBiome(BiomeGenBase.forest);
    BiomeManager.removeSpawnBiome(BiomeGenBase.forestHills);
    BiomeManager.removeSpawnBiome(BiomeGenBase.frozenOcean);
    BiomeManager.removeSpawnBiome(BiomeGenBase.frozenRiver);
    BiomeManager.removeSpawnBiome(BiomeGenBase.hell);
    BiomeManager.removeSpawnBiome(BiomeGenBase.iceMountains);
    BiomeManager.removeSpawnBiome(BiomeGenBase.icePlains);
    BiomeManager.removeSpawnBiome(BiomeGenBase.jungle);
    BiomeManager.removeSpawnBiome(BiomeGenBase.jungleEdge);
    BiomeManager.removeSpawnBiome(BiomeGenBase.jungleHills);
    BiomeManager.removeSpawnBiome(BiomeGenBase.megaTaiga);
    BiomeManager.removeSpawnBiome(BiomeGenBase.megaTaigaHills);
    BiomeManager.removeSpawnBiome(BiomeGenBase.mesa);
    BiomeManager.removeSpawnBiome(BiomeGenBase.mesaPlateau);
    BiomeManager.removeSpawnBiome(BiomeGenBase.mesaPlateau_F);
    BiomeManager.removeSpawnBiome(BiomeGenBase.mushroomIsland);
    BiomeManager.removeSpawnBiome(BiomeGenBase.mushroomIslandShore);
    BiomeManager.removeSpawnBiome(BiomeGenBase.ocean);
    BiomeManager.removeSpawnBiome(BiomeGenBase.plains);
    BiomeManager.removeSpawnBiome(BiomeGenBase.river);
    BiomeManager.removeSpawnBiome(BiomeGenBase.roofedForest);
    BiomeManager.removeSpawnBiome(BiomeGenBase.savanna);
    BiomeManager.removeSpawnBiome(BiomeGenBase.savannaPlateau);
    BiomeManager.removeSpawnBiome(BiomeGenBase.sky);
    BiomeManager.removeSpawnBiome(BiomeGenBase.stoneBeach);
    BiomeManager.removeSpawnBiome(BiomeGenBase.swampland);
    BiomeManager.removeSpawnBiome(BiomeGenBase.taiga);
    BiomeManager.removeSpawnBiome(BiomeGenBase.taigaHills);

    BiomeManager.addSpawnBiome(biomeWasteland);
}
项目:AdvancedRocketry    文件:GenLayerBiomePlanet.java   
public static synchronized void setupBiomesForUse(List<BiomeEntry> entries) {
    biomeEntries = entries;
}
项目:AdvancedRocketry    文件:DimensionProperties.java   
public List<BiomeEntry> getTerraformedBiomes() {
    return (List<BiomeEntry>)terraformedBiomes;
}
项目:AdvancedRocketry    文件:DimensionProperties.java   
/**
 * Gets a list of BiomeEntries allowed to spawn in this dimension
 * @param biomeIds
 * @return
 */
private ArrayList<BiomeEntry> getBiomesEntries(List<BiomeGenBase> biomeIds) {

    ArrayList<BiomeEntry> biomeEntries = new ArrayList<BiomeManager.BiomeEntry>();

    for(BiomeGenBase biomes : biomeIds) {

        if(biomes == BiomeGenBase.desert) {
            biomeEntries.add(new BiomeEntry(BiomeGenBase.desert, 30));
            continue;
        }
        else if(biomes == BiomeGenBase.savanna) {
            biomeEntries.add(new BiomeEntry(BiomeGenBase.savanna, 20));
            continue;
        }
        else if(biomes == BiomeGenBase.plains) {
            biomeEntries.add(new BiomeEntry(BiomeGenBase.plains, 10));
            continue;
        }

        boolean notFound = true;

        label:

            for(BiomeManager.BiomeType types : BiomeManager.BiomeType.values()) {
                for(BiomeEntry entry : BiomeManager.getBiomes(types)) {
                    if(biomes == null)
                        AdvancedRocketry.logger.warn("Null biomes loaded for DIMID: " + this.getId());
                    else if(entry.biome.biomeID == biomes.biomeID) {
                        biomeEntries.add(entry);
                        notFound = false;

                        break label;
                    }
                }
            }

        if(notFound && biomes != null) {
            biomeEntries.add(new BiomeEntry(biomes, 30));
        }
    }

    return biomeEntries;
}
项目:AbyssalCraft    文件:InitHandler.java   
private static void registerBiomeWithTypes(Biome biome, int weight, BiomeType btype, Type...types){
    BiomeDictionary.addTypes(biome, types);
    BiomeManager.addBiome(btype, new BiomeEntry(biome, weight));
}
项目:Cauldron    文件:GenLayerBiome.java   
public int[] getInts(int p_75904_1_, int p_75904_2_, int p_75904_3_, int p_75904_4_)
{
    int[] aint = this.parent.getInts(p_75904_1_, p_75904_2_, p_75904_3_, p_75904_4_);
    int[] aint1 = IntCache.getIntCache(p_75904_3_ * p_75904_4_);

    for (int i1 = 0; i1 < p_75904_4_; ++i1)
    {
        for (int j1 = 0; j1 < p_75904_3_; ++j1)
        {
            this.initChunkSeed((long)(j1 + p_75904_1_), (long)(i1 + p_75904_2_));
            int k1 = aint[j1 + i1 * p_75904_3_];
            int l1 = (k1 & 3840) >> 8;
            k1 &= -3841;

            if (isBiomeOceanic(k1))
            {
                aint1[j1 + i1 * p_75904_3_] = k1;
            }
            else if (k1 == BiomeGenBase.mushroomIsland.biomeID)
            {
                aint1[j1 + i1 * p_75904_3_] = k1;
            }
            else if (k1 == 1)
            {
                if (l1 > 0)
                {
                    if (this.nextInt(3) == 0)
                    {
                        aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.mesaPlateau.biomeID;
                    }
                    else
                    {
                        aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.mesaPlateau_F.biomeID;
                    }
                }
                else
                {
                    aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.desertBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.desertBiomes) / 10) * 10))).biome.biomeID;
                }
            }
            else if (k1 == 2)
            {
                if (l1 > 0)
                {
                    aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.jungle.biomeID;
                }
                else
                {
                    aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.warmBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.warmBiomes) / 10) * 10))).biome.biomeID;
                }
            }
            else if (k1 == 3)
            {
                if (l1 > 0)
                {
                    aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.megaTaiga.biomeID;
                }
                else
                {
                    aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.coolBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.coolBiomes) / 10) * 10))).biome.biomeID;
                }
            }
            else if (k1 == 4)
            {
                aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.icyBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.icyBiomes) / 10) * 10))).biome.biomeID;
            }
            else
            {
                aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.mushroomIsland.biomeID;
            }
        }
    }

    return aint1;
}
项目:Cauldron    文件:GenLayerBiome.java   
public int[] getInts(int p_75904_1_, int p_75904_2_, int p_75904_3_, int p_75904_4_)
{
    int[] aint = this.parent.getInts(p_75904_1_, p_75904_2_, p_75904_3_, p_75904_4_);
    int[] aint1 = IntCache.getIntCache(p_75904_3_ * p_75904_4_);

    for (int i1 = 0; i1 < p_75904_4_; ++i1)
    {
        for (int j1 = 0; j1 < p_75904_3_; ++j1)
        {
            this.initChunkSeed((long)(j1 + p_75904_1_), (long)(i1 + p_75904_2_));
            int k1 = aint[j1 + i1 * p_75904_3_];
            int l1 = (k1 & 3840) >> 8;
            k1 &= -3841;

            if (isBiomeOceanic(k1))
            {
                aint1[j1 + i1 * p_75904_3_] = k1;
            }
            else if (k1 == BiomeGenBase.mushroomIsland.biomeID)
            {
                aint1[j1 + i1 * p_75904_3_] = k1;
            }
            else if (k1 == 1)
            {
                if (l1 > 0)
                {
                    if (this.nextInt(3) == 0)
                    {
                        aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.mesaPlateau.biomeID;
                    }
                    else
                    {
                        aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.mesaPlateau_F.biomeID;
                    }
                }
                else
                {
                    aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.desertBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.desertBiomes) / 10) * 10))).biome.biomeID;
                }
            }
            else if (k1 == 2)
            {
                if (l1 > 0)
                {
                    aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.jungle.biomeID;
                }
                else
                {
                    aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.warmBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.warmBiomes) / 10) * 10))).biome.biomeID;
                }
            }
            else if (k1 == 3)
            {
                if (l1 > 0)
                {
                    aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.megaTaiga.biomeID;
                }
                else
                {
                    aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.coolBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.coolBiomes) / 10) * 10))).biome.biomeID;
                }
            }
            else if (k1 == 4)
            {
                aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.icyBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.icyBiomes) / 10) * 10))).biome.biomeID;
            }
            else
            {
                aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.mushroomIsland.biomeID;
            }
        }
    }

    return aint1;
}
项目:modpack    文件:LavaGenLayerBiome.java   
/**
 * Returns a list of integer values generated by this layer. These may be interpreted as temperatures, rainfall
 * amounts, or biomeList[] indices based on the particular GenLayer subclass.
 */
public int[] getInts(int p_75904_1_, int p_75904_2_, int p_75904_3_, int p_75904_4_)
{
    int[] aint = this.parent.getInts(p_75904_1_, p_75904_2_, p_75904_3_, p_75904_4_);
    int[] aint1 = IntCache.getIntCache(p_75904_3_ * p_75904_4_);

    for (int i1 = 0; i1 < p_75904_4_; ++i1)
    {
        for (int j1 = 0; j1 < p_75904_3_; ++j1)
        {
            this.initChunkSeed((long)(j1 + p_75904_1_), (long)(i1 + p_75904_2_));
            int k1 = aint[j1 + i1 * p_75904_3_];
            int l1 = (k1 & 3840) >> 8;
            k1 &= -3841;

            if (isBiomeOceanic(k1))
            {
                aint1[j1 + i1 * p_75904_3_] = k1;
            }
            else if (k1 == BiomeGenBase.mushroomIsland.biomeID)
            {
                aint1[j1 + i1 * p_75904_3_] = k1;
            }
            else if (k1 == 1)
            {
                if (l1 > 0)
                {
                    if (this.nextInt(3) == 0)
                    {
                        aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.mesaPlateau.biomeID;
                    }
                    else
                    {
                        aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.mesaPlateau_F.biomeID;
                    }
                }
                else
                {
                    aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.desertBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.desertBiomes) / 10) * 10))).biome.biomeID;
                }
            }
            else if (k1 == 2)
            {
                if (l1 > 0)
                {
                    aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.jungle.biomeID;
                }
                else
                {
                    aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.warmBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.warmBiomes) / 10) * 10))).biome.biomeID;
                }
            }
            else if (k1 == 3)
            {
                if (l1 > 0)
                {
                    aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.megaTaiga.biomeID;
                }
                else
                {
                    aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.coolBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.coolBiomes) / 10) * 10))).biome.biomeID;
                }
            }
            else if (k1 == 4)
            {
                aint1[j1 + i1 * p_75904_3_] = ((BiomeEntry)WeightedRandom.getItem(this.icyBiomes, (int)(this.nextLong(WeightedRandom.getTotalWeight(this.icyBiomes) / 10) * 10))).biome.biomeID;
            }
            else
            {
                aint1[j1 + i1 * p_75904_3_] = BiomeGenBase.mushroomIsland.biomeID;
            }
        }
    }

    return aint1;
}
项目:AdvancedRocketry    文件:GenLayerBiomePlanet.java   
public GenLayerBiomePlanet(long p_i2122_1_, GenLayer p_i2122_3_, WorldType worldType)
{
    super(p_i2122_1_);

    this.parent = p_i2122_3_;

    biomeEntries = new ArrayList<BiomeManager.BiomeEntry>();

}
项目:AdvancedRocketry    文件:DimensionProperties.java   
/**
 * Each Planet is assigned a list of biomes that are allowed to spawn there
 * @return List of biomes allowed to spawn on this planet
 */
public List<BiomeEntry> getBiomes() {
    return (List<BiomeEntry>)allowedBiomes;
}