Added beach variation placeholders.

This commit is contained in:
Matt Caughey 2013-05-24 11:45:47 -04:00
parent bd4431b0b8
commit 97965c1abc
7 changed files with 80 additions and 2 deletions

View file

@ -11,6 +11,10 @@ public class Biomes
public static Optional<? extends BiomeGenBase> badlands = Optional.absent();
public static Optional<? extends BiomeGenBase> bambooForest = Optional.absent();
public static Optional<? extends BiomeGenBase> bayou = Optional.absent();
public static Optional<? extends BiomeGenBase> beachGravel = Optional.absent();
public static Optional<? extends BiomeGenBase> beachOvergrown = Optional.absent();
public static Optional<? extends BiomeGenBase> birchForest = Optional.absent();
public static Optional<? extends BiomeGenBase> bog = Optional.absent();
public static Optional<? extends BiomeGenBase> borealForest = Optional.absent();

View file

@ -0,0 +1,23 @@
package biomesoplenty.biomes;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.gen.feature.WorldGenerator;
public class BiomeGenBeachGravel extends BiomeGenBase
{
public BiomeGenBeachGravel(int par1)
{
super(par1);
this.spawnableCreatureList.clear();
this.topBlock = (byte)Block.gravel.blockID;
this.fillerBlock = (byte)Block.gravel.blockID;
this.theBiomeDecorator.treesPerChunk = -999;
this.theBiomeDecorator.deadBushPerChunk = -999;
this.theBiomeDecorator.reedsPerChunk = -999;
this.theBiomeDecorator.cactiPerChunk = -999;
}
}

View file

@ -0,0 +1,23 @@
package biomesoplenty.biomes;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.gen.feature.WorldGenerator;
public class BiomeGenBeachOvergrown extends BiomeGenBase
{
public BiomeGenBeachOvergrown(int par1)
{
super(par1);
this.spawnableCreatureList.clear();
this.topBlock = (byte)Block.sand.blockID;
this.fillerBlock = (byte)Block.sand.blockID;
this.theBiomeDecorator.treesPerChunk = 5;
this.theBiomeDecorator.deadBushPerChunk = -999;
this.theBiomeDecorator.reedsPerChunk = -999;
this.theBiomeDecorator.cactiPerChunk = 1;
}
}

View file

