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);
}
}
}
}
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);
}
}
}
}
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);
}
}
}
}
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;
}
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);
}
}
}
}
Aggregations