Search in sources :

Example 61 with Biome

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

the class RealisticBiomeVAMPBase method addBiomes.

public static void addBiomes() {
    if (Loader.isModLoaded("vampirism")) {
        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("vampireForest") && biomeClass.equals("de.teamlapen.vampirism.biome.BiomeGenVampireForest")) {
                vampireForest = new RealisticBiomeVAMPVampireForest(biome);
            }
        }
    }
}
Also used : Biome(net.minecraft.world.biome.Biome)

Example 62 with Biome

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

the class RealisticBiomeMFBase method addBiomes.

public static void addBiomes() {
    if (Loader.isModLoaded("mithwoodforest")) {
        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("Mithwood Forest") && biomeClass.equals("rainbeau.mithwoodforest.RMFWorldGen.BiomeMithwoodForest")) {
                mfMithwoodForest = new RealisticBiomeMFMithwoodForest(biome);
            }
        }
    }
}
Also used : Biome(net.minecraft.world.biome.Biome)

Example 63 with Biome

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

the class RealisticBiomeMCMBase method addBiomes.

public static void addBiomes() {
    if (Loader.isModLoaded("morechinesemc")) {
        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("Black Plain") && biomeClass.equals("com.mcbbs.shp241.morechinesemc.world.BiomeBlackPlain")) {
                mcmBlackPlain = new RealisticBiomeMCMBlackPlain(biome);
            } else if (biomeName.equals("Bog") && biomeClass.equals("com.mcbbs.shp241.morechinesemc.world.BiomeBog")) {
                mcmBog = new RealisticBiomeMCMBog(biome);
            } else if (biomeName.equals("Loess Plateau") && biomeClass.equals("com.mcbbs.shp241.morechinesemc.world.BiomeWarmTaiga")) {
                mcmLoessPlateau = new RealisticBiomeMCMLoessPlateau(biome);
            } else if (biomeName.equals("Mud Flat") && biomeClass.equals("com.mcbbs.shp241.morechinesemc.world.BiomeMudFlat")) {
                mcmMudFlat = new RealisticBiomeMCMMudFlat(biome);
            } else if (biomeName.equals("Warm Taiga") && biomeClass.equals("com.mcbbs.shp241.morechinesemc.world.BiomeWarmTaiga")) {
                mcmWarmTaiga = new RealisticBiomeMCMWarmTaiga(biome);
            }
        }
    }
}
Also used : Biome(net.minecraft.world.biome.Biome)

Example 64 with Biome

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

the class RealisticBiomeFLORIBase method addBiomes.

public static void addBiomes() {
    if (Loader.isModLoaded("floricraft")) {
        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("Rose Land") && biomeClass.equals("com.hosta.Floricraft.world.biome.BiomeFlowerLand")) {
                floriRoseLand = new RealisticBiomeFLORIRoseLand(biome);
            } else if (biomeName.equals("Tulip Land") && biomeClass.equals("com.hosta.Floricraft.world.biome.BiomeFlowerLand")) {
                floriTulipLand = new RealisticBiomeFLORITulipLand(biome);
            }
        }
    }
}
Also used : Biome(net.minecraft.world.biome.Biome)

Example 65 with Biome

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

the class RealisticBiomeFCBase method addBiomes.

public static void addBiomes() {
    if (Loader.isModLoaded("flowercraftmod")) {
        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("Phantasia") && biomeClass.equals("flowercraftmod.world.biome.BiomeGenFCPhantasia")) {
                fcPhantasia = new RealisticBiomeFCPhantasia(biome);
            }
        }
    }
}
Also used : Biome(net.minecraft.world.biome.Biome)

Aggregations

Biome (net.minecraft.world.biome.Biome)110 BlockPos (net.minecraft.util.math.BlockPos)39 IBlockState (net.minecraft.block.state.IBlockState)16 ResourceLocation (net.minecraft.util.ResourceLocation)9 World (net.minecraft.world.World)9 Nullable (javax.annotation.Nullable)8 Random (java.util.Random)7 ChunkPos (net.minecraft.util.math.ChunkPos)7 DoubleRange (com.almuradev.toolbox.util.math.DoubleRange)6 HashMap (java.util.HashMap)6 FunctionPredicate (com.almuradev.content.component.predicate.FunctionPredicate)5 Map (java.util.Map)5 Block (net.minecraft.block.Block)5 WorldServer (net.minecraft.world.WorldServer)5 BiomeChunk (com.almuradev.almura.feature.biome.BiomeChunk)4 Overwrite (org.spongepowered.asm.mixin.Overwrite)4 Entity (net.minecraft.entity.Entity)3 IntRange (com.almuradev.toolbox.util.math.IntRange)2 ArrayList (java.util.ArrayList)2 List (java.util.List)2