They're baaaaaaaaaaaaaaack!

This commit is contained in:
Matt Caughey 2014-03-15 04:06:04 -04:00
parent a8bff3dc6c
commit fa0bd1dfff
5 changed files with 22 additions and 2 deletions

View file

@ -1,11 +1,14 @@
package biomesoplenty.common.biomes;
import java.util.HashMap;
import java.util.Random;
import net.minecraft.init.Blocks;
import net.minecraft.world.gen.feature.WorldGenAbstractTree;
import biomesoplenty.api.BOPBlockHelper;
import biomesoplenty.common.configuration.BOPConfigurationMisc;
import biomesoplenty.common.world.features.WorldGenBOPDoubleFlora;
import biomesoplenty.common.world.features.WorldGenBOPFlora;
import biomesoplenty.common.world.features.trees.WorldGenOriginalTree;
public class BiomeGenOriginValley extends BOPBiome
@ -28,7 +31,9 @@ public class BiomeGenOriginValley extends BOPBiome
this.theBiomeDecorator.sandPerChunk = 0;
this.theBiomeDecorator.sandPerChunk2 = 0;
this.theBiomeDecorator.clayPerChunk = 0;
this.theBiomeDecorator.flowersPerChunk = -999;
this.bopWorldFeatures.bopFlowersPerChunk = 4;
this.bopWorldFeatures.rootsPerChunk = -999;
this.bopWorldFeatures.stalagmitesPerChunk = -999;
this.bopWorldFeatures.stalactitesPerChunk = -999;
@ -44,6 +49,17 @@ public class BiomeGenOriginValley extends BOPBiome
return new WorldGenOriginalTree(Blocks.log, BOPBlockHelper.get("leaves3"), 0, 0, false, 5, 3, false);
}
@Override
public HashMap<WorldGenBOPFlora, Integer> getWeightedWorldGenForBOPFlowers()
{
HashMap<WorldGenBOPFlora, Integer> flowerMap = new HashMap();
flowerMap.put(new WorldGenBOPFlora(BOPBlockHelper.get("flowers2"), 8), 8);
flowerMap.put(new WorldGenBOPFlora(Blocks.yellow_flower, 0), 10);
return flowerMap;
}
@Override
//TODO: getBiomeGrassColor()
public int getBiomeGrassColor(int p_150558_1_, int p_150558_2_, int p_150558_3_)

View file

@ -25,7 +25,7 @@ import cpw.mods.fml.relauncher.SideOnly;
public class BlockBOPFlower2 extends BOPBlockWorldDecor
{
private static final String[] plants2 = new String[] {"hibiscus", "lilyofthevalley", "burningblossom", "lavender", "goldenrod", "bluebells", "minersdelight", "icyiris"};
private static final String[] plants2 = new String[] {"hibiscus", "lilyofthevalley", "burningblossom", "lavender", "goldenrod", "bluebells", "minersdelight", "icyiris", "rose"};
private IIcon[] textures;
public BlockBOPFlower2()
@ -193,6 +193,9 @@ public class BlockBOPFlower2 extends BOPBlockWorldDecor
case 6: // Miner's Delight
return block == Blocks.stone;
case 8: // Rose
return block == Blocks.grass || block == Blocks.dirt || block == Blocks.farmland || block == BOPBlockHelper.get("longGrass") || block == BOPBlockHelper.get("overgrownNetherrack") || block == BOPBlockHelper.get("originGrass");
default:
return block == Blocks.grass || block == Blocks.dirt || block == Blocks.farmland || block == BOPBlockHelper.get("longGrass") || block == BOPBlockHelper.get("overgrownNetherrack");
}

View file

@ -9,7 +9,7 @@ import cpw.mods.fml.relauncher.SideOnly;
public class ItemBlockFlower2 extends ItemBlock
{
private static final String[] plants = new String[] {"hibiscus", "lilyofthevalley", "burningblossom", "lavender", "goldenrod", "bluebells", "minersdelight", "icyiris"};
private static final String[] plants = new String[] {"hibiscus", "lilyofthevalley", "burningblossom", "lavender", "goldenrod", "bluebells", "minersdelight", "icyiris", "rose"};
@SideOnly(Side.CLIENT)
private IIcon[] textures;

View file

@ -59,6 +59,7 @@ tile.flowers2.goldenrod.name=Goldenrod
tile.flowers2.bluebells.name=Bluebells
tile.flowers2.minersdelight.name=Miner's Delight
tile.flowers2.icyiris.name=Icy Iris
tile.flowers2.rose.name=Rose
tile.stoneFormations.stalagmite.name=Stalagmite
tile.stoneFormations.stalactite.name=Stalactite

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 B