BiomesOPlenty/common/biomesoplenty/biomes/BiomeDecoratorBOP.java

1941 lines
68 KiB
Java
Raw Normal View History

2013-05-03 13:00:44 +00:00
package biomesoplenty.biomes;
import static net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.BIG_SHROOM;
import static net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.CLAY;
import static net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.DEAD_BUSH;
import static net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.FLOWERS;
import static net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.GRASS;
import static net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.LILYPAD;
import static net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.REED;
import static net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.SAND;
import static net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.SAND_PASS2;
import static net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.SHROOM;
import static net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.TREE;
import static net.minecraftforge.event.terraingen.OreGenEvent.GenerateMinable.EventType.COAL;
import static net.minecraftforge.event.terraingen.OreGenEvent.GenerateMinable.EventType.DIAMOND;
import static net.minecraftforge.event.terraingen.OreGenEvent.GenerateMinable.EventType.DIRT;
import static net.minecraftforge.event.terraingen.OreGenEvent.GenerateMinable.EventType.GOLD;
import static net.minecraftforge.event.terraingen.OreGenEvent.GenerateMinable.EventType.GRAVEL;
import static net.minecraftforge.event.terraingen.OreGenEvent.GenerateMinable.EventType.IRON;
import static net.minecraftforge.event.terraingen.OreGenEvent.GenerateMinable.EventType.LAPIS;
import static net.minecraftforge.event.terraingen.OreGenEvent.GenerateMinable.EventType.REDSTONE;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeDecorator;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.gen.feature.WorldGenBigMushroom;
import net.minecraft.world.gen.feature.WorldGenCactus;
import net.minecraft.world.gen.feature.WorldGenClay;
import net.minecraft.world.gen.feature.WorldGenDeadBush;
import net.minecraft.world.gen.feature.WorldGenLakes;
import net.minecraft.world.gen.feature.WorldGenLiquids;
import net.minecraft.world.gen.feature.WorldGenMinable;
import net.minecraft.world.gen.feature.WorldGenPumpkin;
import net.minecraft.world.gen.feature.WorldGenReed;
import net.minecraft.world.gen.feature.WorldGenSand;
2013-09-20 17:33:44 +00:00
import net.minecraft.world.gen.feature.WorldGenTallGrass;
import net.minecraft.world.gen.feature.WorldGenWaterlily;
import net.minecraft.world.gen.feature.WorldGenerator;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.terraingen.DecorateBiomeEvent;
import net.minecraftforge.event.terraingen.OreGenEvent;
import net.minecraftforge.event.terraingen.TerrainGen;
2013-05-03 13:00:44 +00:00
import biomesoplenty.api.Blocks;
2013-07-09 04:10:57 +00:00
import biomesoplenty.api.Fluids;
2013-09-14 10:16:39 +00:00
import biomesoplenty.configuration.configfile.BOPConfigurationTerrainGen;
2013-05-03 13:00:44 +00:00
import biomesoplenty.worldgen.WorldGenAlgae;
import biomesoplenty.worldgen.WorldGenAsh;
import biomesoplenty.worldgen.WorldGenBOPBush;
import biomesoplenty.worldgen.WorldGenBOPDarkFlowers;
2013-07-09 03:55:12 +00:00
import biomesoplenty.worldgen.WorldGenBOPFlowers;
import biomesoplenty.worldgen.WorldGenBOPPumpkin;
2013-11-06 15:52:04 +00:00
import biomesoplenty.worldgen.WorldGenBOPTallGrass;
2013-07-05 05:21:10 +00:00
import biomesoplenty.worldgen.WorldGenBadlands;
import biomesoplenty.worldgen.WorldGenBadlands2;
import biomesoplenty.worldgen.WorldGenBadlands3;
import biomesoplenty.worldgen.WorldGenBadlands4;
2013-05-31 00:58:03 +00:00
import biomesoplenty.worldgen.WorldGenBoneSpine;
import biomesoplenty.worldgen.WorldGenBoneSpine2;
2013-05-03 13:00:44 +00:00
import biomesoplenty.worldgen.WorldGenBoulder;
import biomesoplenty.worldgen.WorldGenCanyon;
2013-05-05 00:06:17 +00:00
import biomesoplenty.worldgen.WorldGenCanyonGrass;
2013-05-03 13:00:44 +00:00
import biomesoplenty.worldgen.WorldGenCattail;
import biomesoplenty.worldgen.WorldGenCloud;
2013-08-08 22:54:45 +00:00
import biomesoplenty.worldgen.WorldGenCobwebs;
2013-09-12 17:59:00 +00:00
import biomesoplenty.worldgen.WorldGenCoral;
import biomesoplenty.worldgen.WorldGenCrystal1;
import biomesoplenty.worldgen.WorldGenCrystal2;
2013-05-03 13:00:44 +00:00
import biomesoplenty.worldgen.WorldGenDesertCactus;
import biomesoplenty.worldgen.WorldGenDriedDirt;
2013-09-09 23:46:48 +00:00
import biomesoplenty.worldgen.WorldGenGrave;
2013-09-14 10:16:39 +00:00
import biomesoplenty.worldgen.WorldGenGravel;
import biomesoplenty.worldgen.WorldGenHighCattail;
import biomesoplenty.worldgen.WorldGenHighGrass;
import biomesoplenty.worldgen.WorldGenHive;
2013-09-08 18:23:45 +00:00
import biomesoplenty.worldgen.WorldGenKelp;
2013-05-15 12:49:06 +00:00
import biomesoplenty.worldgen.WorldGenLilyflower;
2013-05-03 13:00:44 +00:00
import biomesoplenty.worldgen.WorldGenMelon;
import biomesoplenty.worldgen.WorldGenMesa;
import biomesoplenty.worldgen.WorldGenMossySkystone;
2013-05-03 13:00:44 +00:00
import biomesoplenty.worldgen.WorldGenMud;
import biomesoplenty.worldgen.WorldGenMycelium;
import biomesoplenty.worldgen.WorldGenNetherGrass;
2013-05-20 14:41:19 +00:00
import biomesoplenty.worldgen.WorldGenNetherLava;
import biomesoplenty.worldgen.WorldGenNetherVines;
2013-05-18 22:23:21 +00:00
import biomesoplenty.worldgen.WorldGenNetherWart;
2013-05-03 13:00:44 +00:00
import biomesoplenty.worldgen.WorldGenOasis;
import biomesoplenty.worldgen.WorldGenOutback;
import biomesoplenty.worldgen.WorldGenPit;
import biomesoplenty.worldgen.WorldGenPotatoes;
2013-09-10 12:58:26 +00:00
import biomesoplenty.worldgen.WorldGenPumpkinAlt;
2013-05-03 13:00:44 +00:00
import biomesoplenty.worldgen.WorldGenQuagmire;
import biomesoplenty.worldgen.WorldGenQuicksand;
import biomesoplenty.worldgen.WorldGenRedwoodShrub;
2013-05-05 15:45:04 +00:00
import biomesoplenty.worldgen.WorldGenReedBOP;
2013-05-03 13:00:44 +00:00
import biomesoplenty.worldgen.WorldGenShield;
2013-09-12 17:59:00 +00:00
import biomesoplenty.worldgen.WorldGenShortKelp;
2013-05-03 13:00:44 +00:00
import biomesoplenty.worldgen.WorldGenSmolderingGrass;
2013-09-12 19:02:13 +00:00
import biomesoplenty.worldgen.WorldGenSponge;
2013-05-03 13:00:44 +00:00
import biomesoplenty.worldgen.WorldGenSprout;
import biomesoplenty.worldgen.WorldGenSteppe;
2013-05-14 14:17:00 +00:00
import biomesoplenty.worldgen.WorldGenSunflower;
2013-09-23 23:55:28 +00:00
import biomesoplenty.worldgen.WorldGenWaterReeds;
2013-09-14 10:16:39 +00:00
import biomesoplenty.worldgen.tree.WorldGenPromisedWillow;
2013-05-03 13:00:44 +00:00
public class BiomeDecoratorBOP extends BiomeDecorator
{
2013-05-31 10:34:02 +00:00
/** The world the BiomeDecorator is currently decorating */
2013-09-14 10:16:39 +00:00
public World currentWorld;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** The Biome Decorator's random number generator. */
2013-09-14 10:16:39 +00:00
public Random randomGenerator;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** The X-coordinate of the chunk currently being decorated */
2013-09-14 10:16:39 +00:00
public int chunk_X;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** The Z-coordinate of the chunk currently being decorated */
2013-09-14 10:16:39 +00:00
public int chunk_Z;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** The biome generator object. */
2013-09-14 10:16:39 +00:00
public BiomeGenBase biome;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** The clay generator. */
2013-09-14 10:16:39 +00:00
public WorldGenerator clayGen = new WorldGenClay(4);
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** The sand generator. */
2013-09-14 10:16:39 +00:00
public WorldGenerator sandGen;
public WorldGenerator mudGen;
public WorldGenerator oasesGen;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** The gravel generator. */
2013-09-14 10:16:39 +00:00
public WorldGenerator gravelAsSandGen;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** The dirt generator. */
2013-09-14 10:16:39 +00:00
public WorldGenerator dirtGen;
public WorldGenerator gravelGen;
public WorldGenerator gravelShoreGen;
public WorldGenerator ashGen;
public WorldGenerator grassMesaGen;
public WorldGenerator sandMesaGen;
public WorldGenerator myceliumGen;
public WorldGenerator sandInGrassGen;
public WorldGenerator stoneInGrassGen;
public WorldGenerator stoneInGrassGen2;
public WorldGenerator sandInStoneGen;
public WorldGenerator driedDirtInSandGen;
public WorldGenerator clayInClayGen;
public WorldGenerator clayInClay2Gen;
public WorldGenerator clayInStoneGen;
public WorldGenerator clayInStone2Gen;
public WorldGenerator quagmireGen;
public WorldGenerator quicksandGen;
public WorldGenerator mossySkystoneGen;
2013-09-14 10:16:39 +00:00
public WorldGenerator spongeGen;
public WorldGenerator canyonGen;
public WorldGenerator cloudGen;
public WorldGenerator coalGen;
public WorldGenerator ironGen;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** Field that holds gold WorldGenMinable */
2013-09-14 10:16:39 +00:00
public WorldGenerator goldGen;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** Field that holds redstone WorldGenMinable */
2013-09-14 10:16:39 +00:00
public WorldGenerator redstoneGen;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** Field that holds diamond WorldGenMinable */
2013-09-14 10:16:39 +00:00
public WorldGenerator diamondGen;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** Field that holds Lapis WorldGenMinable */
2013-09-14 10:16:39 +00:00
public WorldGenerator lapisGen;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** Field that holds one of the plantYellow WorldGenFlowers */
2013-09-14 10:16:39 +00:00
public WorldGenerator plantYellowGen;
public WorldGenerator dandelionGen;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** Field that holds one of the plantRed WorldGenFlowers */
2013-09-14 10:16:39 +00:00
public WorldGenerator plantRedGen;
public WorldGenerator plantWhiteGen;
public WorldGenerator plantBlueGen;
public WorldGenerator plantPurpleGen;
public WorldGenerator plantPinkGen;
public WorldGenerator plantOrangeGen;
public WorldGenerator plantTinyGen;
public WorldGenerator plantGlowGen;
public WorldGenerator plantDeadGen;
public WorldGenerator plantDesertGen;
public WorldGenerator cattailGen;
2013-09-23 23:55:28 +00:00
public WorldGenerator waterReedGen;
2013-09-14 10:16:39 +00:00
public WorldGenerator highCattailGen;
public WorldGenerator outbackGen;
public WorldGenerator smolderingGrassGen;
public WorldGenerator canyonGrassGen;
public WorldGenerator netherGrassGen;
public WorldGenerator netherWartGen;
public WorldGenerator steppeGen;
public WorldGenerator cobwebGen;
public WorldGenerator thornGen;
public WorldGenerator toadstoolGen;
public WorldGenerator portobelloGen;
public WorldGenerator blueMilkGen;
public WorldGenerator glowshroomGen;
public WorldGenerator highGrassGen;
public WorldGenerator carrotGen;
public WorldGenerator potatoGen;
public WorldGenerator sproutGen;
public WorldGenerator bushGen;
2013-09-21 01:43:58 +00:00
public WorldGenerator shrubGen;
2013-09-20 17:33:44 +00:00
public WorldGenerator wheatGrassGen;
public WorldGenerator wetGrassGen;
2013-09-14 10:16:39 +00:00
public WorldGenerator berryBushGen;
public WorldGenerator tinyCactusGen;
public WorldGenerator aloeGen;
public WorldGenerator deathbloomGen;
public WorldGenerator hydrangeaGen;
public WorldGenerator violetGen;
public WorldGenerator duneGrassGen;
public WorldGenerator holyTallGrassGen;
public WorldGenerator desertSproutsGen;
public WorldGenerator promisedWillowGen;
public WorldGenerator netherVineGen;
public WorldGenerator poisonIvyGen;
public WorldGenerator sunflowerGen;
public WorldGenerator rainbowflowerGen;
public WorldGenerator crystalGen;
public WorldGenerator crystalGen2;
public WorldGenerator kelpGen;
public WorldGenerator shortKelpGen;
public WorldGenerator graveGen;
public WorldGenerator pumpkinAltGen;
public WorldGenerator coralGen;
public WorldGenerator hibiscusGen;
public WorldGenerator lilyOfTheValleyGen;
public WorldGenerator burningBlossomGen;
2013-09-20 02:07:20 +00:00
public WorldGenerator lavenderGen;
2013-09-20 04:21:28 +00:00
public WorldGenerator goldenrodGen;
public WorldGenerator bluebellGen;
public WorldGenerator minersDelightGen;
public WorldGenerator icyIrisGen;
public WorldGenerator redwoodShrubGen;
2013-10-20 18:05:23 +00:00
public WorldGenerator koruGen;
public WorldGenerator waspHiveGen;
2013-11-06 15:52:04 +00:00
public WorldGenerator rootGen;
2013-11-08 01:26:52 +00:00
public WorldGenerator stalagmiteGen;
public WorldGenerator stalactiteGen;
2013-09-14 10:16:39 +00:00
public WorldGenerator boneSpineGen;
public WorldGenerator boneSpine2Gen;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** Field that holds mushroomBrown WorldGenFlowers */
2013-09-14 10:16:39 +00:00
public WorldGenerator mushroomBrownGen;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** Field that holds mushroomRed WorldGenFlowers */
2013-09-14 10:16:39 +00:00
public WorldGenerator mushroomRedGen;
public WorldGenerator flatMushroomGen;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** Field that holds big mushroom generator */
2013-09-14 10:16:39 +00:00
public WorldGenerator bigMushroomGen;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** Field that holds WorldGenReed */
2013-09-14 10:16:39 +00:00
public WorldGenerator reedGen;
public WorldGenerator reedBOPGen;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** Field that holds WorldGenCactus */
2013-09-14 10:16:39 +00:00
public WorldGenerator cactusGen;
public WorldGenerator desertCactusGen;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** The water lily generation! */
2013-09-14 10:16:39 +00:00
public WorldGenerator waterlilyGen;
public WorldGenerator lilyflowerGen;
public WorldGenerator algaeGen;
public WorldGenerator pitGen;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** Amount of waterlilys per chunk. */
2013-09-14 10:16:39 +00:00
public int waterlilyPerChunk;
public int lilyflowersPerChunk;
public int algaePerChunk;
public int crystalsPerChunk;
public int crystals2PerChunk;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/**
* The number of trees to attempt to generate per chunk. Up to 10 in forests, none in deserts.
*/
2013-09-14 10:16:39 +00:00
//public int treesPerChunk; fix for bigtrees mod compatibility -ted80
2013-05-31 10:34:02 +00:00
/**
* The number of yellow flower patches to generate per chunk. The game generates much less than this number, since
* it attempts to generate them at a random altitude.
*/
2013-09-14 10:16:39 +00:00
public int flowersPerChunk;
public int whiteFlowersPerChunk;
public int blueFlowersPerChunk;
public int purpleFlowersPerChunk;
public int pinkFlowersPerChunk;
public int orangeFlowersPerChunk;
public int tinyFlowersPerChunk;
public int glowFlowersPerChunk;
public int deadGrassPerChunk;
public int desertGrassPerChunk;
public int cattailsPerChunk;
public int highCattailsPerChunk;
public int carrotsPerChunk;
public int potatoesPerChunk;
public int thornsPerChunk;
public int toadstoolsPerChunk;
public int portobellosPerChunk;
public int blueMilksPerChunk;
public int glowshroomsPerChunk;
public int sproutsPerChunk;
public int bushesPerChunk;
public int berryBushesPerChunk;
2013-09-21 01:43:58 +00:00
public int shrubsPerChunk;
2013-09-20 17:33:44 +00:00
public int wheatGrassPerChunk;
2013-09-14 10:16:39 +00:00
public int tinyCactiPerChunk;
public int aloePerChunk;
public int deathbloomsPerChunk;
public int hydrangeasPerChunk;
public int violetsPerChunk;
public int duneGrassPerChunk;
public int holyTallGrassPerChunk;
public int desertSproutsPerChunk;
public int promisedWillowPerChunk;
public int netherVinesPerChunk;
public int poisonIvyPerChunk;
public int sunflowersPerChunk;
public int rainbowflowersPerChunk;
public int cobwebsPerChunk;
public int kelpPerChunk;
public int kelpThickPerChunk;
public int shortKelpPerChunk;
public int gravesPerChunk;
public int pumpkinsPerChunk;
public int coralPerChunk;
public int hibiscusPerChunk;
public int lilyOfTheValleysPerChunk;
public int burningBlossomsPerChunk;
2013-09-20 02:07:20 +00:00
public int lavenderPerChunk;
2013-09-20 04:21:28 +00:00
public int goldenrodsPerChunk;
public int bluebellsPerChunk;
public int minersDelightPerChunk;
public int icyIrisPerChunk;
2013-09-23 23:55:28 +00:00
public int waterReedsPerChunk;
public int redwoodShrubsPerChunk;
2013-10-20 18:05:23 +00:00
public int koruPerChunk;
public int waspHivesPerChunk;
2013-11-06 15:52:04 +00:00
public int rootsPerChunk;
2013-11-08 01:26:52 +00:00
public int stalagmitesPerChunk;
public int stalactitesPerChunk;
2013-11-09 21:20:35 +00:00
public int cloudsPerChunk;
2013-09-14 10:16:39 +00:00
public int boneSpinesPerChunk;
public int boneSpines2PerChunk;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** The amount of tall grass to generate per chunk. */
2013-09-14 10:16:39 +00:00
public int grassPerChunk;
public int outbackPerChunk;
public int smolderingGrassPerChunk;
public int netherGrassPerChunk;
public int netherWartPerChunk;
public int canyonGrassPerChunk;
public int steppePerChunk;
public int highGrassPerChunk;
2013-05-31 10:34:02 +00:00
/**
* The number of dead bushes to generate per chunk. Used in deserts and swamps.
*/
2013-09-14 10:16:39 +00:00
public int deadBushPerChunk;
2013-05-31 10:34:02 +00:00
/**
* The number of extra mushroom patches per chunk. It generates 1/4 this number in brown mushroom patches, and 1/8
* this number in red mushroom patches. These mushrooms go beyond the default base number of mushrooms.
*/
2013-09-14 10:16:39 +00:00
public int mushroomsPerChunk;
2013-05-31 10:34:02 +00:00
/**
* The number of reeds to generate per chunk. Reeds won't generate if the randomly selected placement is unsuitable.
*/
2013-09-14 10:16:39 +00:00
public int reedsPerChunk;
public int reedsBOPPerChunk;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/**
* The number of cactus plants to generate per chunk. Cacti only work on sand.
*/
2013-09-14 10:16:39 +00:00
public int cactiPerChunk;
public int desertCactiPerChunk;
2013-05-31 10:34:02 +00:00
/**
* The number of sand patches to generate per chunk. Sand patches only generate when part of it is underwater.
*/
2013-09-14 10:16:39 +00:00
public int sandPerChunk;
public int oasesPerChunk;
public int mudPerChunk;
public int gravelPerChunk;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/**
* The number of sand patches to generate per chunk. Sand patches only generate when part of it is underwater. There
* appear to be two separate fields for this.
*/
2013-09-14 10:16:39 +00:00
public int sandPerChunk2;
public int oasesPerChunk2;
public int mudPerChunk2;
public int gravelPerChunk2;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/**
* The number of clay patches to generate per chunk. Only generates when part of it is underwater.
*/
2013-09-14 10:16:39 +00:00
public int clayPerChunk;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** Amount of big mushrooms per chunk */
2013-09-14 10:16:39 +00:00
public int bigMushroomsPerChunk;
public int rosesPerChunk;
public int pondsPerChunk;
public int waterLakesPerChunk;
public int lavaLakesPerChunk;
public int netherLavaPerChunk;
public int hotSpringsPerChunk;
public int poisonWaterPerChunk;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
/** True if decorator should generate surface lava & water */
public boolean generateLakes;
public boolean generateAsh;
public boolean generateGrass;
public boolean generateSand;
public boolean generateMycelium;
public boolean generateSandInGrass;
public boolean generateStoneInGrass;
2013-05-03 13:00:44 +00:00
public boolean generateStoneInGrass2;
2013-05-31 10:34:02 +00:00
public boolean generateSandInStone;
public boolean generateDriedDirtInSand;
2013-07-05 05:21:10 +00:00
public boolean generateClayInClay;
public boolean generateClayInClay2;
2013-05-31 10:34:02 +00:00
public boolean generateClayInStone;
2013-07-05 05:21:10 +00:00
public boolean generateClayInStone2;
2013-05-31 10:34:02 +00:00
public boolean generatePits;
public boolean generateQuagmire;
2013-05-03 13:00:44 +00:00
public boolean generateCanyon;
2013-05-31 10:34:02 +00:00
public boolean generatePumpkins;
public boolean generateMelons;
public boolean generateBoulders;
public boolean generateClouds;
public boolean generateQuicksand;
2013-09-12 19:02:13 +00:00
public boolean generateSponge;
public boolean generateMossySkystone;
2013-05-03 13:00:44 +00:00
2013-05-31 10:34:02 +00:00
public BiomeDecoratorBOP(BiomeGenBase par1BiomeGenBase)
{
super(par1BiomeGenBase);
sandGen = new WorldGenSand(7, Block.sand.blockID);
oasesGen = new WorldGenOasis(7, Block.grass.blockID);
mudGen = new WorldGenMud(7, Blocks.mud.get().blockID);
gravelShoreGen = new WorldGenGravel(7, Block.gravel.blockID);
gravelAsSandGen = new WorldGenSand(6, Block.gravel.blockID);
dirtGen = new WorldGenMinable(Block.dirt.blockID, 32);
gravelGen = new WorldGenMinable(Block.gravel.blockID, 32);
ashGen = new WorldGenAsh(Blocks.ash.get().blockID, 32);
grassMesaGen = new WorldGenMesa(Block.grass.blockID, 48);
sandMesaGen = new WorldGenMesa(Block.sand.blockID, 32);
myceliumGen = new WorldGenMycelium(Block.mycelium.blockID, 32);
sandInGrassGen = new WorldGenMycelium(Block.sand.blockID, 32);
stoneInGrassGen = new WorldGenMycelium(Block.stone.blockID, 32);
stoneInGrassGen2 = new WorldGenShield(Block.stone.blockID, 48);
sandInStoneGen = new WorldGenMinable(Block.sand.blockID, 32);
2013-09-13 08:17:21 +00:00
clayInClayGen = new WorldGenBadlands2(Block.stainedClay.blockID, 32);
2013-07-05 05:21:10 +00:00
clayInClay2Gen = new WorldGenBadlands4(Block.blockClay.blockID, 32);
2013-09-13 08:17:21 +00:00
clayInStoneGen = new WorldGenBadlands3(Block.stainedClay.blockID, 32);
clayInStone2Gen = new WorldGenBadlands(Block.stainedClay.blockID, 32);
2013-05-31 10:34:02 +00:00
quagmireGen = new WorldGenQuagmire(Block.grass.blockID, 48);
mossySkystoneGen = new WorldGenMossySkystone(Blocks.holyStone.get().blockID, 24);
2013-05-31 10:34:02 +00:00
quicksandGen = new WorldGenQuicksand(Blocks.mud.get().blockID, 24);
2013-09-12 19:02:13 +00:00
spongeGen = new WorldGenSponge(Block.sponge.blockID, 24);
2013-05-31 10:34:02 +00:00
canyonGen = new WorldGenCanyon(Blocks.redRock.get().blockID, 48);
driedDirtInSandGen = new WorldGenDriedDirt(Blocks.driedDirt.get().blockID, 32);
2013-11-09 21:20:35 +00:00
cloudGen = new WorldGenCloud();
2013-05-31 10:34:02 +00:00
coalGen = new WorldGenMinable(Block.oreCoal.blockID, 16);
ironGen = new WorldGenMinable(Block.oreIron.blockID, 8);
goldGen = new WorldGenMinable(Block.oreGold.blockID, 8);
redstoneGen = new WorldGenMinable(Block.oreRedstone.blockID, 7);
diamondGen = new WorldGenMinable(Block.oreDiamond.blockID, 7);
lapisGen = new WorldGenMinable(Block.oreLapis.blockID, 6);
plantYellowGen = new WorldGenBOPFlowers(Block.plantYellow.blockID, 0);
2013-08-08 22:54:45 +00:00
cobwebGen = new WorldGenCobwebs(Block.web.blockID, 0);
2013-05-31 10:34:02 +00:00
dandelionGen = new WorldGenBOPFlowers(Blocks.flowers.get().blockID, 15);
plantRedGen = new WorldGenBOPFlowers(Block.plantRed.blockID, 0);
plantWhiteGen = new WorldGenBOPFlowers(Blocks.flowers.get().blockID, 9);
plantBlueGen = new WorldGenBOPFlowers(Blocks.flowers.get().blockID, 1);
plantPurpleGen = new WorldGenBOPFlowers(Blocks.flowers.get().blockID, 7);
plantPinkGen = new WorldGenBOPFlowers(Blocks.flowers.get().blockID, 6);
plantOrangeGen = new WorldGenBOPFlowers(Blocks.flowers.get().blockID, 5);
2013-07-24 17:27:45 +00:00
rainbowflowerGen = new WorldGenBOPFlowers(Blocks.flowers.get().blockID, 11);
2013-05-31 10:34:02 +00:00
plantTinyGen = new WorldGenBOPFlowers(Blocks.flowers.get().blockID, 0);
plantGlowGen = new WorldGenBOPFlowers(Blocks.flowers.get().blockID, 3);
plantDeadGen = new WorldGenBOPFlowers(Blocks.plants.get().blockID, 0);
plantDesertGen = new WorldGenBOPFlowers(Blocks.plants.get().blockID, 1);
2013-09-10 12:58:26 +00:00
pumpkinAltGen = new WorldGenPumpkinAlt(Block.pumpkin.blockID, 0);
2013-05-31 10:34:02 +00:00
thornGen = new WorldGenBOPFlowers(Blocks.plants.get().blockID, 5);
bushGen = new WorldGenBOPBush(Blocks.foliage.get().blockID, 4);
2013-05-31 10:34:02 +00:00
berryBushGen = new WorldGenBOPFlowers(Blocks.foliage.get().blockID, 8);
2013-09-21 01:43:58 +00:00
shrubGen = new WorldGenBOPBush(Blocks.foliage.get().blockID, 9);
2013-09-20 17:33:44 +00:00
wheatGrassGen = new WorldGenTallGrass(Blocks.foliage.get().blockID, 10);
wetGrassGen = new WorldGenTallGrass(Blocks.foliage.get().blockID, 11);
2013-07-24 17:27:45 +00:00
tinyCactusGen = new WorldGenBOPFlowers(Blocks.plants.get().blockID, 12);
2013-05-31 10:34:02 +00:00
aloeGen = new WorldGenBOPFlowers(Blocks.flowers.get().blockID, 12);
2013-09-12 17:59:00 +00:00
coralGen = new WorldGenCoral(Blocks.coral.get().blockID, 4);
hibiscusGen = new WorldGenBOPFlowers(Blocks.flowers2.get().blockID, 0);
lilyOfTheValleyGen = new WorldGenBOPFlowers(Blocks.flowers2.get().blockID, 1);
burningBlossomGen = new WorldGenBOPDarkFlowers(Blocks.flowers2.get().blockID, 2);
2013-09-20 02:07:20 +00:00
lavenderGen = new WorldGenBOPFlowers(Blocks.flowers2.get().blockID, 3);
2013-09-20 04:21:28 +00:00
goldenrodGen = new WorldGenBOPFlowers(Blocks.flowers2.get().blockID, 4);
bluebellGen = new WorldGenBOPFlowers(Blocks.flowers2.get().blockID, 5);
minersDelightGen = new WorldGenBOPDarkFlowers(Blocks.flowers2.get().blockID, 6);
icyIrisGen = new WorldGenBOPFlowers(Blocks.flowers2.get().blockID, 7);
2013-05-31 10:34:02 +00:00
lilyflowerGen = new WorldGenLilyflower();
deathbloomGen = new WorldGenBOPFlowers(Blocks.flowers.get().blockID, 2);
hydrangeaGen = new WorldGenBOPFlowers(Blocks.flowers.get().blockID, 4);
violetGen = new WorldGenBOPFlowers(Blocks.flowers.get().blockID, 8);
duneGrassGen = new WorldGenBOPFlowers(Blocks.plants.get().blockID, 3);
holyTallGrassGen = new WorldGenBOPFlowers(Blocks.plants.get().blockID, 4);
desertSproutsGen = new WorldGenBOPFlowers(Blocks.plants.get().blockID, 2);
poisonIvyGen = new WorldGenBOPBush(Blocks.foliage.get().blockID, 7);
2013-05-31 10:34:02 +00:00
sunflowerGen = new WorldGenSunflower(Blocks.flowers.get().blockID, 13);
promisedWillowGen = new WorldGenPromisedWillow();
netherVineGen = new WorldGenNetherVines();
boneSpineGen = new WorldGenBoneSpine();
boneSpine2Gen = new WorldGenBoneSpine2();
cattailGen = new WorldGenCattail();
crystalGen = new WorldGenCrystal1();
crystalGen2 = new WorldGenCrystal2();
2013-09-08 18:23:45 +00:00
kelpGen = new WorldGenKelp(false);
2013-09-12 17:59:00 +00:00
shortKelpGen = new WorldGenShortKelp(false);
2013-09-09 23:46:48 +00:00
graveGen = new WorldGenGrave();
waspHiveGen = new WorldGenHive();
2013-05-31 10:34:02 +00:00
mushroomBrownGen = new WorldGenBOPFlowers(Block.mushroomBrown.blockID, 0);
mushroomRedGen = new WorldGenBOPFlowers(Block.mushroomRed.blockID, 0);
flatMushroomGen = new WorldGenBOPFlowers(Blocks.mushrooms.get().blockID, 4);
2013-05-31 10:34:02 +00:00
toadstoolGen = new WorldGenBOPFlowers(Blocks.mushrooms.get().blockID, 0);
portobelloGen = new WorldGenBOPFlowers(Blocks.mushrooms.get().blockID, 1);
blueMilkGen = new WorldGenBOPFlowers(Blocks.mushrooms.get().blockID, 2);
glowshroomGen = new WorldGenBOPFlowers(Blocks.mushrooms.get().blockID, 3);
sproutGen = new WorldGenSprout(Blocks.foliage.get().blockID, 5);
highGrassGen = new WorldGenHighGrass(Blocks.foliage.get().blockID, 3);
highCattailGen = new WorldGenHighCattail(Blocks.plants.get().blockID, 9);
outbackGen = new WorldGenOutback(Blocks.foliage.get().blockID, 2);
smolderingGrassGen = new WorldGenSmolderingGrass(Blocks.holyGrass.get().blockID, 1);
netherGrassGen = new WorldGenNetherGrass(Block.tallGrass.blockID, 1);
netherWartGen = new WorldGenNetherWart(Block.netherStalk.blockID, 0);
canyonGrassGen = new WorldGenCanyonGrass(Blocks.foliage.get().blockID, 2);
steppeGen = new WorldGenSteppe(Block.sand.blockID, 0);
2013-07-10 12:51:30 +00:00
carrotGen = new WorldGenBOPFlowers(Blocks.plants.get().blockID, 11);
2013-05-31 10:34:02 +00:00
potatoGen = new WorldGenPotatoes(Block.tallGrass.blockID, 0);
bigMushroomGen = new WorldGenBigMushroom();
reedGen = new WorldGenReed();
reedBOPGen = new WorldGenReedBOP();
cactusGen = new WorldGenCactus();
desertCactusGen = new WorldGenDesertCactus();
waterlilyGen = new WorldGenWaterlily();
algaeGen = new WorldGenAlgae();
2013-09-23 23:55:28 +00:00
waterReedGen = new WorldGenWaterReeds();
redwoodShrubGen = new WorldGenRedwoodShrub(0,0);
2013-10-20 18:05:23 +00:00
koruGen = new WorldGenTallGrass(Blocks.foliage.get().blockID, 12);
2013-11-06 15:52:04 +00:00
rootGen = new WorldGenBOPTallGrass(Blocks.plants.get().blockID, 15);
2013-11-08 01:26:52 +00:00
stalagmiteGen = new WorldGenBOPTallGrass(Blocks.stoneFormations.get().blockID, 0);
stalactiteGen = new WorldGenBOPTallGrass(Blocks.stoneFormations.get().blockID, 1);
2013-05-31 10:34:02 +00:00
pitGen = new WorldGenPit(Blocks.ash.get().blockID);
waterlilyPerChunk = 0;
lilyflowersPerChunk = 0;
treesPerChunk = 0;
flowersPerChunk = 2;
grassPerChunk = 1;
deadBushPerChunk = 0;
reedsPerChunk = 0;
reedsBOPPerChunk = 0;
cactiPerChunk = 0;
sandPerChunk = 1;
sandPerChunk2 = 3;
oasesPerChunk = 0;
oasesPerChunk2 = 0;
mudPerChunk = 0;
mudPerChunk2 = 0;
gravelPerChunk = 0;
gravelPerChunk2 = 0;
clayPerChunk = 1;
bigMushroomsPerChunk = 0;
rosesPerChunk = 0;
whiteFlowersPerChunk = 0;
blueFlowersPerChunk = 0;
purpleFlowersPerChunk = 0;
pinkFlowersPerChunk = 0;
orangeFlowersPerChunk = 0;
2013-07-24 17:27:45 +00:00
rainbowflowersPerChunk = 0;
2013-05-31 10:34:02 +00:00
tinyFlowersPerChunk = 0;
glowFlowersPerChunk = 0;
deadGrassPerChunk = 0;
desertGrassPerChunk = 0;
cattailsPerChunk = 0;
highCattailsPerChunk = 0;
carrotsPerChunk = 0;
potatoesPerChunk = 0;
thornsPerChunk = 0;
toadstoolsPerChunk = 0;
portobellosPerChunk = 0;
blueMilksPerChunk = 0;
glowshroomsPerChunk = 0;
sunflowersPerChunk = 0;
sproutsPerChunk = 0;
bushesPerChunk = 0;
berryBushesPerChunk = 0;
2013-09-21 01:43:58 +00:00
shrubsPerChunk = 0;
2013-09-20 17:33:44 +00:00
wheatGrassPerChunk = 0;
2013-05-31 10:34:02 +00:00
tinyCactiPerChunk = 0;
poisonIvyPerChunk = 0;
aloePerChunk = 0;
deathbloomsPerChunk = 0;
hydrangeasPerChunk = 0;
violetsPerChunk = 0;
duneGrassPerChunk = 0;
holyTallGrassPerChunk = 0;
desertSproutsPerChunk = 0;
desertCactiPerChunk = 0;
highGrassPerChunk = 0;
outbackPerChunk = 0;
smolderingGrassPerChunk = 0;
netherGrassPerChunk = 0;
netherWartPerChunk = 0;
canyonGrassPerChunk = 0;
steppePerChunk = 0;
promisedWillowPerChunk = 0;
netherVinesPerChunk = 0;
algaePerChunk = 0;
pondsPerChunk = 0;
waterLakesPerChunk = 0;
lavaLakesPerChunk = 0;
netherLavaPerChunk = 0;
hotSpringsPerChunk = 0;
poisonWaterPerChunk = 0;
crystalsPerChunk = 0;
crystals2PerChunk = 0;
boneSpinesPerChunk = 0;
boneSpines2PerChunk = 0;
2013-08-08 22:54:45 +00:00
cobwebsPerChunk = 0;
2013-09-08 18:23:45 +00:00
kelpPerChunk = 0;
2013-09-09 23:46:48 +00:00
kelpThickPerChunk = 0;
2013-09-12 17:59:00 +00:00
shortKelpPerChunk = 0;
2013-09-09 23:46:48 +00:00
gravesPerChunk = 0;
2013-09-10 12:58:26 +00:00
pumpkinsPerChunk = 0;
2013-09-12 17:59:00 +00:00
coralPerChunk = 0;
hibiscusPerChunk = 0;
lilyOfTheValleysPerChunk = 0;
burningBlossomsPerChunk = 0;
2013-09-20 02:07:20 +00:00
lavenderPerChunk = 0;
2013-09-20 04:21:28 +00:00
goldenrodsPerChunk = 0;
bluebellsPerChunk = 0;
minersDelightPerChunk = 2;
icyIrisPerChunk = 0;
2013-09-23 23:55:28 +00:00
waterReedsPerChunk = 0;
redwoodShrubsPerChunk = 0;
2013-10-20 18:05:23 +00:00
koruPerChunk = 0;
waspHivesPerChunk = 0;
2013-11-07 18:05:04 +00:00
rootsPerChunk = 9;
stalagmitesPerChunk = 3;
stalactitesPerChunk = 6;
2013-11-09 21:20:35 +00:00
cloudsPerChunk = 0;
2013-05-31 10:34:02 +00:00
generateLakes = true;
generateAsh = false;
generateMycelium = false;
generateSandInGrass = false;
generateStoneInGrass = false;
generateStoneInGrass2 = false;
generateSandInStone = false;
generateDriedDirtInSand = false;
2013-07-05 05:21:10 +00:00
generateClayInClay = false;
generateClayInClay2 = false;
2013-05-31 10:34:02 +00:00
generateClayInStone = false;
2013-07-05 05:21:10 +00:00
generateClayInStone2 = false;
2013-05-31 10:34:02 +00:00
generateQuagmire = false;
generateCanyon = false;
generatePumpkins = true;
generateMelons = false;
generateBoulders = false;
generateClouds = false;
generateQuicksand = false;
2013-09-12 19:02:13 +00:00
generateSponge = false;
generateMossySkystone = false;
2013-05-31 10:34:02 +00:00
biome = par1BiomeGenBase;
}
/**
* Decorates the world. Calls code that was formerly (pre-1.8) in ChunkProviderGenerate.populate
*/
@Override
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
if (currentWorld != null)
2013-05-03 13:00:44 +00:00
return ;
else
{
2013-05-31 10:34:02 +00:00
currentWorld = par1World;
randomGenerator = par2Random;
chunk_X = par3;
chunk_Z = par4;
2013-05-03 13:00:44 +00:00
this.decorate();
2013-05-31 10:34:02 +00:00
currentWorld = null;
randomGenerator = null;
}
2013-05-31 10:34:02 +00:00
}
/**
* The method that does the work of actually decorating chunks
*/
@Override
protected void decorate()
{
MinecraftForge.EVENT_BUS.post(new DecorateBiomeEvent.Pre(currentWorld, randomGenerator, chunk_X, chunk_Z));
//Added
boolean doGen = TerrainGen.decorate(currentWorld, randomGenerator, chunk_X, chunk_Z, SAND);
this.generateOres();
int var1;
int var2;
int var3;
int var4;
int var5;
for (var2 = 0; var2 < waterLakesPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(randomGenerator.nextInt(240) + 8);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
(new WorldGenLakes(Block.waterMoving.blockID)).generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < lavaLakesPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-17 10:00:16 +00:00
var4 = randomGenerator.nextInt(randomGenerator.nextInt(randomGenerator.nextInt(112) + 8) + 8);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
(new WorldGenLakes(Block.lavaMoving.blockID)).generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < netherLavaPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-17 10:00:16 +00:00
var4 = randomGenerator.nextInt(randomGenerator.nextInt(randomGenerator.nextInt(112) + 8) + 8);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
(new WorldGenNetherLava(Block.lavaMoving.blockID)).generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < hotSpringsPerChunk; ++var2)
{
2013-09-14 10:16:39 +00:00
if (BOPConfigurationTerrainGen.springWaterGen)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(randomGenerator.nextInt(randomGenerator.nextInt(112) + 8) + 8);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
(new WorldGenLakes(Fluids.springWater.get().blockID)).generate(currentWorld, randomGenerator, var3, var4, var5);
}
2013-05-31 10:34:02 +00:00
}
for (var2 = 0; var2 < 5; ++var2)
{
2013-07-04 06:04:12 +00:00
int var9999 = randomGenerator.nextInt(96);
2013-05-31 10:34:02 +00:00
2013-09-14 10:16:39 +00:00
if (BOPConfigurationTerrainGen.springWaterGen)
2013-05-31 10:34:02 +00:00
{
if (var9999 == 1)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(randomGenerator.nextInt(randomGenerator.nextInt(32) + 8) + 8);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
(new WorldGenLakes(Fluids.springWater.get().blockID)).generate(currentWorld, randomGenerator, var3, var4, var5);
}
2013-05-31 10:34:02 +00:00
}
}
for (var2 = 0; var2 < poisonWaterPerChunk; ++var2)
{
2013-09-14 10:16:39 +00:00
if (BOPConfigurationTerrainGen.poisonWaterGen)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(randomGenerator.nextInt(randomGenerator.nextInt(112) + 8) + 8);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
(new WorldGenLakes(Fluids.liquidPoison.get().blockID)).generate(currentWorld, randomGenerator, var3, var4, var5);
}
2013-05-31 10:34:02 +00:00
}
for (var2 = 0; var2 < 5; ++var2)
{
2013-07-04 06:04:12 +00:00
int var9998 = randomGenerator.nextInt(32);
2013-09-14 10:16:39 +00:00
if (BOPConfigurationTerrainGen.poisonWaterGen)
{
if (var9998 == 1)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(randomGenerator.nextInt(randomGenerator.nextInt(32) + 8) + 8);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
(new WorldGenLakes(Fluids.liquidPoison.get().blockID)).generate(currentWorld, randomGenerator, var3, var4, var5);
}
}
}
2013-05-31 10:34:02 +00:00
if (generateAsh)
{
this.genStandardOre1(10, ashGen, 0, 128);
}
if (generateGrass)
{
this.genStandardOre1(20, grassMesaGen, 0, 128);
}
if (generateSand)
{
this.genStandardOre1(15, sandMesaGen, 0, 128);
}
if (generateMycelium)
{
this.genStandardOre1(10, myceliumGen, 0, 128);
}
if (generateSandInGrass)
{
this.genStandardOre1(8, sandInGrassGen, 64, 128);
}
if (generateStoneInGrass)
{
this.genStandardOre1(15, stoneInGrassGen, 64, 128);
}
if (generateStoneInGrass2)
{
this.genStandardOre1(20, stoneInGrassGen2, 64, 128);
}
if (generateSandInStone)
{
this.genStandardOre1(10, sandInStoneGen, 64, 128);
}
if (generateDriedDirtInSand)
{
this.genStandardOre1(8, driedDirtInSandGen, 64, 128);
}
2013-07-05 05:21:10 +00:00
if (generateClayInClay)
{
this.genStandardOre1(20, clayInClayGen, 64, 128);
}
if (generateClayInClay2)
{
2013-07-09 04:58:36 +00:00
this.genStandardOre1(20, clayInClay2Gen, 64, 128);
2013-07-05 05:21:10 +00:00
}
2013-05-31 10:34:02 +00:00
if (generateClayInStone)
{
2013-07-09 04:58:36 +00:00
this.genStandardOre1(20, clayInStoneGen, 64, 128);
2013-07-05 05:21:10 +00:00
}
if (generateClayInStone2)
{
this.genStandardOre1(20, clayInStone2Gen, 64, 128);
2013-05-31 10:34:02 +00:00
}
if (generateQuagmire)
{
this.genStandardOre1(15, quagmireGen, 64, 128);
}
2013-10-27 18:54:35 +00:00
if (generateMossySkystone)
2013-10-27 18:54:35 +00:00
{
this.genStandardOre1(15, mossySkystoneGen, 0, 80);
2013-10-27 18:54:35 +00:00
}
2013-05-31 10:34:02 +00:00
if (generateCanyon)
{
this.genStandardOre1(15, canyonGen, 64, 128);
}
if (generateQuicksand)
{
2013-09-14 10:16:39 +00:00
if (BOPConfigurationTerrainGen.quicksandGen)
{
this.genStandardOre1(5, quicksandGen, 64, 128);
}
2013-05-31 10:34:02 +00:00
}
2013-09-12 19:02:13 +00:00
if (generateSponge)
{
this.genStandardOre1(5, spongeGen, 0, 64);
}
2013-05-31 10:34:02 +00:00
if (generateClouds)
{
2013-08-07 02:03:47 +00:00
this.genCloudMain(1, cloudGen, 0, 35);
2013-05-31 10:34:02 +00:00
}
if (generatePits)
{
var4 = chunk_X + randomGenerator.nextInt(16) + 8;
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
int var6 = currentWorld.getTopSolidOrLiquidBlock(var4, var5);
if (var6 > 0)
{
;
}
pitGen.generate(currentWorld, randomGenerator, var4, var6, var5);
}
for (var1 = 0; var1 < sandPerChunk2; ++var1)
{
var2 = chunk_X + randomGenerator.nextInt(16) + 8;
var3 = chunk_Z + randomGenerator.nextInt(16) + 8;
sandGen.generate(currentWorld, randomGenerator, var2, currentWorld.getTopSolidOrLiquidBlock(var2, var3), var3);
}
//Added
for (var1 = 0; doGen && var1 < sandPerChunk2; ++var1)
{
var2 = chunk_X + randomGenerator.nextInt(16) + 8;
var3 = chunk_Z + randomGenerator.nextInt(16) + 8;
sandGen.generate(currentWorld, randomGenerator, var2, currentWorld.getTopSolidOrLiquidBlock(var2, var3), var3);
}
for (var1 = 0; var1 < mudPerChunk2; ++var1)
{
var2 = chunk_X + randomGenerator.nextInt(16) + 8;
var3 = chunk_Z + randomGenerator.nextInt(16) + 8;
mudGen.generate(currentWorld, randomGenerator, var2, currentWorld.getTopSolidOrLiquidBlock(var2, var3), var3);
}
for (var1 = 0; var1 < gravelPerChunk2; ++var1)
{
var2 = chunk_X + randomGenerator.nextInt(16) + 8;
var3 = chunk_Z + randomGenerator.nextInt(16) + 8;
gravelShoreGen.generate(currentWorld, randomGenerator, var2, currentWorld.getTopSolidOrLiquidBlock(var2, var3), var3);
}
//Added
doGen = TerrainGen.decorate(currentWorld, randomGenerator, chunk_X, chunk_Z, CLAY);
for (var1 = 0; doGen && var1 < clayPerChunk; ++var1)
{
var2 = chunk_X + randomGenerator.nextInt(16) + 8;
var3 = chunk_Z + randomGenerator.nextInt(16) + 8;
clayGen.generate(currentWorld, randomGenerator, var2, currentWorld.getTopSolidOrLiquidBlock(var2, var3), var3);
}
//Added
doGen = TerrainGen.decorate(currentWorld, randomGenerator, chunk_X, chunk_Z, SAND_PASS2);
for (var1 = 0; doGen && var1 < sandPerChunk; ++var1)
{
var2 = chunk_X + randomGenerator.nextInt(16) + 8;
var3 = chunk_Z + randomGenerator.nextInt(16) + 8;
sandGen.generate(currentWorld, randomGenerator, var2, currentWorld.getTopSolidOrLiquidBlock(var2, var3), var3);
}
for (var1 = 0; var1 < oasesPerChunk; ++var1)
{
var2 = chunk_X + randomGenerator.nextInt(16) + 8;
var3 = chunk_Z + randomGenerator.nextInt(16) + 8;
oasesGen.generate(currentWorld, randomGenerator, var2, currentWorld.getTopSolidOrLiquidBlock(var2, var3), var3);
}
for (var1 = 0; var1 < mudPerChunk; ++var1)
{
var2 = chunk_X + randomGenerator.nextInt(16) + 8;
var3 = chunk_Z + randomGenerator.nextInt(16) + 8;
mudGen.generate(currentWorld, randomGenerator, var2, currentWorld.getTopSolidOrLiquidBlock(var2, var3), var3);
}
for (var1 = 0; var1 < gravelPerChunk; ++var1)
{
var2 = chunk_X + randomGenerator.nextInt(16) + 8;
var3 = chunk_Z + randomGenerator.nextInt(16) + 8;
gravelShoreGen.generate(currentWorld, randomGenerator, var2, currentWorld.getTopSolidOrLiquidBlock(var2, var3), var3);
}
var1 = treesPerChunk;
if (randomGenerator.nextInt(10) == 0)
{
++var1;
}
//Added
doGen = TerrainGen.decorate(currentWorld, randomGenerator, chunk_X, chunk_Z, TREE);
for (var2 = 0; doGen && var2 < var1; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = chunk_Z + randomGenerator.nextInt(16) + 8;
WorldGenerator var7 = biome.getRandomWorldGenForTrees(randomGenerator);
var7.setScale(1.0D, 1.0D, 1.0D);
var7.generate(currentWorld, randomGenerator, var3, currentWorld.getHeightValue(var3, var4), var4);
}
//Added
doGen = TerrainGen.decorate(currentWorld, randomGenerator, chunk_X, chunk_Z, BIG_SHROOM);
for (var2 = 0; doGen && var2 < bigMushroomsPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = chunk_Z + randomGenerator.nextInt(16) + 8;
bigMushroomGen.generate(currentWorld, randomGenerator, var3, currentWorld.getHeightValue(var3, var4), var4);
}
//Added
doGen = TerrainGen.decorate(currentWorld, randomGenerator, chunk_X, chunk_Z, FLOWERS);
for (var2 = 0; doGen && var2 < flowersPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
plantYellowGen.generate(currentWorld, randomGenerator, var3, var4, var5);
if (randomGenerator.nextInt(6) == 0)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
dandelionGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
if (randomGenerator.nextInt(4) == 0)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
plantRedGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
}
for (var2 = 0; var2 < rosesPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
plantRedGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
2013-08-08 22:54:45 +00:00
for (var2 = 0; var2 < cobwebsPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(256);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
cobwebGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
2013-05-31 10:34:02 +00:00
for (var2 = 0; var2 < sunflowersPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
sunflowerGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
2013-07-24 17:27:45 +00:00
2013-09-09 23:46:48 +00:00
for (var2 = 0; var2 < gravesPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(256);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
graveGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
2013-09-10 12:58:26 +00:00
for (var2 = 0; var2 < pumpkinsPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(256);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
pumpkinAltGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
2013-09-08 18:23:45 +00:00
for (var2 = 0; var2 < kelpPerChunk; ++var2)
{
2013-09-08 21:38:07 +00:00
var3 = chunk_X + randomGenerator.nextInt(16);
2013-09-08 18:23:45 +00:00
var4 = randomGenerator.nextInt(64);
2013-09-08 21:38:07 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16);
2013-09-08 18:23:45 +00:00
kelpGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
2013-09-09 23:46:48 +00:00
for (var2 = 0; var2 < kelpThickPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(8);
var4 = randomGenerator.nextInt(64);
var5 = chunk_Z + randomGenerator.nextInt(8);
kelpGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
2013-09-12 17:59:00 +00:00
for (var2 = 0; var2 < shortKelpPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16);
var4 = randomGenerator.nextInt(64);
var5 = chunk_Z + randomGenerator.nextInt(16);
shortKelpGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
2013-07-24 17:27:45 +00:00
for (var2 = 0; var2 < rainbowflowersPerChunk; ++var2)
{
int var956 = randomGenerator.nextInt(10);
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(256);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
if (var956 == 0)
{
rainbowflowerGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
}
2013-05-31 10:34:02 +00:00
for (var2 = 0; var2 < boneSpinesPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
boneSpineGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < boneSpines2PerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(64) + 64;
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
boneSpine2Gen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < crystalsPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(50);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
crystalGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < crystals2PerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(50);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
crystalGen2.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < promisedWillowPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(70);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
promisedWillowGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < netherVinesPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
netherVineGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < whiteFlowersPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
plantWhiteGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
2013-09-12 17:59:00 +00:00
for (var2 = 0; var2 < coralPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(256);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
coralGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
2013-05-31 10:34:02 +00:00
for (var2 = 0; var2 < blueFlowersPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
plantBlueGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < hibiscusPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(256);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
hibiscusGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < lilyOfTheValleysPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(256);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
lilyOfTheValleyGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
if (BOPConfigurationTerrainGen.burningBlossomGen)
{
for (var2 = 0; var2 < burningBlossomsPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(256);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
burningBlossomGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
}
2013-09-20 02:07:20 +00:00
for (var2 = 0; var2 < lavenderPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(256);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
lavenderGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
2013-09-20 04:21:28 +00:00
for (var2 = 0; var2 < goldenrodsPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(256);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
goldenrodGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < bluebellsPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(256);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
bluebellGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < minersDelightPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(45);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
minersDelightGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < icyIrisPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(256);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
icyIrisGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
2013-05-31 10:34:02 +00:00
for (var2 = 0; var2 < hydrangeasPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
hydrangeaGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < violetsPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
violetGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < duneGrassPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
duneGrassGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < holyTallGrassPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
holyTallGrassGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < desertSproutsPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
desertSproutsGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < purpleFlowersPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
plantPurpleGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < pinkFlowersPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
plantPinkGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < bushesPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
bushGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < berryBushesPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
berryBushGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
2013-09-20 17:33:44 +00:00
2013-09-21 01:43:58 +00:00
for (var2 = 0; var2 < shrubsPerChunk; ++var2)
2013-09-20 17:33:44 +00:00
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(256);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
2013-09-21 01:43:58 +00:00
shrubGen.generate(currentWorld, randomGenerator, var3, var4, var5);
2013-09-20 17:33:44 +00:00
}
2013-10-20 18:05:23 +00:00
for (var2 = 0; var2 < koruPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(256);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
koruGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
2013-11-06 15:52:04 +00:00
for (var2 = 0; var2 < rootsPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(256);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
rootGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
2013-11-08 01:26:52 +00:00
for (var2 = 0; var2 < stalagmitesPerChunk; ++var2)
{
2013-11-13 01:55:01 +00:00
if (BOPConfigurationTerrainGen.stoneFormationGen)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(60);
2013-11-13 01:55:01 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
stalagmiteGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
2013-11-08 01:26:52 +00:00
}
for (var2 = 0; var2 < stalactitesPerChunk; ++var2)
{
2013-11-13 01:55:01 +00:00
if (BOPConfigurationTerrainGen.stoneFormationGen)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(60);
2013-11-13 01:55:01 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
stalactiteGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
2013-11-08 01:26:52 +00:00
}
2013-11-09 21:20:35 +00:00
for (var2 = 0; var2 < cloudsPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(32);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
cloudGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < waspHivesPerChunk; ++var2)
{
2013-10-30 21:43:12 +00:00
int var420 = randomGenerator.nextInt(4);
2013-10-30 19:57:42 +00:00
if (var420 != 0)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(64)+50;
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
waspHiveGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
}
2013-09-20 17:33:44 +00:00
for (var2 = 0; var2 < wheatGrassPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(256);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
int var99999 = randomGenerator.nextInt(2);
if (var99999 == 0)
{
wetGrassGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
else
{
wheatGrassGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
2013-09-20 17:33:44 +00:00
}
2013-05-31 10:34:02 +00:00
for (var2 = 0; var2 < poisonIvyPerChunk; ++var2)
{
2013-09-14 10:16:39 +00:00
if (BOPConfigurationTerrainGen.poisonIvyGen)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(256);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
poisonIvyGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
2013-05-31 10:34:02 +00:00
}
for (var2 = 0; var2 < orangeFlowersPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
plantOrangeGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < tinyCactiPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
tinyCactusGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < aloePerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
aloeGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < deathbloomsPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
deathbloomGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < toadstoolsPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
toadstoolGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < portobellosPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
portobelloGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < blueMilksPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
blueMilkGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < glowshroomsPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(80);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
glowshroomGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < sproutsPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
sproutGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < tinyFlowersPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
plantTinyGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < glowFlowersPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
plantGlowGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < deadGrassPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
plantDeadGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < desertGrassPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
plantDesertGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
//Added
doGen = TerrainGen.decorate(currentWorld, randomGenerator, chunk_X, chunk_Z, GRASS);
for (var2 = 0; doGen && var2 < grassPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
WorldGenerator var6 = biome.getRandomWorldGenForGrass(randomGenerator);
var6.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < outbackPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
outbackGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < smolderingGrassPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
smolderingGrassGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < netherGrassPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
netherGrassGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < netherWartPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
netherWartGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < canyonGrassPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
canyonGrassGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < steppePerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
steppeGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < highGrassPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
highGrassGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < carrotsPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
carrotGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < potatoesPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
potatoGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < reedsBOPPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = chunk_Z + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var5 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
reedBOPGen.generate(currentWorld, randomGenerator, var3, var5, var4);
}
for (var2 = 0; var2 < thornsPerChunk; ++var2)
{
2013-09-14 10:16:39 +00:00
if (BOPConfigurationTerrainGen.thornGen)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(256);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
thornGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
2013-05-31 10:34:02 +00:00
}
for (var2 = 0; var2 < cattailsPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
cattailGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < highCattailsPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
highCattailGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < redwoodShrubsPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(50) + 70;
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
redwoodShrubGen.generate(currentWorld, randomGenerator, var3, var4, var5);
2013-05-31 10:34:02 +00:00
}
//Added
doGen = TerrainGen.decorate(currentWorld, randomGenerator, chunk_X, chunk_Z, DEAD_BUSH);
for (var2 = 0; doGen && var2 < deadBushPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
(new WorldGenDeadBush(Block.deadBush.blockID)).generate(currentWorld, randomGenerator, var3, var4, var5);
}
//Added
doGen = TerrainGen.decorate(currentWorld, randomGenerator, chunk_X, chunk_Z, SHROOM);
for (var2 = 0; doGen && var2 < mushroomsPerChunk; ++var2)
{
if (randomGenerator.nextInt(4) == 0)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = chunk_Z + randomGenerator.nextInt(16) + 8;
var5 = currentWorld.getHeightValue(var3, var4);
mushroomBrownGen.generate(currentWorld, randomGenerator, var3, var5, var4);
}
if (randomGenerator.nextInt(6) == 0)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = chunk_Z + randomGenerator.nextInt(16) + 8;
var5 = randomGenerator.nextInt(256);
flatMushroomGen.generate(currentWorld, randomGenerator, var3, var5, var4);
}
2013-05-31 10:34:02 +00:00
if (randomGenerator.nextInt(8) == 0)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = chunk_Z + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var5 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
mushroomRedGen.generate(currentWorld, randomGenerator, var3, var5, var4);
}
}
if (randomGenerator.nextInt(4) == 0)
{
var2 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var3 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var4 = chunk_Z + randomGenerator.nextInt(16) + 8;
mushroomBrownGen.generate(currentWorld, randomGenerator, var2, var3, var4);
}
if (randomGenerator.nextInt(8) == 0)
{
var2 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var3 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var4 = chunk_Z + randomGenerator.nextInt(16) + 8;
mushroomRedGen.generate(currentWorld, randomGenerator, var2, var3, var4);
}
//Added
doGen = TerrainGen.decorate(currentWorld, randomGenerator, chunk_X, chunk_Z, REED);
for (var2 = 0; doGen && var2 < reedsPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = chunk_Z + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var5 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
reedGen.generate(currentWorld, randomGenerator, var3, var5, var4);
}
for (var2 = 0; doGen && var2 < 10; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
reedGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
if (generatePumpkins && randomGenerator.nextInt(32) == 0)
{
var2 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var3 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var4 = chunk_Z + randomGenerator.nextInt(16) + 8;
2013-09-14 10:16:39 +00:00
if (BOPConfigurationTerrainGen.pumpkinGen)
{
(new WorldGenBOPPumpkin()).generate(currentWorld, randomGenerator, var2, var3, var4);
}
else
{
(new WorldGenPumpkin()).generate(currentWorld, randomGenerator, var2, var3, var4);
}
2013-05-31 10:34:02 +00:00
}
if (generateMelons && randomGenerator.nextInt(32) == 0)
{
var2 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var3 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var4 = chunk_Z + randomGenerator.nextInt(16) + 8;
(new WorldGenMelon()).generate(currentWorld, randomGenerator, var2, var3, var4);
}
if (generateBoulders && randomGenerator.nextInt(32) == 0)
{
var2 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var3 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var4 = chunk_Z + randomGenerator.nextInt(16) + 8;
(new WorldGenBoulder()).generate(currentWorld, randomGenerator, var2, var3, var4);
}
for (var2 = 0; var2 < cactiPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
cactusGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < desertCactiPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
desertCactusGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
if (generateLakes)
{
for (var2 = 0; var2 < 50 + pondsPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(randomGenerator.nextInt(120) + 8);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
(new WorldGenLiquids(Block.waterMoving.blockID)).generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < 20; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(randomGenerator.nextInt(randomGenerator.nextInt(112) + 8) + 8);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
(new WorldGenLiquids(Block.lavaMoving.blockID)).generate(currentWorld, randomGenerator, var3, var4, var5);
}
}
for (var2 = 0; var2 < lilyflowersPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
var4 = randomGenerator.nextInt(256);
2013-05-31 10:34:02 +00:00
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
lilyflowerGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; doGen && var2 < algaePerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = chunk_Z + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
for (var5 = randomGenerator.nextInt(256); var5 > 0 && currentWorld.getBlockId(var3, var5 - 1, var4) == 0; --var5)
2013-05-31 10:34:02 +00:00
{
;
}
algaeGen.generate(currentWorld, randomGenerator, var3, var5, var4);
}
2013-09-23 23:55:28 +00:00
for (var2 = 0; doGen && var2 < waterReedsPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = chunk_Z + randomGenerator.nextInt(16) + 8;
for (var5 = randomGenerator.nextInt(256); var5 > 0 && currentWorld.getBlockId(var3, var5 - 1, var4) == 0; --var5)
{
;
}
waterReedGen.generate(currentWorld, randomGenerator, var3, var5, var4);
}
2013-05-31 10:34:02 +00:00
//Added
doGen = TerrainGen.decorate(currentWorld, randomGenerator, chunk_X, chunk_Z, LILYPAD);
for (var2 = 0; doGen && var2 < waterlilyPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = chunk_Z + randomGenerator.nextInt(16) + 8;
2013-07-15 11:58:37 +00:00
for (var5 = randomGenerator.nextInt(256); var5 > 0 && currentWorld.getBlockId(var3, var5 - 1, var4) == 0; --var5)
2013-05-31 10:34:02 +00:00
{
;
}
waterlilyGen.generate(currentWorld, randomGenerator, var3, var5, var4);
}
MinecraftForge.EVENT_BUS.post(new DecorateBiomeEvent.Post(currentWorld, randomGenerator, chunk_X, chunk_Z));
}
/**
* Standard ore generation helper. Generates most ores.
*/
protected void genCloudMain(int par1, WorldGenerator par2WorldGenerator, int par3, int par4)
{
for (int var5 = 0; var5 < par1; ++var5)
{
int var6 = chunk_X + randomGenerator.nextInt(8);
int var7 = randomGenerator.nextInt(par4 - par3) + par3;
int var8 = chunk_Z + randomGenerator.nextInt(8);
int var999 = randomGenerator.nextInt(5);
if (var999 == 0)
{
par2WorldGenerator.generate(currentWorld, randomGenerator, var6, var7, var8);
par2WorldGenerator.generate(currentWorld, randomGenerator, var6 + 8, var7, var8);
par2WorldGenerator.generate(currentWorld, randomGenerator, var6, var7, var8 + 8);
par2WorldGenerator.generate(currentWorld, randomGenerator, var6 + 8, var7, var8 + 8);
}
}
}
/**
* Standard ore generation helper. Generates most ores.
*/
@Override
protected void genStandardOre1(int par1, WorldGenerator par2WorldGenerator, int par3, int par4)
{
for (int var5 = 0; var5 < par1; ++var5)
{
int var6 = chunk_X + randomGenerator.nextInt(16);
int var7 = randomGenerator.nextInt(par4 - par3) + par3;
int var8 = chunk_Z + randomGenerator.nextInt(16);
par2WorldGenerator.generate(currentWorld, randomGenerator, var6, var7, var8);
}
}
/**
* Standard ore generation helper. Generates Lapis Lazuli.
*/
@Override
protected void genStandardOre2(int par1, WorldGenerator par2WorldGenerator, int par3, int par4)
{
for (int var5 = 0; var5 < par1; ++var5)
{
int var6 = chunk_X + randomGenerator.nextInt(16);
int var7 = randomGenerator.nextInt(par4) + randomGenerator.nextInt(par4) + (par3 - par4);
int var8 = chunk_Z + randomGenerator.nextInt(16);
par2WorldGenerator.generate(currentWorld, randomGenerator, var6, var7, var8);
}
}
/**
* Generates ores in the current chunk
*/
@Override
protected void generateOres()
{
MinecraftForge.ORE_GEN_BUS.post(new OreGenEvent.Pre(currentWorld, randomGenerator, chunk_X, chunk_Z));
if (TerrainGen.generateOre(currentWorld, randomGenerator, dirtGen, chunk_X, chunk_Z, DIRT)) {
2013-07-15 11:58:37 +00:00
this.genStandardOre1(20, dirtGen, 0, 256);
2013-05-31 10:34:02 +00:00
}
if (TerrainGen.generateOre(currentWorld, randomGenerator, gravelGen, chunk_X, chunk_Z, GRAVEL)) {
2013-07-15 11:58:37 +00:00
this.genStandardOre1(10, gravelGen, 0, 256);
2013-05-31 10:34:02 +00:00
}
if (TerrainGen.generateOre(currentWorld, randomGenerator, coalGen, chunk_X, chunk_Z, COAL)) {
this.genStandardOre1(20, coalGen, 0, 128);
}
if (TerrainGen.generateOre(currentWorld, randomGenerator, ironGen, chunk_X, chunk_Z, IRON)) {
this.genStandardOre1(20, ironGen, 0, 64);
}
if (TerrainGen.generateOre(currentWorld, randomGenerator, goldGen, chunk_X, chunk_Z, GOLD)) {
this.genStandardOre1(2, goldGen, 0, 32);
}
if (TerrainGen.generateOre(currentWorld, randomGenerator, redstoneGen, chunk_X, chunk_Z, REDSTONE)) {
this.genStandardOre1(8, redstoneGen, 0, 16);
}
if (TerrainGen.generateOre(currentWorld, randomGenerator, diamondGen, chunk_X, chunk_Z, DIAMOND)) {
this.genStandardOre1(1, diamondGen, 0, 16);
}
if (TerrainGen.generateOre(currentWorld, randomGenerator, lapisGen, chunk_X, chunk_Z, LAPIS)) {
this.genStandardOre2(1, lapisGen, 16, 16);
}
MinecraftForge.ORE_GEN_BUS.post(new OreGenEvent.Post(currentWorld, randomGenerator, chunk_X, chunk_Z));
}
2013-05-03 13:00:44 +00:00
}