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

项目: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);
}
项目:TechReborn3    文件:TechRebornWorld.java   
@CustomRegistry
public static void init() {
    Biome.BiomeProperties properties = new Biome.BiomeProperties("Rubber Plantation");
    properties.setTemperature(0.95F);
    properties.setRainfall(0.95F);
    properties.setBaseHeight(0.45F);
    properties.setHeightVariation(0.4F);

    rubberPlantationBiome = new RubberPlantationBiome(properties);
    rubberPlantationBiome.setRegistryName(new ResourceLocation(TRConstants.MOD_ID, "rubberPlantation"));

    GameRegistry.register(rubberPlantationBiome);

    BiomeManager.addBiome(BiomeManager.BiomeType.WARM, new BiomeManager.BiomeEntry(rubberPlantationBiome, 20));
    BiomeManager.addSpawnBiome(rubberPlantationBiome);
    BiomeProvider.allowedBiomes.add(rubberPlantationBiome);
}
项目: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;
}
项目:TheDarkEra    文件:TDEBiomes.java   
public static void init() {

        dark_ocean = (new BiomeDarkOcean(51)).setBiomeName("Dark Ocean");
        dark_land = (new BiomeDeadLand(52, 0)).setColor(9286496).setBiomeName("Dark Land");
        BiomeManager.addSpawnBiome(dark_land);
        dark_forest = (new BiomeDarkForest(53, 0)).setColor(9286496).setBiomeName("Dark Forest");
        BiomeManager.addSpawnBiome(dark_forest);
        dark_hills = (new BiomeDarkHills(54, 0)).setColor(6316128).setBiomeName("Dark Extreme Hills");
        BiomeManager.addSpawnBiome(dark_hills);
        dead_land = (new BiomeDeadLand(55, 0)).setColor(6316124).setBiomeName("Dead Land").setHeight(height_BigHills);;
        BiomeManager.addSpawnBiome(dead_land);
        dark_roofed_forest = (new BiomeDarkForest(56, 1)).setColor(4215066).setBiomeName("Dark Roofed Forest");
        BiomeManager.addSpawnBiome(dark_roofed_forest);
        dark_jungle = (new BiomeDarkJungle(57, 1)).setColor(6316129).setBiomeName("Dark Jungle");
        BiomeManager.addSpawnBiome(dark_jungle);
        magical_forest = (new BiomeDarkForest(58, 2)).setColor(1234567).setBiomeName("Magical Forest");
        BiomeManager.addSpawnBiome(magical_forest);
        ancient_land = (new BiomeAncientLand(59, 2)).setColor(1111111).setBiomeName("Ancient Land");
        BiomeManager.addSpawnBiome(ancient_land);
        misty_mountains = (new BiomeDarkHills(60, 1)).setColor(999999).setBiomeName("Misty Mountains").setHeight(height_BigHills);
        BiomeManager.addSpawnBiome(misty_mountains);
        big_crater = (new BiomeDarkHills(61, 1)).setColor(999899).setBiomeName("Big_Crater").setHeight(height_Crater);
        BiomeManager.addSpawnBiome(big_crater);
    }
