From ece60b0c8cfb3c4bfceea360f45dee00872f7bb4 Mon Sep 17 00:00:00 2001 From: Matt Caughey Date: Tue, 19 Jan 2016 23:51:41 -0500 Subject: [PATCH] Removed the Jade Cliffs biome. Goodbye old friend... --- .../biomesoplenty/api/biome/BOPBiomes.java | 1 - .../biome/overworld/BiomeGenJadeCliffs.java | 93 ------------------- .../biomesoplenty/common/init/ModBiomes.java | 4 - 3 files changed, 98 deletions(-) delete mode 100644 src/main/java/biomesoplenty/common/biome/overworld/BiomeGenJadeCliffs.java diff --git a/src/main/java/biomesoplenty/api/biome/BOPBiomes.java b/src/main/java/biomesoplenty/api/biome/BOPBiomes.java index e25a89030..e2f30c4aa 100644 --- a/src/main/java/biomesoplenty/api/biome/BOPBiomes.java +++ b/src/main/java/biomesoplenty/api/biome/BOPBiomes.java @@ -46,7 +46,6 @@ public class BOPBiomes public static Optional grove = Optional.absent(); public static Optional heathland = Optional.absent(); public static Optional highland = Optional.absent(); - public static Optional jade_cliffs = Optional.absent(); public static Optional land_of_lakes = Optional.absent(); public static Optional lavender_fields = Optional.absent(); public static Optional lush_desert = Optional.absent(); diff --git a/src/main/java/biomesoplenty/common/biome/overworld/BiomeGenJadeCliffs.java b/src/main/java/biomesoplenty/common/biome/overworld/BiomeGenJadeCliffs.java deleted file mode 100644 index 31b995a25..000000000 --- a/src/main/java/biomesoplenty/common/biome/overworld/BiomeGenJadeCliffs.java +++ /dev/null @@ -1,93 +0,0 @@ -/******************************************************************************* - * Copyright 2015-2016, the Biomes O' Plenty Team - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/. - ******************************************************************************/ - -package biomesoplenty.common.biome.overworld; - -import net.minecraft.block.BlockDoublePlant; -import net.minecraft.block.BlockTallGrass; -import net.minecraft.init.Blocks; -import net.minecraft.util.BlockPos; -import biomesoplenty.api.biome.BOPBiome; -import biomesoplenty.api.biome.generation.GeneratorStage; -import biomesoplenty.api.biome.generation.GeneratorWeighted; -import biomesoplenty.api.block.BOPBlocks; -import biomesoplenty.common.block.BlockBOPStone; -import biomesoplenty.common.enums.BOPClimates; -import biomesoplenty.common.enums.BOPPlants; -import biomesoplenty.common.enums.BOPTrees; -import biomesoplenty.common.enums.BOPWoods; -import biomesoplenty.common.world.BOPWorldSettings; -import biomesoplenty.common.world.feature.GeneratorDoubleFlora; -import biomesoplenty.common.world.feature.GeneratorFlora; -import biomesoplenty.common.world.feature.GeneratorGrass; -import biomesoplenty.common.world.feature.GeneratorOreSingle; -import biomesoplenty.common.world.feature.GeneratorSplotches; -import biomesoplenty.common.world.feature.tree.GeneratorBush; -import biomesoplenty.common.world.feature.tree.GeneratorPineTree; - -public class BiomeGenJadeCliffs extends BOPBiome -{ - - public BiomeGenJadeCliffs() - { - // terrain - this.terrainSettings.avgHeight(110).heightVariation(80, 80).minHeight(40).sidewaysNoise(0.7D); - - this.setColor(0x8ACC6A); - this.skyColor = 0xB7CCAD; - this.setTemperatureRainfall(0.8F, 0.9F); - - this.canGenerateVillages = false; - - this.addWeight(BOPClimates.WET_TEMPERATE, 3); - - this.addGenerator("limestone_patches", GeneratorStage.SAND, (new GeneratorSplotches.Builder()).amountPerChunk(26).splotchSize(25).replace(Blocks.stone).with(BOPBlocks.stone.getDefaultState().withProperty(BlockBOPStone.VARIANT, BlockBOPStone.StoneType.LIMESTONE)).create()); - - // trees - GeneratorWeighted treeGenerator = new GeneratorWeighted(10); - this.addGenerator("trees", GeneratorStage.TREE, treeGenerator); - treeGenerator.add("pine", 3, (new GeneratorPineTree.Builder()).minHeight(6).maxHeight(20).log(BOPWoods.PINE).leaves(BOPTrees.PINE).create()); - treeGenerator.add("oak_bush", 1, (new GeneratorBush.Builder()).maxHeight(2).create()); - - // grasses - GeneratorWeighted grassGenerator = new GeneratorWeighted(1.0F); - this.addGenerator("grass", GeneratorStage.GRASS, grassGenerator); - grassGenerator.add("tallgrass", 2, (new GeneratorGrass.Builder()).with(BlockTallGrass.EnumType.GRASS).create()); - grassGenerator.add("dampgrass", 1, (new GeneratorGrass.Builder()).with(BOPPlants.DAMPGRASS).create()); - - // other plants - this.addGenerator("ferns", GeneratorStage.FLOWERS,(new GeneratorFlora.Builder()).amountPerChunk(0.5F).with(BlockTallGrass.EnumType.FERN).create()); - this.addGenerator("leaf_piles", GeneratorStage.FLOWERS,(new GeneratorFlora.Builder()).amountPerChunk(0.6F).with(BOPPlants.LEAFPILE).create()); - this.addGenerator("dead_leaf_piles", GeneratorStage.FLOWERS,(new GeneratorFlora.Builder()).amountPerChunk(0.3F).with(BOPPlants.DEADLEAFPILE).create()); - this.addGenerator("wild_carrots", GeneratorStage.FLOWERS,(new GeneratorFlora.Builder()).amountPerChunk(0.1F).with(BOPPlants.WILDCARROT).create()); - this.addGenerator("syringa", GeneratorStage.FLOWERS, (new GeneratorDoubleFlora.Builder()).amountPerChunk(0.4F).with(BlockDoublePlant.EnumPlantType.SYRINGA).create()); - - // gem - this.addGenerator("emerald", GeneratorStage.SAND, (new GeneratorOreSingle.Builder()).amountPerChunk(12).with(Blocks.emerald_ore.getDefaultState()).create()); - - } - - @Override - public void applySettings(BOPWorldSettings settings) - { - if (!settings.generateBopGems) {this.removeGenerator("emeralds");} - } - - @Override - public int getGrassColorAtPos(BlockPos pos) - { - return 0x7CA568; - } - - @Override - public int getFoliageColorAtPos(BlockPos pos) - { - return 0x8ACC6A; - } - -} \ No newline at end of file diff --git a/src/main/java/biomesoplenty/common/init/ModBiomes.java b/src/main/java/biomesoplenty/common/init/ModBiomes.java index fb48a8dc9..275240f8d 100644 --- a/src/main/java/biomesoplenty/common/init/ModBiomes.java +++ b/src/main/java/biomesoplenty/common/init/ModBiomes.java @@ -44,7 +44,6 @@ import static biomesoplenty.api.biome.BOPBiomes.grove; import static biomesoplenty.api.biome.BOPBiomes.heathland; import static biomesoplenty.api.biome.BOPBiomes.highland; import static biomesoplenty.api.biome.BOPBiomes.ice_plains_extension; -import static biomesoplenty.api.biome.BOPBiomes.jade_cliffs; import static biomesoplenty.api.biome.BOPBiomes.jungle_extension; import static biomesoplenty.api.biome.BOPBiomes.land_of_lakes; import static biomesoplenty.api.biome.BOPBiomes.lavender_fields; @@ -128,7 +127,6 @@ import biomesoplenty.common.biome.overworld.BiomeGenGrassland; import biomesoplenty.common.biome.overworld.BiomeGenGrove; import biomesoplenty.common.biome.overworld.BiomeGenHeathland; import biomesoplenty.common.biome.overworld.BiomeGenHighland; -import biomesoplenty.common.biome.overworld.BiomeGenJadeCliffs; import biomesoplenty.common.biome.overworld.BiomeGenLandOfLakes; import biomesoplenty.common.biome.overworld.BiomeGenLavenderFields; import biomesoplenty.common.biome.overworld.BiomeGenLushDesert; @@ -357,7 +355,6 @@ public class ModBiomes implements BOPBiomes.IBiomeRegistry grove = registerBOPBiome(new BiomeGenGrove(), "Grove"); heathland = registerBOPBiome(new BiomeGenHeathland(), "Heathland"); highland = registerBOPBiome(new BiomeGenHighland(), "Highland"); - jade_cliffs = registerBOPBiome(new BiomeGenJadeCliffs(), "Jade Cliffs"); land_of_lakes = registerBOPBiome(new BiomeGenLandOfLakes(), "Land Of Lakes"); lavender_fields = registerBOPBiome(new BiomeGenLavenderFields(), "Lavender Fields"); lush_desert = registerBOPBiome(new BiomeGenLushDesert(), "Lush Desert"); @@ -432,7 +429,6 @@ public class ModBiomes implements BOPBiomes.IBiomeRegistry registerBiomeToDictionary(BOPBiomes.grove, Type.FOREST, Type.PLAINS, Type.DENSE, Type.LUSH); registerBiomeToDictionary(BOPBiomes.heathland, Type.PLAINS, Type.DRY, Type.SAVANNA); registerBiomeToDictionary(BOPBiomes.highland, Type.HILLS, Type.MOUNTAIN, Type.SPARSE); - registerBiomeToDictionary(BOPBiomes.jade_cliffs, Type.FOREST, Type.MOUNTAIN, Type.DENSE); registerBiomeToDictionary(BOPBiomes.land_of_lakes, Type.FOREST, Type.DENSE, Type.WATER, Type.LUSH, Type.SWAMP); registerBiomeToDictionary(BOPBiomes.lavender_fields, Type.MAGICAL, Type.PLAINS, Type.LUSH, Type.SPARSE); registerBiomeToDictionary(BOPBiomes.lush_desert, Type.HOT, Type.DRY, Type.LUSH, Type.SANDY);