Search in sources :

Example 11 with Biome

use of net.minecraft.world.biome.Biome in project Realistic-Terrain-Generation by Team-RTG.

the class RealisticBiomeBYGBase method addBiomes.

public static void addBiomes() {
    if (Loader.isModLoaded("BiomesYouGo")) {
        for (Biome biome : Biome.REGISTRY) {
            if (biome.getBiomeName().isEmpty()) {
                Logger.warn("Biome ID %d has no name.", Biome.getIdForBiome(biome));
                continue;
            }
            String biomeName = biome.getBiomeName();
            String biomeClass = biome.getBiomeClass().getName();
            if (biomeName.equals("autumnForest") && biomeClass.equals("mod.mcreator.mcreator_autumnForest$BiomeGenautumnForest")) {
                bygAutumnForest = new RealisticBiomeBYGAutumnForest(biome);
            } else if (biomeName.equals("birchPlains") && biomeClass.equals("mod.mcreator.mcreator_birchPlains$BiomeGenbirchPlains")) {
                bygLushForest = new RealisticBiomeBYGLushForest(biome);
            } else if (biomeName.equals("redRockMoutains") && biomeClass.equals("mod.mcreator.mcreator_redRockMoutains$BiomeGenredRockMoutains")) {
                bygRedRockMountains = new RealisticBiomeBYGRedRockMountains(biome);
            } else if (biomeName.equals("redDesert") && biomeClass.equals("mod.mcreator.mcreator_redDesert$BiomeGenredDesert")) {
                bygRedDesert = new RealisticBiomeBYGRedDesert(biome);
            } else if (biomeName.equals("willowSwamps") && biomeClass.equals("mod.mcreator.mcreator_willowSwamps$BiomeGenwillowSwamps")) {
                bygWillowSwamps = new RealisticBiomeBYGWillowSwamps(biome);
            } else if (biomeName.equals("birchPlains1") && biomeClass.equals("mod.mcreator.mcreator_birchPlains1$BiomeGenbirchPlains1")) {
                bygBirchPlains = new RealisticBiomeBYGBirchPlains(biome);
            } else if (biomeName.equals("tundra") && biomeClass.equals("mod.mcreator.mcreator_tundra$BiomeGentundra")) {
                bygFrozenTundra = new RealisticBiomeBYGFrozenTundra(biome);
            } else if (biomeName.equals("athuraForest") && biomeClass.equals("mod.mcreator.mcreator_athuraForest$BiomeGenathuraForest")) {
                bygFrozenTundra = new RealisticBiomeBYGAthuraForest(biome);
            } else if (biomeName.equals("mushroomMoutains") && biomeClass.equals("mod.mcreator.mcreator_mushroomMoutains$BiomeGenmushroomMoutains")) {
                bygFrozenTundra = new RealisticBiomeBYGMushroomMountains(biome);
            } else if (biomeName.equals("shrubs") && biomeClass.equals("mod.mcreator.mcreator_shrubs$BiomeGenshrubs")) {
                bygFrozenTundra = new RealisticBiomeBYGShrubs(biome);
            }
        }
    }
}
Also used : Biome(net.minecraft.world.biome.Biome)

Example 12 with Biome

use of net.minecraft.world.biome.Biome in project Realistic-Terrain-Generation by Team-RTG.

the class RealisticBiomeJIKBase method addBiomes.

public static void addBiomes() {
    if (Loader.isModLoaded("Jikou")) {
        for (Biome biome : Biome.REGISTRY) {
            if (biome.getBiomeName().isEmpty()) {
                Logger.warn("Biome ID %d has no name.", Biome.getIdForBiome(biome));
                continue;
            }
            String biomeName = biome.getBiomeName();
            String biomeClass = biome.getBiomeClass().getName();
            if (biomeName.equals("jikou") && biomeClass.equals("mod.mcreator.mcreator_jikou$BiomeGenjikou")) {
                jikJikou = new RealisticBiomeJIKJikou(biome);
            } else if (biomeName.equals("cherry") && biomeClass.equals("mod.mcreator.mcreator_cherry$BiomeGencherry")) {
                jikCherry = new RealisticBiomeJIKCherry(biome);
            }
        }
    }
}
Also used : Biome(net.minecraft.world.biome.Biome)

Example 13 with Biome

use of net.minecraft.world.biome.Biome in project Realistic-Terrain-Generation by Team-RTG.