项目:RidiculousWorld    文件:BiomeGenCandy.java   
public BiomeGenCandy(int id){
    super(id);
    this.theBiomeDecorator.treesPerChunk = 6;
    this.theBiomeDecorator.grassPerChunk = 2;
    this.theBiomeDecorator.mushroomsPerChunk = 1;
    setDisableRain();
    setHeight(new BiomeGenBase.Height(1.5F, 0.5F));
    this.spawnableCreatureList.clear();
    this.spawnableCreatureList.add(new SpawnListEntry(EntityPeep.class, 10, 4, 4));
    this.spawnableCreatureList.add(new SpawnListEntry(EntityUnicorn.class, 10, 4, 4));
    this.spawnableCreatureList.add(new SpawnListEntry(EntityCandySheep.class, 10, 4, 4));
    this.spawnableMonsterList.clear();
    this.spawnableMonsterList.add(new SpawnListEntry(EntityCalavera.class, 100, 4, 4));
    this.spawnableMonsterList.add(new SpawnListEntry(EntityZombie.class, 100, 4, 4));
    this.spawnableMonsterList.add(new SpawnListEntry(EntityGingerbread.class, 100, 4, 6));
    this.spawnableMonsterList.add(new SpawnListEntry(EntityCreeper.class, 100, 4, 4));
    this.spawnableMonsterList.add(new SpawnListEntry(EntitySpider.class, 100, 4, 4));
    this.spawnableMonsterList.add(new SpawnListEntry(EntityWitch.class, 10, 4, 4));
    BiomeManager.addBiome(BiomeManager.BiomeType.WARM, new BiomeManager.BiomeEntry(this, Config.candyWeight));
    BiomeDictionary.registerBiomeType(this, BiomeDictionary.Type.MAGICAL, BiomeDictionary.Type.MOUNTAIN, BiomeDictionary.Type.LUSH);
    setBiomeName("Rock Candy Mountain");
    setColor(0x8AFFF0);
    this.waterColorMultiplier = 0x899CFF;
}
项目:RidiculousWorld    文件:BiomeGenMadness.java   
public BiomeGenMadness(int id)
{
    super(id);
    this.spawnableCreatureList.clear();
    this.theBiomeDecorator.treesPerChunk = -1;
    this.theBiomeDecorator.grassPerChunk = -1;
    this.theBiomeDecorator.mushroomsPerChunk = -1;
    this.topBlock = Blocks.packed_ice;
    this.fillerBlock = Blocks.packed_ice;
    this.spawnableCreatureList.clear();
    this.spawnableMonsterList.clear();
    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 SpawnListEntry(EntityShoggoth.class, 90, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityEnderman.class, 30, 1, 4));
    BiomeManager.addBiome(BiomeManager.BiomeType.ICY, new BiomeManager.BiomeEntry(this, Config.madnessWeight));
    BiomeManager.addBiome(BiomeManager.BiomeType.COOL, new BiomeManager.BiomeEntry(this, Config.madnessWeight));
    BiomeManager.addStrongholdBiome(this);
    BiomeDictionary.registerBiomeType(this, BiomeDictionary.Type.COLD, BiomeDictionary.Type.DEAD, BiomeDictionary.Type.MOUNTAIN, BiomeDictionary.Type.SNOWY);
    setBiomeName("Mountain of Madness");
    setTemperatureRainfall(0.05F, 0.5F);
    this.setHeight(BiomeGenBase.height_HighPlateaus);
    this.setColor(0x0E875B);
    this.waterColorMultiplier = 0x004A07;
}
项目: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;
}
项目:RidiculousWorld    文件:BiomeGenShadow.java   
BiomeGenShadow(int id){
    super(id);
    this.theBiomeDecorator.treesPerChunk = 0;
    this.theBiomeDecorator.flowersPerChunk = 0;
    this.theBiomeDecorator.deadBushPerChunk = 4;
    this.theBiomeDecorator.mushroomsPerChunk = 8;
    this.theBiomeDecorator.reedsPerChunk = 0;
    this.theBiomeDecorator.clayPerChunk = 1;
    this.theBiomeDecorator.waterlilyPerChunk = 0;
    this.theBiomeDecorator.sandPerChunk2 = 0;
    this.theBiomeDecorator.sandPerChunk = 0;
    this.theBiomeDecorator.grassPerChunk = 8;
    this.waterColorMultiplier = 0x00002F;
    this.flowers.clear();
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityShadowSlime.class, 60, 1, 1));
    BiomeManager.addBiome(BiomeManager.BiomeType.COOL, new BiomeManager.BiomeEntry(this, Config.shadowWeight));
    BiomeManager.addStrongholdBiome(this);
    BiomeDictionary.registerBiomeType(this, BiomeDictionary.Type.SPOOKY, BiomeDictionary.Type.WET, BiomeDictionary.Type.SWAMP,
            BiomeDictionary.Type.COLD, BiomeDictionary.Type.MAGICAL);
    setBiomeName("Shadow Fen");
    setColor(0x3D3D3D);
    setHeight(height_PartiallySubmerged);
    setTemperatureRainfall(0.4F, 0.9F);
}
项目:Cauldron    文件:MapGenStronghold.java   
public MapGenStronghold()
{
    this.structureCoords = new ChunkCoordIntPair[3];
    this.field_82671_h = 32.0D;
    this.field_82672_i = 3;
    this.field_151546_e = new ArrayList();
    BiomeGenBase[] abiomegenbase = BiomeGenBase.getBiomeGenArray();
    int i = abiomegenbase.length;

    for (int j = 0; j < i; ++j)
    {
        BiomeGenBase biomegenbase = abiomegenbase[j];

        if (biomegenbase != null && biomegenbase.rootHeight > 0.0F && !BiomeManager.strongHoldBiomesBlackList.contains(biomegenbase))
        {
            this.field_151546_e.add(biomegenbase);
        }
    }
    for (BiomeGenBase biome : BiomeManager.strongHoldBiomes)
    {
        if (!this.field_151546_e.contains(biome))
        {
            this.field_151546_e.add(biome);
        }
    }
}
项目:Cauldron    文件:MapGenStronghold.java   
public MapGenStronghold()
{
    this.structureCoords = new ChunkCoordIntPair[3];
    this.field_82671_h = 32.0D;
    this.field_82672_i = 3;
    this.field_151546_e = new ArrayList();
    BiomeGenBase[] abiomegenbase = BiomeGenBase.getBiomeGenArray();
    int i = abiomegenbase.length;

    for (int j = 0; j < i; ++j)
    {
        BiomeGenBase biomegenbase = abiomegenbase[j];

        if (biomegenbase != null && biomegenbase.rootHeight > 0.0F && !BiomeManager.strongHoldBiomesBlackList.contains(biomegenbase))
        {
            this.field_151546_e.add(biomegenbase);
        }
    }
    for (BiomeGenBase biome : BiomeManager.strongHoldBiomes)
    {
        if (!this.field_151546_e.contains(biome))
        {
            this.field_151546_e.add(biome);
        }
    }
}
项目: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);
    }
}
项目:modName    文件:ATGBiomes.java   
public static Biome register(String name, Biome biome, boolean villages, BiomeDictionary.Type... dictionaryTypes) {
    //biome.setRegistryName(ATG.MODID, name);
    //GameRegistry.register(biome);
    // public static final Biome NAME = new BiomeName();

    if (villages) {
        BiomeManager.addVillageBiome(biome, true);
    }

    if (dictionaryTypes.length > 0) {
        //BiomeDictionary.registerBiomeType(biome, dictionaryTypes);
    }

    return biome;
}
项目: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);
    }
}
项目:RidiculousWorld    文件:BiomeGenOssuary.java   
public BiomeGenOssuary(int id)
{
    super(id);
    setDisableRain();
    setHeight(height_LowPlains);
    this.topBlock = RidiculousBlocks.boneDust;
    this.fillerBlock = RidiculousBlocks.boneDust;
    this.spawnableCreatureList.clear();
    this.theBiomeDecorator.treesPerChunk = -999;
    this.theBiomeDecorator.grassPerChunk = -999;
    this.spawnableCreatureList.clear();
    this.spawnableWaterCreatureList.clear();
    this.spawnableCaveCreatureList.clear();
    this.spawnableMonsterList.clear();
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntitySkeleton.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityDaySkeleton.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityZombie.class, 100, 4, 4));
    this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(EntityDayZombie.class, 100, 4, 4));
    BiomeManager.addBiome(BiomeManager.BiomeType.DESERT, new BiomeManager.BiomeEntry(this, Config.ossuaryWeight));
    BiomeManager.addStrongholdBiome(this);
    BiomeDictionary.registerBiomeType(this, BiomeDictionary.Type.SPOOKY, BiomeDictionary.Type.DEAD, BiomeDictionary.Type.WASTELAND,
            BiomeDictionary.Type.DRY, BiomeDictionary.Type.HOT);
    setBiomeName("Ossuary");
    setTemperatureRainfall(1.0F, 0.0F);
    setColor(0xF4F5E6);
    this.waterColorMultiplier = 0x155A00;
}
项目:RidiculousWorld    文件:BiomeGenBotania.java   
public BiomeGenBotania(int id){
    super(id);
    this.theBiomeDecorator.treesPerChunk = 1;
    this.theBiomeDecorator.grassPerChunk = 2;
    this.theBiomeDecorator.mushroomsPerChunk = 0;
    setHeight(height_MidPlains);
    this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityUnicorn.class, 8, 4, 4));
    if(Compat.botania)
        BiomeManager.addBiome(BiomeManager.BiomeType.WARM, new BiomeManager.BiomeEntry(this, Config.botaniaWeight));
    BiomeManager.addSpawnBiome(this);
    BiomeDictionary.registerBiomeType(this, BiomeDictionary.Type.MAGICAL, BiomeDictionary.Type.PLAINS, BiomeDictionary.Type.LUSH);
    setBiomeName("Botanical Garden");
    setColor(0xFF70F7);
}
项目:RidiculousWorld    文件:BiomeGenMurica.java   
public BiomeGenMurica(int id){
    super(id);
    this.theBiomeDecorator.treesPerChunk = 6;
    this.theBiomeDecorator.grassPerChunk = 2;
    this.theBiomeDecorator.mushroomsPerChunk = 0;
    setHeight(height_MidPlains);
    BiomeManager.addBiome(BiomeManager.BiomeType.WARM, new BiomeManager.BiomeEntry(this, Config.muricaWeight));
    BiomeDictionary.registerBiomeType(this, BiomeDictionary.Type.FOREST, BiomeDictionary.Type.PLAINS);
    setBiomeName("Murica");
    setColor(0x0000FF);
    waterColorMultiplier = 0x0000FF;
}
项目: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    文件:MainRegistry.java   
public static void RegisterBiomes(){
    if((Boolean) Core.Config.getProperties().get("LavaGeneration")){
        biomelava = new BiomeGenLava(3).setBiomeName("Lava").setTemperatureRainfall(1.2F, 0.9F);
        BiomeDictionary.registerBiomeType(biomelava, Type.FOREST);
        BiomeManager.addSpawnBiome(biomelava);
    }
}
项目: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);
}
项目:BackWoodsMod    文件:BackWoodsGenLayerBiome.java   
public BackWoodsGenLayerBiome(long p_i2122_1_, GenLayer p_i2122_3_, WorldType p_i2122_4_)
{
    super(p_i2122_1_);

    this.parent = p_i2122_3_;

    for (BiomeManager.BiomeType type : BiomeManager.BiomeType.values())
    {
        com.google.common.collect.ImmutableList<BiomeManager.BiomeEntry> biomesToAdd = BiomeManager.getBiomes(type);
        int idx = type.ordinal();

        if (biomes[idx] == null) biomes[idx] = new ArrayList<BiomeManager.BiomeEntry>();
        if (biomesToAdd != null) biomes[idx].addAll(biomesToAdd);
    }

    int desertIdx = BiomeManager.BiomeType.DESERT.ordinal();

    if (p_i2122_4_ == WorldType.DEFAULT_1_1)
    {
        biomes[desertIdx].add(new BiomeManager.BiomeEntry(BiomeRegistry.biomeGenGreatOakForest, 10));
        biomes[desertIdx].add(new BiomeManager.BiomeEntry(BiomeRegistry.biomeGenDeadForest, 10));
        biomes[desertIdx].add(new BiomeManager.BiomeEntry(BiomeRegistry.biomeGenFirForest, 10));
        biomes[desertIdx].add(new BiomeManager.BiomeEntry(BiomeRegistry.biomeGenMapleForest, 10));
        biomes[desertIdx].add(new BiomeManager.BiomeEntry(BiomeRegistry.biomeGenRedwoodForest, 10));
    }
    else
    {
        biomes[desertIdx].add(new BiomeManager.BiomeEntry(BiomeRegistry.biomeGenGreatOakForest, 10));
        biomes[desertIdx].add(new BiomeManager.BiomeEntry(BiomeRegistry.biomeGenDeadForest, 10));
        biomes[desertIdx].add(new BiomeManager.BiomeEntry(BiomeRegistry.biomeGenFirForest, 10));
        biomes[desertIdx].add(new BiomeManager.BiomeEntry(BiomeRegistry.biomeGenMapleForest, 10));
        biomes[desertIdx].add(new BiomeManager.BiomeEntry(BiomeRegistry.biomeGenRedwoodForest, 10));
    }
}
项目:BackWoodsMod    文件:BackWoodsGenLayerBiome.java   
protected BiomeManager.BiomeEntry getWeightedBiomeEntry(BiomeManager.BiomeType type)
{
    List<BiomeManager.BiomeEntry> biomeList = biomes[type.ordinal()];
    int totalWeight = WeightedRandom.getTotalWeight(biomeList);
    int weight = BiomeManager.isTypeListModded(type)?nextInt(totalWeight):nextInt(totalWeight / 10) * 10;
    return (BiomeManager.BiomeEntry)WeightedRandom.getItem(biomeList, weight);
}
项目:BackWoodsMod    文件:BiomeRegistry.java   
public static void registerBiome() {

        BiomeDictionary.registerBiomeType(biomeGenGreatOakForest, Type.FOREST);
        BiomeDictionary.registerBiomeType(biomeGenDeadForest, Type.FOREST);
        BiomeDictionary.registerBiomeType(biomeGenFirForest, Type.FOREST);
        BiomeDictionary.registerBiomeType(biomeGenMapleForest, Type.FOREST);
        BiomeDictionary.registerBiomeType(biomeGenRedwoodForest, Type.FOREST);

        BiomeManager.addSpawnBiome(biomeGenGreatOakForest);
        BiomeManager.addSpawnBiome(biomeGenDeadForest);
        BiomeManager.addSpawnBiome(biomeGenFirForest);
        BiomeManager.addSpawnBiome(biomeGenMapleForest);
        BiomeManager.addSpawnBiome(biomeGenRedwoodForest);
    }
