Added the arctic biome
This commit is contained in:
parent
01e8c27573
commit
f1c400ed11
3 changed files with 53 additions and 1 deletions
|
@ -15,4 +15,5 @@ import net.minecraft.world.biome.BiomeGenBase;
|
||||||
public class BOPBiomes
|
public class BOPBiomes
|
||||||
{
|
{
|
||||||
public static Optional<BiomeGenBase> alps = Optional.absent();
|
public static Optional<BiomeGenBase> alps = Optional.absent();
|
||||||
|
public static Optional<BiomeGenBase> arctic = Optional.absent();
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,49 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
* Copyright 2015, 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.util.BlockPos;
|
||||||
|
import net.minecraftforge.common.BiomeManager.BiomeType;
|
||||||
|
import biomesoplenty.api.biome.BOPBiome;
|
||||||
|
import biomesoplenty.api.biome.generation.GeneratorStage;
|
||||||
|
import biomesoplenty.api.block.BOPBlocks;
|
||||||
|
import biomesoplenty.common.block.BlockGem;
|
||||||
|
import biomesoplenty.common.block.BlockGem.GemType;
|
||||||
|
import biomesoplenty.common.world.feature.GeneratorOreSingle;
|
||||||
|
|
||||||
|
public class BiomeGenArctic extends BOPBiome
|
||||||
|
{
|
||||||
|
private static final Height biomeHeight = new Height(0F, 0F);
|
||||||
|
|
||||||
|
public BiomeGenArctic()
|
||||||
|
{
|
||||||
|
this.setHeight(biomeHeight);
|
||||||
|
this.setColor(14540253);
|
||||||
|
this.setEnableSnow();
|
||||||
|
this.setTemperatureRainfall(0.05F, 0.5F);
|
||||||
|
|
||||||
|
this.addWeight(BiomeType.ICY, 10);
|
||||||
|
|
||||||
|
this.spawnableCreatureList.clear();
|
||||||
|
|
||||||
|
this.addGenerator("tanzanite", GeneratorStage.SAND, new GeneratorOreSingle(BOPBlocks.gem_ore.getDefaultState().withProperty(BlockGem.VARIANT, GemType.TANZANITE), 12, 4, 32));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getGrassColorAtPos(BlockPos pos)
|
||||||
|
{
|
||||||
|
return 11176526;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getFoliageColorAtPos(BlockPos pos)
|
||||||
|
{
|
||||||
|
return 11903827;
|
||||||
|
}
|
||||||
|
}
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
package biomesoplenty.common.init;
|
package biomesoplenty.common.init;
|
||||||
|
|
||||||
import static biomesoplenty.api.biome.BOPBiomes.alps;
|
import static biomesoplenty.api.biome.BOPBiomes.*;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
@ -18,6 +18,7 @@ import net.minecraft.world.biome.BiomeGenBase;
|
||||||
import org.apache.commons.io.FileUtils;
|
import org.apache.commons.io.FileUtils;
|
||||||
|
|
||||||
import biomesoplenty.common.biome.overworld.BiomeGenAlps;
|
import biomesoplenty.common.biome.overworld.BiomeGenAlps;
|
||||||
|
import biomesoplenty.common.biome.overworld.BiomeGenArctic;
|
||||||
import biomesoplenty.common.command.BOPCommand;
|
import biomesoplenty.common.command.BOPCommand;
|
||||||
import biomesoplenty.common.util.config.JsonBiome;
|
import biomesoplenty.common.util.config.JsonBiome;
|
||||||
import biomesoplenty.common.world.WorldTypeBOP;
|
import biomesoplenty.common.world.WorldTypeBOP;
|
||||||
|
@ -43,6 +44,7 @@ public class ModBiomes
|
||||||
private static void registerBiomes()
|
private static void registerBiomes()
|
||||||
{
|
{
|
||||||
alps = registerBiome(new BiomeGenAlps().setBiomeName("Alps"), "alps");
|
alps = registerBiome(new BiomeGenAlps().setBiomeName("Alps"), "alps");
|
||||||
|
arctic = registerBiome(new BiomeGenArctic().setBiomeName("Arctic"), "arctic");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void registerExternalBiomes()
|
private static void registerExternalBiomes()
|
||||||
|
|
Loading…
Reference in a new issue