the class RealisticBiomeIAFBase method addBiomes.

public static void addBiomes() {
    if (Loader.isModLoaded("iceandfire")) {
        for (Biome biome : Biome.REGISTRY) {
            if (biome.getBiomeName().isEmpty()) {
                Logger.warn("Biome ID %d has no name.", Biome.getIdForBiome(biome));
                continue;
            }
            String biomeName = biome.getBiomeName();
            String biomeClass = biome.getBiomeClass().getName();
            if (biomeName.equals("Glacier") && biomeClass.equals("com.github.alexthe666.iceandfire.world.BiomeGlacier")) {
                iafGlacier = new RealisticBiomeIAFGlacier(biome);
            }
        }
    }
}
Also used : Biome(net.minecraft.world.biome.Biome)

Example 14 with Biome

use of net.minecraft.world.biome.Biome in project Realistic-Terrain-Generation by Team-RTG.

the class BiomeUtils method getPreferredBeachForBiome.

public static Biome getPreferredBeachForBiome(Biome biome) {
    /*
         * Some of this code is from Climate Control, and it's still a bit crude. - Zeno
         * Some of this code is from Pink's brain, and it's also a bit crude. - Pink
         */
    float height = biome.getBaseHeight() + (biome.getHeightVariation() * 2f);
    float temp = biome.getTemperature();
    // Use a cold beach if the temperature is low enough; otherwise, just use a normal beach.
    Biome beach = (temp <= 0.05f) ? Biomes.COLD_BEACH : Biomes.BEACH;
    // If this is a mountainous biome or a Taiga variant, then let's use a stone beach.
    if ((height > (1.0f + 0.5f) && temp > 0.05f) || isTaigaBiome(biome)) {
        beach = Biomes.STONE_BEACH;
    }
    // Snowy biomes should always use cold beach; otherwise, the transition looks too abrupt.
    if (BiomeDictionary.isBiomeOfType(biome, BiomeDictionary.Type.SNOWY)) {
        beach = Biomes.COLD_BEACH;
    }
    return beach;
}
Also used : Biome(net.minecraft.world.biome.Biome)

Example 15 with Biome

use of net.minecraft.world.biome.Biome in project Realistic-Terrain-Generation by Team-RTG.

the class RealisticBiomeBABase method addBiomes.

public static void addBiomes() {
    if (Loader.isModLoaded("betteragriculture")) {
        for (Biome biome : Biome.REGISTRY) {
            if (biome.getBiomeName().isEmpty()) {
                Logger.warn("Biome ID %d has no name.", Biome.getIdForBiome(biome));
                continue;
            }
            String biomeName = biome.getBiomeName();
            String biomeClass = biome.getBiomeClass().getName();
            if (biomeName.equals("FarmlandBiome") && biomeClass.equals("betteragriculture.world.biome.FarmlandBiome")) {
                baFarmlandBiome = new RealisticBiomeBAFarmlandBiome(biome);
            }
        }
    }
}
Also used : Biome(net.minecraft.world.biome.Biome)

Aggregations

Biome (net.minecraft.world.biome.Biome)66 BlockPos (net.minecraft.util.math.BlockPos)17 IBlockState (net.minecraft.block.state.IBlockState)8 World (net.minecraft.world.World)5 WorldServer (net.minecraft.world.WorldServer)5 Random (java.util.Random)4 Block (net.minecraft.block.Block)4 ChunkPos (net.minecraft.util.math.ChunkPos)4 ResourceLocation (net.minecraft.util.ResourceLocation)3 List (java.util.List)2 ChunkProviderSettings (net.minecraft.world.gen.ChunkProviderSettings)2 ChunkGeneratorEvent (net.minecraftforge.event.terraingen.ChunkGeneratorEvent)2 NetherExBiomeType (nex.world.biome.NetherExBiomeType)2 Pair (org.apache.commons.lang3.tuple.Pair)2 IRealisticBiome (rtg.api.world.biome.IRealisticBiome)2 RealisticBiomeBase (rtg.world.biome.realistic.RealisticBiomeBase)2 Gson (com.google.gson.Gson)1 BlockSurfacePos (ivorius.ivtoolkit.blocks.BlockSurfacePos)1 IvVecMathHelper (ivorius.ivtoolkit.math.IvVecMathHelper)1 RCConfig (ivorius.reccomplex.RCConfig)1