项目:MysticMods    文件:BiomeHandler.java   
public static void registerBiomes() {
    if (Booleans.ENABLE_JUNGLE_REWRITE) {
        GameRegistry.removeBiome(BiomeGenBase.jungle);
        GameRegistry.removeBiome(BiomeGenBase.jungleHills);
        GameRegistry.addBiome(Jungle);
        BiomeManager.addSpawnBiome(Jungle);
        BiomeManager.addStrongholdBiome(Jungle);
    }
    if (Booleans.ENABLE_GLACIER_GEN) {
        GameRegistry.addBiome(Glacier);
        BiomeManager.addStrongholdBiome(Glacier);
    }
    if (Booleans.ENABLE_MOUNTAIN_GEN) {
        GameRegistry.addBiome(Mountain);
        BiomeManager.addSpawnBiome(Mountain);
        BiomeManager.addStrongholdBiome(Mountain);
    }
    if (Booleans.ENABLE_TUNDRA_GEN) {
        GameRegistry.addBiome(Tundra);
        BiomeManager.addStrongholdBiome(Tundra);
    }
    if (Booleans.ENABLE_STEPPE_GEN) {
        GameRegistry.addBiome(Steppe);
        BiomeManager.addSpawnBiome(Steppe);
        BiomeManager.addVillageBiome(Steppe, true);
        BiomeManager.addStrongholdBiome(Steppe);
    }
}
项目:PopularMMOS-EpicProportions-Mod    文件:BiomeRegistry.java   
public static void registerBiome(){
    BiomeDictionary.registerBiomeType(biomePat, Type.FOREST);
    BiomeDictionary.registerBiomeType(biomeJen, Type.FOREST);
    BiomeManager.addSpawnBiome(biomePat);
    BiomeManager.addSpawnBiome(biomeJen);
}
项目:Coding    文件:BiomeRegistrant.java   
public static void addBiome(BiomeGenBase biome) {
    BiomeManager.addVillageBiome(biome, true);
    LogHelper.info("BiomeRegistrant: " + String.format("Added %s (ID:%d) as a village biome.", biome.biomeName, biome.biomeID));
}
项目:Coding    文件:BiomeRegistrant.java   
public static void removeBiome(BiomeGenBase biome) {
    BiomeManager.removeVillageBiome(biome);
    LogHelper.info("BiomeRegistrant: " + String.format("Removed %s (ID:%d) from village biomes.", biome.biomeName, biome.biomeID));
}
项目: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);
}
项目:Rediscovered-Mod-1.8    文件:mod_Rediscovered.java   
public void registerGameRegistryThings()
{
    GameRegistry.registerBlock(CherrySlab, ItemBlockCherrySlab.class, CherrySlab.getName(), CherrySlab, CherryDoubleSlab, false);
    GameRegistry.registerBlock(CherryDoubleSlab, ItemBlockCherrySlab.class, CherryDoubleSlab.getName(), CherrySlab, CherryDoubleSlab, true);
    GameRegistry.registerBlock(DirtSlab, ItemBlockDirtSlab.class, DirtSlab.getName(), DirtSlab, DirtDoubleSlab, false);
    GameRegistry.registerBlock(DirtDoubleSlab, ItemBlockDirtSlab.class, DirtDoubleSlab.getName(), DirtSlab, DirtDoubleSlab, true);
    OreDictionary.registerOre("woodLog", CherryLog);
    OreDictionary.registerOre("logWood", CherryLog);
    OreDictionary.registerOre("plankWood", CherryPlank);
    OreDictionary.registerOre("woodSlab", CherrySlab);
    OreDictionary.registerOre("slabWood", CherrySlab);
    OreDictionary.registerOre("woodSlab", CherryDoubleSlab);
    OreDictionary.registerOre("slabWood", CherryDoubleSlab);
    OreDictionary.registerOre("leavesTree", CherryLeaves);
    OreDictionary.registerOre("saplingTree", CherrySapling);
    OreDictionary.registerOre("stairWood", CherryStairs);
    OreDictionary.registerOre("woodStair", CherryStairs);
    OreDictionary.registerOre("oreRuby", RubyOre);
    OreDictionary.registerOre("gemRuby", gemRuby);

    NetworkRegistry.INSTANCE.registerGuiHandler(instance, new RediscoveredGuiHandler());

    registerRediscoveredMob(EntityParrow.class, "ParrowRediscovered", PurpleArrowID);
    registerRediscoveredMob(EntityRediscoveredPotion.class, "PotionRediscovered", PotionID);
    registerRediscoveredMob(EntityMountableBlock.class, "EntityMountableBlockRediscovered", MountableBlockID);
    registerRediscoveredMob(EntityRana.class, "RanaRediscovered", 0x4c7129, 0xf0a5a2, RanaID);
    registerRediscoveredMob(EntitySteve.class, "SteveRediscovered", 44975, 0xf6b201, SteveID);
    registerRediscoveredMob(EntityBlackSteve.class, "BlackSteveRediscovered", 10489616, 894731, BlackSteveID);
    registerRediscoveredMob(EntityBeastBoy.class, "BeastBoyRediscovered", 0x9932cc, 5349438, BeastBoyID);
    registerRediscoveredMob(EntityPigman.class, "PigmanRediscovered", 0xf0a5a2, 0xa1a1a1, PigmanID);
    registerRediscoveredMob(EntityMeleePigman.class, "MeleePigmanRediscovered", 0xf0a5a2, 0xa1a1a1, MeleePigmanID);
    registerRediscoveredMob(EntityRangedPigman.class, "RangedPigmanRediscovered", 0xf0a5a2, 0xa1a1a1, RangedPigmanID);
    registerRediscoveredMob(EntityGreenVillager.class, "GreenVillagerRediscovered", 5651507, 7969893, GreenVillagerID);
    registerRediscoveredMob(EntitySkyChicken.class, "SkyChickenRediscovered", SkyChickenID);
    registerRediscoveredMob(EntityGiant.class, "GiantZombieRediscovered", 2243405, 7969893, GiantID);
    registerRediscoveredMob(EntityFish.class, "FishRediscovered", 44975, 2243405, FishID);
    registerRediscoveredMob(EntityZombieHorse.class, "ZombieHorseRediscovered", 0x4c7129, 15656192, ZombieHorseID);
    registerRediscoveredMob(EntitySkeletonHorse.class, "SkeletonHorseRediscovered", 12698049, 15656192, SkeletonHorseID);
    registerRediscoveredMob(EntityScarecrow.class, "ScarecrowRediscovered", ScarecrowID);
    registerRediscoveredMob(EntityGoodDragon.class, "RedDragonRediscovered", RedDragonID);

    DimensionManager.registerProviderType(DimID, WorldProviderHeaven.class, true);
    DimensionManager.registerDimension(DimID, DimID);
    BiomeManager.removeSpawnBiome(heaven);
    BiomeManager.removeStrongholdBiome(heaven);
    BiomeManager.removeVillageBiome(heaven);
    WorldChunkManager.allowedBiomes.remove(heaven);

    if(EnableRubyOre)
    {
        GameRegistry.registerWorldGenerator(new WorldGeneratorRuby(), 0);
    }
    if(EnableSpongeGenerate)
    {
        GameRegistry.registerWorldGenerator(new WorldGeneratorSponge(), 0);
    }
    if(EnablePigmanVillages)
    {
        GameRegistry.registerWorldGenerator(new WorldGeneratorPigmanVillage(), 0);
    }
    if(EnableDungeonLoot)
    {
        ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST ).addItem(new WeightedRandomChestContent(new ItemStack(ItemLantern), 1, 1, 15));
        ChestGenHooks.getInfo(ChestGenHooks.MINESHAFT_CORRIDOR).addItem(new WeightedRandomChestContent(new ItemStack(ItemLantern), 1, 1, 15));
    }
    GameRegistry.registerTileEntity(TileEntityTable.class, "tileentitytable");
    GameRegistry.registerTileEntity(TileEntityLectern.class, "tileentitylectern");
    GameRegistry.registerTileEntity(TileEntityLecternOpen.class, "tileentitylecternopen");
    GameRegistry.registerTileEntity(TileEntityLockedChest.class, "tileentitylockedchest");
}
项目:AdvancedRocketry    文件:GenLayerShoreExtended.java   
protected static boolean isBiomeOceanic(int p_151618_0_)
{
    return BiomeManager.oceanBiomes.contains(AdvancedRocketryBiomes.instance.getBiomeById(p_151618_0_));
}
项目: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;
}
项目:Rediscovered-Mod-1.8.8    文件:mod_Rediscovered.java   
public void registerGameRegistryThings()
{
    GameRegistry.registerBlock(CherrySlab, ItemBlockCherrySlab.class, CherrySlab.getName(), CherrySlab, CherryDoubleSlab, false);
    GameRegistry.registerBlock(CherryDoubleSlab, ItemBlockCherrySlab.class, CherryDoubleSlab.getName(), CherrySlab, CherryDoubleSlab, true);
    GameRegistry.registerBlock(DirtSlab, ItemBlockDirtSlab.class, DirtSlab.getName(), DirtSlab, DirtDoubleSlab, false);
    GameRegistry.registerBlock(DirtDoubleSlab, ItemBlockDirtSlab.class, DirtDoubleSlab.getName(), DirtSlab, DirtDoubleSlab, true);
    OreDictionary.registerOre("woodLog", CherryLog);
    OreDictionary.registerOre("logWood", CherryLog);
    OreDictionary.registerOre("plankWood", CherryPlank);
    OreDictionary.registerOre("woodSlab", CherrySlab);
    OreDictionary.registerOre("slabWood", CherrySlab);
    OreDictionary.registerOre("woodSlab", CherryDoubleSlab);
    OreDictionary.registerOre("slabWood", CherryDoubleSlab);
    OreDictionary.registerOre("leavesTree", CherryLeaves);
    OreDictionary.registerOre("saplingTree", CherrySapling);
    OreDictionary.registerOre("stairWood", CherryStairs);
    OreDictionary.registerOre("woodStair", CherryStairs);
    OreDictionary.registerOre("oreRuby", RubyOre);
    OreDictionary.registerOre("gemRuby", gemRuby);

    NetworkRegistry.INSTANCE.registerGuiHandler(instance, new RediscoveredGuiHandler());

    registerRediscoveredMob(EntityParrow.class, "ParrowRediscovered", PurpleArrowID);
    registerRediscoveredMob(EntityRediscoveredPotion.class, "PotionRediscovered", PotionID);
    registerRediscoveredMob(EntityMountableBlock.class, "EntityMountableBlockRediscovered", MountableBlockID);
    registerRediscoveredMob(EntityRana.class, "RanaRediscovered", 0x4c7129, 0xf0a5a2, RanaID);
    registerRediscoveredMob(EntitySteve.class, "SteveRediscovered", 44975, 0xf6b201, SteveID);
    registerRediscoveredMob(EntityBlackSteve.class, "BlackSteveRediscovered", 10489616, 894731, BlackSteveID);
    registerRediscoveredMob(EntityBeastBoy.class, "BeastBoyRediscovered", 0x9932cc, 5349438, BeastBoyID);
    registerRediscoveredMob(EntityPigman.class, "PigmanRediscovered", 0xf0a5a2, 0xa1a1a1, PigmanID);
    registerRediscoveredMob(EntityMeleePigman.class, "MeleePigmanRediscovered", 0xf0a5a2, 0xa1a1a1, MeleePigmanID);
    registerRediscoveredMob(EntityRangedPigman.class, "RangedPigmanRediscovered", 0xf0a5a2, 0xa1a1a1, RangedPigmanID);
    registerRediscoveredMob(EntityGreenVillager.class, "GreenVillagerRediscovered", 5651507, 7969893, GreenVillagerID);
    registerRediscoveredMob(EntitySkyChicken.class, "SkyChickenRediscovered", SkyChickenID);
    registerRediscoveredMob(EntityGiant.class, "GiantZombieRediscovered", 2243405, 7969893, GiantID);
    registerRediscoveredMob(EntityFish.class, "FishRediscovered", 44975, 2243405, FishID);
    registerRediscoveredMob(EntityZombieHorse.class, "ZombieHorseRediscovered", 0x4c7129, 15656192, ZombieHorseID);
    registerRediscoveredMob(EntitySkeletonHorse.class, "SkeletonHorseRediscovered", 12698049, 15656192, SkeletonHorseID);
    registerRediscoveredMob(EntityScarecrow.class, "ScarecrowRediscovered", ScarecrowID);
    registerRediscoveredMob(EntityGoodDragon.class, "RedDragonRediscovered", RedDragonID);

    DimensionManager.registerProviderType(DimID, WorldProviderHeaven.class, true);
    DimensionManager.registerDimension(DimID, DimID);
    BiomeManager.removeSpawnBiome(heaven);
    BiomeManager.removeStrongholdBiome(heaven);
    BiomeManager.removeVillageBiome(heaven);
    WorldChunkManager.allowedBiomes.remove(heaven);

    if(EnableRubyOre)
    {
        GameRegistry.registerWorldGenerator(new WorldGeneratorRuby(), 0);
    }
    if(EnableSpongeGenerate)
    {
        GameRegistry.registerWorldGenerator(new WorldGeneratorSponge(), 0);
    }
    if(EnablePigmanVillages)
    {
        GameRegistry.registerWorldGenerator(new WorldGeneratorPigmanVillage(), 0);
    }
    if(EnableDungeonLoot)
    {
        ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST ).addItem(new WeightedRandomChestContent(new ItemStack(ItemLantern), 1, 1, 15));
        ChestGenHooks.getInfo(ChestGenHooks.MINESHAFT_CORRIDOR).addItem(new WeightedRandomChestContent(new ItemStack(ItemLantern), 1, 1, 15));
    }
    GameRegistry.registerTileEntity(TileEntityTable.class, "tileentitytable");
    GameRegistry.registerTileEntity(TileEntityLectern.class, "tileentitylectern");
    GameRegistry.registerTileEntity(TileEntityLecternOpen.class, "tileentitylecternopen");
    GameRegistry.registerTileEntity(TileEntityLockedChest.class, "tileentitylockedchest");
}