@ -220,6 +220,15 @@ public class BlockBOPFoliage extends BlockFlower implements IShearable
return -1;
}
public void dropBlockAsItemWithChance(World world, int x, int y, int z, int meta, float chance, int par7)
{
if (world.isRemote)
return;
if (meta == 8)
this.dropBlockAsItem_do(world, x, y, z, new ItemStack(Items.berries.get(), 1, 0));
}
@Override
public AxisAlignedBB getSelectedBoundingBoxFromPool(World world, int x, int y, int z)
{

View file

@ -68,7 +68,11 @@ public class BOPBiomes {
Biomes.badlands = Optional.of((new BiomeGenBadlands(BOPConfiguration.badlandsID)).setColor(16421912).setBiomeName("Badlands").setTemperatureRainfall(2.0F, 0.0F).setMinMaxHeight(0.3F, 0.9F));
Biomes.bambooForest = Optional.of((new BiomeGenBambooForest(BOPConfiguration.bambooForestID)).setColor(112).setBiomeName("Bamboo Forest").setMinMaxHeight(0.0F, 0.3F).setTemperatureRainfall(1.2F, 0.9F));
Biomes.bayou = Optional.of((new BiomeGenBayou(BOPConfiguration.bayouID)).setColor(522674).setBiomeName("Bayou").func_76733_a(9154376).setMinMaxHeight(-0.3F, 0.2F).setTemperatureRainfall(0.5F, 0.9F));
Biomes.birchForest = Optional.of((new BiomeGenBirchForest(BOPConfiguration.birchForestID)).setColor(353825).setBiomeName("Birch Forest").func_76733_a(5159473).setTemperatureRainfall(0.4F, 0.3F));
Biomes.beachGravel = Optional.of((new BiomeGenBeachGravel(BOPConfiguration.beachGravelID)).setColor(16440917).setBiomeName("Gravel Beach").setTemperatureRainfall(0.8F, 0.4F).setMinMaxHeight(0.0F, 0.1F));
Biomes.beachOvergrown = Optional.of((new BiomeGenBeachOvergrown(BOPConfiguration.beachOvergrownID)).setColor(16440917).setBiomeName("Overgrown Beach").setTemperatureRainfall(0.8F, 0.4F).setMinMaxHeight(0.0F, 0.1F));
Biomes.birchForest = Optional.of((new BiomeGenBirchForest(BOPConfiguration.birchForestID)).setColor(353825).setBiomeName("Birch Forest").func_76733_a(5159473).setTemperatureRainfall(0.4F, 0.3F));
Biomes.bog = Optional.of((new BiomeGenBog(BOPConfiguration.bogID)).setColor(522674).setBiomeName("Bog").func_76733_a(9154376).setMinMaxHeight(-0.3F, -0.1F).setTemperatureRainfall(0.8F, 0.9F));
Biomes.borealForest = Optional.of((new BiomeGenBorealForest(BOPConfiguration.borealForestID)).setColor(353825).setBiomeName("Boreal Forest").func_76733_a(5159473).setMinMaxHeight(0.0F, 1.0F).setTemperatureRainfall(0.6F, 0.7F));
Biomes.brushland = Optional.of((new BiomeGenBrushland(BOPConfiguration.brushlandID)).setColor(16421912).setBiomeName("Brushland").setTemperatureRainfall(2.0F, 0.0F).setMinMaxHeight(0.0F, 0.5F));
@ -129,7 +133,7 @@ public class BOPBiomes {
Biomes.quagmire = Optional.of((new BiomeGenQuagmire(BOPConfiguration.quagmireID)).setColor(522674).setBiomeName("Quagmire").func_76733_a(9154376).setMinMaxHeight(-0.1F, 0.3F).setTemperatureRainfall(0.8F, 0.9F));
Biomes.rainforest = Optional.of((new BiomeGenRainforest(BOPConfiguration.rainforestID)).setColor(5470985).setBiomeName("Rainforest").func_76733_a(5470985).setTemperatureRainfall(2.0F, 2.0F).setMinMaxHeight(0.7F, 1.8F));
Biomes.redwoodForest = Optional.of((new BiomeGenRedwoodForest(BOPConfiguration.redwoodForestID)).setColor(747097).setBiomeName("Redwood Forest").func_76733_a(5159473).setTemperatureRainfall(0.8F, 0.4F).setMinMaxHeight(0.0F, 0.4F));
Biomes.sacredSprings = Optional.of((new BiomeGenSacredSprings(BOPConfiguration.sacredSpringsID)).setColor(522674).setBiomeName("Sacred Springs").func_76733_a(9154376).setMinMaxHeight(0.0F, 1.2F).setTemperatureRainfall(1.2F, 0.9F));
Biomes.sacredSprings = Optional.of((new BiomeGenSacredSprings(BOPConfiguration.sacredSpringsID)).setColor(522674).setBiomeName("Sacred Springs").func_76733_a(9154376).setMinMaxHeight(0.4F, 1.2F).setTemperatureRainfall(1.2F, 0.9F));
Biomes.savanna = Optional.of((new BiomeGenSavanna(BOPConfiguration.savannaID)).setColor(9286496).setBiomeName("Savanna").setTemperatureRainfall(1.5F, 0.1F).setMinMaxHeight(0.1F, 0.1F));
Biomes.scrubland = Optional.of((new BiomeGenScrubland(BOPConfiguration.scrublandID)).setColor(9286496).setBiomeName("Scrubland").setTemperatureRainfall(1.2F, 0.0F).setMinMaxHeight(0.1F, 0.3F));
Biomes.seasonalForest = Optional.of((new BiomeGenSeasonalForest(BOPConfiguration.seasonalForestID)).setColor(353825).setBiomeName("Seasonal Forest").func_76733_a(5159473).setTemperatureRainfall(0.7F, 0.8F).setMinMaxHeight(0.2F, 0.7F));
@ -165,6 +169,10 @@ public class BOPBiomes {
BiomeDictionary.registerBiomeType(Biomes.badlands.get(), Type.DESERT, Type.WASTELAND);
BiomeDictionary.registerBiomeType(Biomes.bambooForest.get(), Type.JUNGLE);
BiomeDictionary.registerBiomeType(Biomes.bayou.get(), Type.SWAMP);
BiomeDictionary.registerBiomeType(Biomes.beachGravel.get(), Type.BEACH);
BiomeDictionary.registerBiomeType(Biomes.beachOvergrown.get(), Type.BEACH, Type.FOREST);
BiomeDictionary.registerBiomeType(Biomes.birchForest.get(), Type.FOREST);
BiomeDictionary.registerBiomeType(Biomes.bog.get(), Type.SWAMP);
BiomeDictionary.registerBiomeType(Biomes.borealForest.get(), Type.FOREST);

View file

@ -232,6 +232,10 @@ public class BOPConfiguration {
public static int badlandsID;
public static int bambooForestID;
public static int bayouID;
public static int beachGravelID;
public static int beachOvergrownID;
public static int birchForestID;
public static int bogID;
public static int borealForestID;
@ -741,6 +745,9 @@ public class BOPConfiguration {
//23-79 ExtraBiomesXL
beachGravelID = config.get("Biome IDs", "Gravel Beach ID", 60).getInt();
beachOvergrownID = config.get("Biome IDs", "Overgrown Beach ID", 61).getInt();
promisedLandForestID = config.get("Biome IDs", "Wonderous Woods (Promised Land) ID", 62).getInt();
promisedLandPlainsID = config.get("Biome IDs", "Majestic Meadow (Promised Land) ID", 63).getInt();
promisedLandSwampID = config.get("Biome IDs", "Blessed Bog (Promised Land) ID", 64).getInt();

View file

@ -36,6 +36,8 @@ public class ForestryIntegration
//Hot - Arid
//Desert Hives
EnumTemperature.hotBiomeIds.add(BOPConfiguration.badlandsID);
EnumTemperature.hotBiomeIds.add(BOPConfiguration.beachGravelID);
EnumTemperature.hotBiomeIds.add(BOPConfiguration.beachOvergrownID);
EnumTemperature.hotBiomeIds.add(BOPConfiguration.brushlandID);
EnumTemperature.hotBiomeIds.add(BOPConfiguration.deadlandsID);
EnumTemperature.hotBiomeIds.add(BOPConfiguration.dunesID);
@ -159,6 +161,8 @@ public class ForestryIntegration
EnumTemperature.normalBiomeIds.add(BOPConfiguration.extremeHillsNewID);
EnumTemperature.normalBiomeIds.add(BOPConfiguration.forestNewID);
EnumHumidity.normalBiomeIds.add(BOPConfiguration.beachGravelID);
EnumHumidity.normalBiomeIds.add(BOPConfiguration.beachOvergrownID);
EnumHumidity.normalBiomeIds.add(BOPConfiguration.birchForestID);
EnumHumidity.normalBiomeIds.add(BOPConfiguration.borealForestID);
EnumHumidity.normalBiomeIds.add(BOPConfiguration.canyonID);