From 79526b7a03d6f38c961d2f964f6500f1847855aa Mon Sep 17 00:00:00 2001 From: fabricator77 Date: Mon, 27 Jan 2014 02:55:34 +1030 Subject: [PATCH] Re-implement Promisedland dimension. Summary of changes: Commented out lighting API, for performance reasons Relocate portal generation to WorldGenPromisedLandPortal, removes duplicate code. Simplified multi-biome layer generation code. Re-activate teleport code Notes: tree/grass generated commented out due to vanilla crash bug, see BiomeGenPromisedLand*** super.decorate calls A number of customBiomeDecorator calls to be re-implemented, left commented out for now. --- .../java/biomesoplenty/BiomesOPlenty.java | 5 + .../BiomeGenPromisedLandForest.java | 158 ++ .../BiomeGenPromisedLandPlains.java | 141 ++ .../BiomeGenPromisedLandSwamp.java | 156 ++ .../common/blocks/BlockPromisedPortal.java | 8 +- .../configuration/BOPConfigurationMisc.java | 4 +- .../biomesoplenty/common/core/BOPBiomes.java | 13 +- .../helpers/BiomeCacheBlockPromised.java | 48 + .../common/helpers/BiomeCachePromised.java | 104 ++ .../common/helpers/TeleporterPromised.java | 255 ++++ .../common/items/ItemBOPAncientStaff.java | 1273 ++--------------- .../common/world/ChunkProviderPromised.java | 604 ++++++++ .../world/WorldChunkManagerPromised.java | 262 ++++ .../common/world/WorldProviderPromised.java | 208 +++ .../features/WorldGenPromisedLandPortal.java | 1011 +++++++++++++ .../world/features/WorldGenWaterSpring.java | 82 ++ .../features/trees/WorldGenPromisedTree.java | 146 ++ .../features/trees/WorldGenPromisedTree2.java | 123 ++ .../features/trees/WorldGenPromisedTree3.java | 165 +++ .../trees/WorldGenPromisedWillowTree.java | 194 +++ .../world/layer/GenLayerBiomesCustom.java | 41 + .../common/world/layer/GenLayerCustom.java | 36 + .../common/world/noise/NoiseOctaves.java | 65 + .../common/world/noise/NoisePerlin.java | 222 +++ 24 files changed, 4189 insertions(+), 1135 deletions(-) create mode 100644 src/main/java/biomesoplenty/common/biomes/promisedland/BiomeGenPromisedLandForest.java create mode 100644 src/main/java/biomesoplenty/common/biomes/promisedland/BiomeGenPromisedLandPlains.java create mode 100644 src/main/java/biomesoplenty/common/biomes/promisedland/BiomeGenPromisedLandSwamp.java create mode 100644 src/main/java/biomesoplenty/common/helpers/BiomeCacheBlockPromised.java create mode 100644 src/main/java/biomesoplenty/common/helpers/BiomeCachePromised.java create mode 100644 src/main/java/biomesoplenty/common/helpers/TeleporterPromised.java create mode 100644 src/main/java/biomesoplenty/common/world/ChunkProviderPromised.java create mode 100644 src/main/java/biomesoplenty/common/world/WorldChunkManagerPromised.java create mode 100644 src/main/java/biomesoplenty/common/world/WorldProviderPromised.java create mode 100644 src/main/java/biomesoplenty/common/world/features/WorldGenPromisedLandPortal.java create mode 100644 src/main/java/biomesoplenty/common/world/features/WorldGenWaterSpring.java create mode 100644 src/main/java/biomesoplenty/common/world/features/trees/WorldGenPromisedTree.java create mode 100644 src/main/java/biomesoplenty/common/world/features/trees/WorldGenPromisedTree2.java create mode 100644 src/main/java/biomesoplenty/common/world/features/trees/WorldGenPromisedTree3.java create mode 100644 src/main/java/biomesoplenty/common/world/features/trees/WorldGenPromisedWillowTree.java create mode 100644 src/main/java/biomesoplenty/common/world/layer/GenLayerBiomesCustom.java create mode 100644 src/main/java/biomesoplenty/common/world/layer/GenLayerCustom.java create mode 100644 src/main/java/biomesoplenty/common/world/noise/NoiseOctaves.java create mode 100644 src/main/java/biomesoplenty/common/world/noise/NoisePerlin.java diff --git a/src/main/java/biomesoplenty/BiomesOPlenty.java b/src/main/java/biomesoplenty/BiomesOPlenty.java index ff7557ed9..35efa1e17 100644 --- a/src/main/java/biomesoplenty/BiomesOPlenty.java +++ b/src/main/java/biomesoplenty/BiomesOPlenty.java @@ -1,8 +1,10 @@ package biomesoplenty; import net.minecraft.creativetab.CreativeTabs; +import net.minecraftforge.common.DimensionManager; import biomesoplenty.common.configuration.BOPConfiguration; import biomesoplenty.common.configuration.BOPConfigurationBiomeGen; +import biomesoplenty.common.configuration.BOPConfigurationIDs; import biomesoplenty.common.configuration.BOPConfigurationWorldFeatures; import biomesoplenty.common.configuration.structures.BOPConfigurationStrongholds; import biomesoplenty.common.configuration.structures.BOPConfigurationVillages; @@ -20,6 +22,7 @@ import biomesoplenty.common.helpers.CreativeTabsBOP; import biomesoplenty.common.integration.TreecapitatorIntegration; import biomesoplenty.common.network.PacketPipeline; import biomesoplenty.common.utils.BOPModInfo; +import biomesoplenty.common.world.WorldProviderPromised; import biomesoplenty.common.world.WorldTypeBOP; import biomesoplenty.common.world.decoration.ForcedDecorators; import biomesoplenty.common.world.generation.ForcedBOPWorldGenerators; @@ -84,6 +87,8 @@ public class BiomesOPlenty packetPipeline.initalize(); TreecapitatorIntegration.init(); + DimensionManager.registerProviderType(BOPConfigurationIDs.promisedLandDimID, WorldProviderPromised.class, false); + DimensionManager.registerDimension(BOPConfigurationIDs.promisedLandDimID, BOPConfigurationIDs.promisedLandDimID); } @EventHandler diff --git a/src/main/java/biomesoplenty/common/biomes/promisedland/BiomeGenPromisedLandForest.java b/src/main/java/biomesoplenty/common/biomes/promisedland/BiomeGenPromisedLandForest.java new file mode 100644 index 000000000..414e616f5 --- /dev/null +++ b/src/main/java/biomesoplenty/common/biomes/promisedland/BiomeGenPromisedLandForest.java @@ -0,0 +1,158 @@ +package biomesoplenty.common.biomes.promisedland; + +import java.awt.Color; +import java.util.Random; + + + + + +//import worldcore.interfaces.IWCFog; +import net.minecraft.block.Block; +import net.minecraft.init.Blocks; +import net.minecraft.world.World; +import net.minecraft.world.biome.BiomeGenBase; +import net.minecraft.world.gen.feature.WorldGenAbstractTree; +import net.minecraft.world.gen.feature.WorldGenTrees; +import net.minecraft.world.gen.feature.WorldGenerator; +import biomesoplenty.api.BOPBlockHelper; +import biomesoplenty.common.biomes.BOPBiome; +import biomesoplenty.common.world.decoration.BOPBiomeDecorator; +import biomesoplenty.common.world.features.WorldGenWaterSpring; +import biomesoplenty.common.world.features.trees.WorldGenPromisedTree; +import biomesoplenty.common.world.features.trees.WorldGenPromisedTree2; +import biomesoplenty.common.world.features.trees.WorldGenRainforestTree1; +import biomesoplenty.common.configuration.BOPConfigurationMisc; + +public class BiomeGenPromisedLandForest extends BOPBiome //implements IWCFog +{ + private WorldGenerator theWorldGenerator; + private BOPBiomeDecorator customBiomeDecorator; + + public BiomeGenPromisedLandForest(int par1) + { + super(par1); + theBiomeDecorator = new BOPBiomeDecorator(); + customBiomeDecorator = (BOPBiomeDecorator)theBiomeDecorator; + topBlock = BOPBlockHelper.get("grass"); + fillerBlock = BOPBlockHelper.get("holyDirt"); + customBiomeDecorator.treesPerChunk = 10; + customBiomeDecorator.grassPerChunk = 0; + //this.bopWorldFeatures.holyTallGrassPerChunk = 100; + //this.bopWorldFeatures.promisedWillowPerChunk = 40; + //this.bopWorldFeatures.pinkFlowersPerChunk = 12; + //this.bopWorldFeatures.rainbowflowersPerChunk = 10; + this.bopWorldFeatures.blueMilksPerChunk = 5; + customBiomeDecorator.generateLakes = false; + this.bopWorldFeatures.waterPoolsPerChunk = 0; + //this.bopWorldFeatures.hotSpringsPerChunk = 5; + this.bopWorldFeatures.waterLakesPerChunk = 10; + //this.bopWorldFeatures.crystalsPerChunk = 25; + //this.bopWorldFeatures.crystals2PerChunk = 50; + //this.bopWorldFeatures.cloudsPerChunk = 1; + spawnableCreatureList.clear(); + spawnableWaterCreatureList.clear(); + spawnableMonsterList.clear(); + spawnableCaveCreatureList.clear(); + this.bopWorldFeatures.generatePumpkins = false; + //this.bopWorldFeatures.generateMossySkystone = true; + //this.bopWorldFeatures.generateUndergroundLakes = false; + theWorldGenerator = new WorldGenWaterSpring(Blocks.water, 8); + /*this.spawnableMonsterList.add(new SpawnListEntry(EntityCow.class, 6, 1, 4)); + + if (Loader.isModLoaded("TwilightForest")) + { + try { + this.spawnableMonsterList.add(new SpawnListEntry(Class.forName("twilightforest.entity.passive.EntityTFBighorn"), 2, 1, 3)); + this.spawnableMonsterList.add(new SpawnListEntry(Class.forName("twilightforest.entity.passive.EntityTFDeer"), 4, 1, 3)); + this.spawnableMonsterList.add(new SpawnListEntry(Class.forName("twilightforest.entity.passive.EntityTFBird"), 2, 1, 3)); + } catch (ClassNotFoundException e) { + System.out.println("[BiomesOPlenty] There was an error while integrating Twilight Forest with Biomes O' Plenty!"); + e.printStackTrace(); + } + }*/ + } + + /** + * Gets a WorldGen appropriate for this biome. + */ + @Override + //TODO: getRandomWorldGenForTrees() + public WorldGenAbstractTree func_150567_a(Random random) + { + return random.nextInt(8) == 0 ? new WorldGenPromisedTree2(false) : new WorldGenPromisedTree(false); + } + + @Override + //TODO: getBiomeGrassColor() + public int func_150558_b(int x, int y, int z) + { + return 7925125; + } + + /** + * Provides the basic foliage color based on the biome temperature and rainfall + */ + //@Override + public int getBiomeFoliageColor() + { + return 7925125; + } + + //@Override + public int getFogColour() + { + return 16754234; + } + + //@Override + public float getFogCloseness() + { + // TODO Auto-generated method stub + return 1.0F; + } + + @Override + public void decorate(World par1World, Random par2Random, int par3, int par4) + { + //super.decorate(par1World, par2Random, par3, par4); + int var5 = 100; + int var6; + int var7; + int var8; + + for (var5 = 0; var5 < 10; ++var5) + { + var6 = par3 + par2Random.nextInt(16); + var7 = par2Random.nextInt(60); + var8 = par4 + par2Random.nextInt(16); + theWorldGenerator.generate(par1World, par2Random, var6, var7, var8); + } + } + + /** + * takes temperature, returns color + */ + @Override + public int getSkyColorByTemp(float par1) + { + if (BOPConfigurationMisc.skyColors) + return BOPConfigurationMisc.promisedLandSkyColor; + else + { + par1 /= 3.0F; + + if (par1 < -1.0F) + { + par1 = -1.0F; + } + + if (par1 > 1.0F) + { + par1 = 1.0F; + } + + return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB(); + } + } +} diff --git a/src/main/java/biomesoplenty/common/biomes/promisedland/BiomeGenPromisedLandPlains.java b/src/main/java/biomesoplenty/common/biomes/promisedland/BiomeGenPromisedLandPlains.java new file mode 100644 index 000000000..c2683a0b6 --- /dev/null +++ b/src/main/java/biomesoplenty/common/biomes/promisedland/BiomeGenPromisedLandPlains.java @@ -0,0 +1,141 @@ +package biomesoplenty.common.biomes.promisedland; + +import java.awt.Color; +import java.util.Random; + + + + + + +//import worldcore.interfaces.IWCFog; +import net.minecraft.block.Block; +import net.minecraft.init.Blocks; +import net.minecraft.world.World; +import net.minecraft.world.biome.BiomeGenBase; +import net.minecraft.world.gen.feature.WorldGenerator; +import biomesoplenty.api.BOPBlockHelper; +import biomesoplenty.common.biomes.BOPBiome; +import biomesoplenty.common.world.decoration.BOPBiomeDecorator; +import biomesoplenty.common.configuration.BOPConfigurationMisc; +import biomesoplenty.common.world.features.WorldGenWaterSpring; + +public class BiomeGenPromisedLandPlains extends BOPBiome //implements IWCFog +{ + private WorldGenerator theWorldGenerator; + private BOPBiomeDecorator customBiomeDecorator; + + public BiomeGenPromisedLandPlains(int par1) + { + super(par1); + theBiomeDecorator = new BOPBiomeDecorator(); + customBiomeDecorator = (BOPBiomeDecorator)theBiomeDecorator; + topBlock = BOPBlockHelper.get("grass"); + fillerBlock = BOPBlockHelper.get("holyDirt"); + customBiomeDecorator.treesPerChunk = 0; + customBiomeDecorator.grassPerChunk = 0; + //customBiomeDecorator.holyTallGrassPerChunk = 999; + //customBiomeDecorator.promisedWillowPerChunk = 80; + //customBiomeDecorator.rainbowflowersPerChunk = 20; + customBiomeDecorator.generateLakes = false; + //customBiomeDecorator.pondsPerChunk = -100; + //customBiomeDecorator.hotSpringsPerChunk = 2; + //customBiomeDecorator.waterLakesPerChunk = 3; + //customBiomeDecorator.crystalsPerChunk = 25; + //customBiomeDecorator.crystals2PerChunk = 50; + //customBiomeDecorator.cloudsPerChunk = 1; + spawnableCreatureList.clear(); + spawnableWaterCreatureList.clear(); + spawnableMonsterList.clear(); + spawnableCaveCreatureList.clear(); + //customBiomeDecorator.generatePumpkins = false; + //customBiomeDecorator.generateMossySkystone = true; + //customBiomeDecorator.generateUndergroundLakes = false; + theWorldGenerator = new WorldGenWaterSpring(Blocks.water, 8); + + /*if (Loader.isModLoaded("TwilightForest")) + { + try { + this.spawnableMonsterList.add(new SpawnListEntry(Class.forName("twilightforest.entity.passive.EntityTFBird"), 2, 1, 3)); + this.spawnableMonsterList.add(new SpawnListEntry(Class.forName("twilightforest.entity.passive.EntityTFBunny"), 4, 1, 3)); + this.spawnableMonsterList.add(new SpawnListEntry(Class.forName("twilightforest.entity.passive.EntityTFSquirrel"), 4, 1, 2)); + } catch (ClassNotFoundException e) { + System.out.println("[BiomesOPlenty] There was an error while integrating Twilight Forest with Biomes O' Plenty!"); + e.printStackTrace(); + } + }*/ + } + + @Override + //TODO: getBiomeGrassColor() + public int func_150558_b(int x, int y, int z) + { + return 7925125; + } + + /** + * Provides the basic foliage color based on the biome temperature and rainfall + */ + //@Override + public int getBiomeFoliageColor() + { + return 7925125; + } + + //@Override + public int getFogColour() + { + return 16754234; + } + + //@Override + public float getFogCloseness() + { + // TODO Auto-generated method stub + return 1.0F; + } + + @Override + public void decorate(World par1World, Random par2Random, int par3, int par4) + { + //super.decorate(par1World, par2Random, par3, par4); + int var5 = 100; + int var6; + int var7; + int var8; + + for (var5 = 0; var5 < 10; ++var5) + { + var6 = par3 + par2Random.nextInt(16); + var7 = par2Random.nextInt(60); + var8 = par4 + par2Random.nextInt(16); + theWorldGenerator.generate(par1World, par2Random, var6, var7, var8); + } + } + + /** + * takes temperature, returns color + */ + @Override + public int getSkyColorByTemp(float par1) + { + if (BOPConfigurationMisc.skyColors) + return BOPConfigurationMisc.promisedLandSkyColor; + else + { + par1 /= 3.0F; + + if (par1 < -1.0F) + { + par1 = -1.0F; + } + + if (par1 > 1.0F) + { + par1 = 1.0F; + } + + return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB(); + } + } +} diff --git a/src/main/java/biomesoplenty/common/biomes/promisedland/BiomeGenPromisedLandSwamp.java b/src/main/java/biomesoplenty/common/biomes/promisedland/BiomeGenPromisedLandSwamp.java new file mode 100644 index 000000000..05662c78f --- /dev/null +++ b/src/main/java/biomesoplenty/common/biomes/promisedland/BiomeGenPromisedLandSwamp.java @@ -0,0 +1,156 @@ +package biomesoplenty.common.biomes.promisedland; + +import java.awt.Color; +import java.util.Random; + + + + + +//import worldcore.interfaces.IWCFog; +import net.minecraft.block.Block; +import net.minecraft.init.Blocks; +import net.minecraft.world.World; +import net.minecraft.world.biome.BiomeGenBase; +import net.minecraft.world.gen.feature.WorldGenAbstractTree; +import net.minecraft.world.gen.feature.WorldGenerator; +import biomesoplenty.api.BOPBlockHelper; +import biomesoplenty.common.biomes.BOPBiome; +import biomesoplenty.common.configuration.BOPConfigurationMisc; +import biomesoplenty.common.world.decoration.BOPBiomeDecorator; +import biomesoplenty.common.world.features.WorldGenWaterSpring; +import biomesoplenty.common.world.features.trees.WorldGenPromisedWillowTree; + +public class BiomeGenPromisedLandSwamp extends BOPBiome //implements IWCFog +{ + private WorldGenerator theWorldGenerator; + private BOPBiomeDecorator customBiomeDecorator; + + public BiomeGenPromisedLandSwamp(int par1) + { + super(par1); + theBiomeDecorator = new BOPBiomeDecorator(); + customBiomeDecorator = (BOPBiomeDecorator)theBiomeDecorator; + topBlock = BOPBlockHelper.get("grass"); + fillerBlock = BOPBlockHelper.get("holyDirt"); + customBiomeDecorator.treesPerChunk = 12; + customBiomeDecorator.grassPerChunk = 0; + //customBiomeDecorator.holyTallGrassPerChunk = 100; + //customBiomeDecorator.promisedWillowPerChunk = 40; + //customBiomeDecorator.pinkFlowersPerChunk = 6; + //customBiomeDecorator.rainbowflowersPerChunk = 5; + //customBiomeDecorator.blueMilksPerChunk = 15; + //customBiomeDecorator.toadstoolsPerChunk = 10; + //customBiomeDecorator.portobellosPerChunk = 5; + customBiomeDecorator.generateLakes = false; + //customBiomeDecorator.pondsPerChunk = -100; + //customBiomeDecorator.hotSpringsPerChunk = 5; + //customBiomeDecorator.waterLakesPerChunk = 15; + //customBiomeDecorator.crystalsPerChunk = 25; + //customBiomeDecorator.crystals2PerChunk = 50; + //customBiomeDecorator.cloudsPerChunk = 1; + spawnableCreatureList.clear(); + spawnableWaterCreatureList.clear(); + spawnableMonsterList.clear(); + spawnableCaveCreatureList.clear(); + //customBiomeDecorator.generatePumpkins = false; + //customBiomeDecorator.generateMossySkystone = true; + //customBiomeDecorator.generateUndergroundLakes = false; + theWorldGenerator = new WorldGenWaterSpring(Blocks.water, 8); + /*this.spawnableMonsterList.add(new SpawnListEntry(EntityPig.class, 4, 1, 4)); + + if (Loader.isModLoaded("TwilightForest")) + { + try { + this.spawnableMonsterList.add(new SpawnListEntry(Class.forName("twilightforest.entity.passive.EntityTFBird"), 2, 1, 3)); + this.spawnableMonsterList.add(new SpawnListEntry(Class.forName("twilightforest.entity.passive.EntityTFRaven"), 1, 1, 2)); + } catch (ClassNotFoundException e) { + System.out.println("[BiomesOPlenty] There was an error while integrating Twilight Forest with Biomes O' Plenty!"); + e.printStackTrace(); + } + }*/ + } + + /** + * Gets a WorldGen appropriate for this biome. + */ + @Override + //TODO: getRandomWorldGenForTrees() + public WorldGenAbstractTree func_150567_a(Random random) + { + return new WorldGenPromisedWillowTree(true); + } + + @Override + //TODO: getBiomeGrassColor() + public int func_150558_b(int x, int y, int z) + { + return 7925125; + } + + /** + * Provides the basic foliage color based on the biome temperature and rainfall + */ + //@Override + public int getBiomeFoliageColor() + { + return 7925125; + } + + //@Override + public int getFogColour() + { + return 16754234; + } + + //@Override + public float getFogCloseness() + { + // TODO Auto-generated method stub + return 1.0F; + } + + @Override + public void decorate(World par1World, Random par2Random, int par3, int par4) + { + //super.decorate(par1World, par2Random, par3, par4); + int var5 = 100; + int var6; + int var7; + int var8; + + for (var5 = 0; var5 < 10; ++var5) + { + var6 = par3 + par2Random.nextInt(16); + var7 = par2Random.nextInt(60); + var8 = par4 + par2Random.nextInt(16); + theWorldGenerator.generate(par1World, par2Random, var6, var7, var8); + } + } + + /** + * takes temperature, returns color + */ + @Override + public int getSkyColorByTemp(float par1) + { + if (BOPConfigurationMisc.skyColors) + return BOPConfigurationMisc.promisedLandSkyColor; + else + { + par1 /= 3.0F; + + if (par1 < -1.0F) + { + par1 = -1.0F; + } + + if (par1 > 1.0F) + { + par1 = 1.0F; + } + + return Color.getHSBColor(0.62222224F - par1 * 0.05F, 0.5F + par1 * 0.1F, 1.0F).getRGB(); + } + } +} diff --git a/src/main/java/biomesoplenty/common/blocks/BlockPromisedPortal.java b/src/main/java/biomesoplenty/common/blocks/BlockPromisedPortal.java index 5bfe42fd1..1b3ef82e4 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockPromisedPortal.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockPromisedPortal.java @@ -9,6 +9,7 @@ import net.minecraft.util.AxisAlignedBB; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import biomesoplenty.common.configuration.BOPConfigurationIDs; +import biomesoplenty.common.helpers.TeleporterPromised; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; @@ -74,15 +75,16 @@ public class BlockPromisedPortal extends Block { if (entity instanceof EntityPlayerMP) { - /*TODO: FEATURE EntityPlayerMP thePlayer = (EntityPlayerMP) par5Entity; - if (par5Entity.dimension != BOPConfigurationIDs.promisedLandDimID) + //TODO: FEATURE + EntityPlayerMP thePlayer = (EntityPlayerMP) entity; + if (entity.dimension != BOPConfigurationIDs.promisedLandDimID) { thePlayer.mcServer.getConfigurationManager().transferPlayerToDimension(thePlayer, BOPConfigurationIDs.promisedLandDimID, new TeleporterPromised(thePlayer.mcServer.worldServerForDimension(BOPConfigurationIDs.promisedLandDimID))); } else { thePlayer.mcServer.getConfigurationManager().transferPlayerToDimension(thePlayer, 0, new TeleporterPromised(thePlayer.mcServer.worldServerForDimension(0))); - }*/ + } } } } diff --git a/src/main/java/biomesoplenty/common/configuration/BOPConfigurationMisc.java b/src/main/java/biomesoplenty/common/configuration/BOPConfigurationMisc.java index fff2a2007..e181fb0ca 100644 --- a/src/main/java/biomesoplenty/common/configuration/BOPConfigurationMisc.java +++ b/src/main/java/biomesoplenty/common/configuration/BOPConfigurationMisc.java @@ -26,7 +26,7 @@ public class BOPConfigurationMisc public static boolean flowerbandCrafting; //public static boolean hotSpringsRegeneration; - //public static int promisedLandSkyColor; + public static int promisedLandSkyColor; public static int spawnSearchRadius; public static boolean onlySpawnOnBeaches; @@ -58,7 +58,7 @@ public class BOPConfigurationMisc if (spawnSearchRadius < 256) spawnSearchRadius = 256; onlySpawnOnBeaches = config.get("Spawn Settings", "Only Spawn On Beaches", true).getBoolean(true); - //promisedLandSkyColor = config.get("Hard-Coded Colors", "Promised Land Sky Color", 5883101, null).getInt(); + promisedLandSkyColor = config.get("Hard-Coded Colors", "Promised Land Sky Color", 5883101, null).getInt(); } catch (Exception e) { diff --git a/src/main/java/biomesoplenty/common/core/BOPBiomes.java b/src/main/java/biomesoplenty/common/core/BOPBiomes.java index 2993fb0b1..4594710a0 100644 --- a/src/main/java/biomesoplenty/common/core/BOPBiomes.java +++ b/src/main/java/biomesoplenty/common/core/BOPBiomes.java @@ -67,6 +67,9 @@ import biomesoplenty.common.biomes.BiomeGenVolcano; import biomesoplenty.common.biomes.BiomeGenWasteland; import biomesoplenty.common.biomes.BiomeGenWetland; import biomesoplenty.common.biomes.BiomeGenWoodland; +import biomesoplenty.common.biomes.promisedland.BiomeGenPromisedLandForest; +import biomesoplenty.common.biomes.promisedland.BiomeGenPromisedLandPlains; +import biomesoplenty.common.biomes.promisedland.BiomeGenPromisedLandSwamp; import biomesoplenty.common.configuration.BOPConfigurationIDs; import biomesoplenty.common.configuration.BOPConfigurationMisc; import biomesoplenty.common.world.WorldTypeBOP; @@ -169,6 +172,10 @@ public class BOPBiomes registerBiome(new BOPBiomeEntry(new BiomeGenWasteland(BOPConfigurationIDs.wastelandID).setBiomeName("Wasteland"), TemperatureType.HOT, 25)); registerBiome(new BOPBiomeEntry(new BiomeGenWetland(BOPConfigurationIDs.wetlandID).setBiomeName("Wetland"), TemperatureType.WARM, 50)); registerBiome(new BOPBiomeEntry(new BiomeGenWoodland(BOPConfigurationIDs.woodlandID).setBiomeName("Woodland"), TemperatureType.WARM, 50)); + + registerBiome(new BOPBiomeEntry(new BiomeGenPromisedLandForest(BOPConfigurationIDs.promisedLandForestID).setBiomeName("Wonderous Woods"), TemperatureType.WARM, 50)); + registerBiome(new BOPBiomeEntry(new BiomeGenPromisedLandPlains(BOPConfigurationIDs.promisedLandPlainsID).setBiomeName("Majestic Meadow"), TemperatureType.WARM, 50)); + registerBiome(new BOPBiomeEntry(new BiomeGenPromisedLandSwamp(BOPConfigurationIDs.promisedLandSwampID).setBiomeName("Blessed Bog"), TemperatureType.WARM, 50)); } private static void addSpawnBiomes() @@ -284,10 +291,10 @@ public class BOPBiomes //BiomeDictionary.registerBiomeType(BOPBiomeHelper.getBOPBiome("polar"), Type.FROZEN, Type.WATER); BiomeDictionary.registerBiomeType(BOPBiomeHelper.getBOPBiome("prairie"), Type.PLAINS); - //BiomeDictionary.registerBiomeType(BOPBiomeHelper.getBOPBiome("promisedLandForest"), Type.FOREST, Type.MAGICAL); - //BiomeDictionary.registerBiomeType(BOPBiomeHelper.getBOPBiome("promisedLandPlains"), Type.PLAINS, Type.MAGICAL); + BiomeDictionary.registerBiomeType(BOPBiomeHelper.getBOPBiome("promisedLandForest"), Type.FOREST, Type.MAGICAL); + BiomeDictionary.registerBiomeType(BOPBiomeHelper.getBOPBiome("promisedLandPlains"), Type.PLAINS, Type.MAGICAL); //BiomeDictionary.registerBiomeType(BOPBiomeHelper.getBOPBiome("promisedLandShrub"), Type.PLAINS, Type.FOREST, Type.MAGICAL); - //BiomeDictionary.registerBiomeType(BOPBiomeHelper.getBOPBiome("promisedLandSwamp"), Type.SWAMP, Type.MAGICAL); + BiomeDictionary.registerBiomeType(BOPBiomeHelper.getBOPBiome("promisedLandSwamp"), Type.SWAMP, Type.MAGICAL); BiomeDictionary.registerBiomeType(BOPBiomeHelper.getBOPBiome("quagmire"), Type.WASTELAND, Type.SWAMP); BiomeDictionary.registerBiomeType(BOPBiomeHelper.getBOPBiome("rainforest"), Type.JUNGLE, Type.HILLS, Type.FOREST); diff --git a/src/main/java/biomesoplenty/common/helpers/BiomeCacheBlockPromised.java b/src/main/java/biomesoplenty/common/helpers/BiomeCacheBlockPromised.java new file mode 100644 index 000000000..21bda9744 --- /dev/null +++ b/src/main/java/biomesoplenty/common/helpers/BiomeCacheBlockPromised.java @@ -0,0 +1,48 @@ +package biomesoplenty.common.helpers; + +import net.minecraft.world.biome.BiomeGenBase; + +public class BiomeCacheBlockPromised +{ + /** An array of chunk temperatures saved by this cache. */ + public float[] temperatureValues; + + /** An array of chunk rainfall values saved by this cache. */ + public float[] rainfallValues; + + /** The array of biome types stored in this BiomeCacheBlock. */ + public BiomeGenBase[] biomes; + + /** The x coordinate of the BiomeCacheBlock. */ + public int xPosition; + + /** The z coordinate of the BiomeCacheBlock. */ + public int zPosition; + + /** The last time this BiomeCacheBlock was accessed, in milliseconds. */ + public long lastAccessTime; + + /** The BiomeCache object that contains this BiomeCacheBlock */ + final BiomeCachePromised theBiomeCache; + + public BiomeCacheBlockPromised(BiomeCachePromised par1BiomeCache, int par2, int par3) + { + theBiomeCache = par1BiomeCache; + temperatureValues = new float[256]; + rainfallValues = new float[256]; + biomes = new BiomeGenBase[256]; + xPosition = par2; + zPosition = par3; + BiomeCachePromised.getChunkManager(par1BiomeCache).getTemperatures(temperatureValues, par2 << 4, par3 << 4, 16, 16); + BiomeCachePromised.getChunkManager(par1BiomeCache).getRainfall(rainfallValues, par2 << 4, par3 << 4, 16, 16); + BiomeCachePromised.getChunkManager(par1BiomeCache).getBiomeGenAt(biomes, par2 << 4, par3 << 4, 16, 16, false); + } + + /** + * Returns the BiomeGenBase related to the x, z position from the cache block. + */ + public BiomeGenBase getBiomeGenAt(int par1, int par2) + { + return biomes[par1 & 15 | (par2 & 15) << 4]; + } +} diff --git a/src/main/java/biomesoplenty/common/helpers/BiomeCachePromised.java b/src/main/java/biomesoplenty/common/helpers/BiomeCachePromised.java new file mode 100644 index 000000000..5faa0cfca --- /dev/null +++ b/src/main/java/biomesoplenty/common/helpers/BiomeCachePromised.java @@ -0,0 +1,104 @@ +package biomesoplenty.common.helpers; + +import java.util.ArrayList; +import java.util.List; + +import net.minecraft.util.LongHashMap; +import net.minecraft.world.biome.BiomeGenBase; +import biomesoplenty.common.world.WorldChunkManagerPromised; + +public class BiomeCachePromised +{ + /** Reference to the WorldChunkManager */ + private final WorldChunkManagerPromised chunkManager; + + /** The last time this BiomeCache was cleaned, in milliseconds. */ + private long lastCleanupTime = 0L; + + /** + * The map of keys to BiomeCacheBlocks. Keys are based on the chunk x, z coordinates as (x | z << 32). + */ + private LongHashMap cacheMap = new LongHashMap(); + + /** The list of cached BiomeCacheBlocks */ + @SuppressWarnings("rawtypes") + private List cache = new ArrayList(); + + public BiomeCachePromised(WorldChunkManagerPromised par1WorldChunkManager) + { + chunkManager = par1WorldChunkManager; + } + + /** + * Returns a biome cache block at location specified. + */ + @SuppressWarnings("unchecked") + public BiomeCacheBlockPromised getBiomeCacheBlock(int par1, int par2) + { + par1 >>= 4; + par2 >>= 4; + long var3 = par1 & 4294967295L | (par2 & 4294967295L) << 32; + BiomeCacheBlockPromised var5 = (BiomeCacheBlockPromised)cacheMap.getValueByKey(var3); + + if (var5 == null) + { + var5 = new BiomeCacheBlockPromised(this, par1, par2); + cacheMap.add(var3, var5); + cache.add(var5); + } + + var5.lastAccessTime = System.currentTimeMillis(); + return var5; + } + + /** + * Returns the BiomeGenBase related to the x, z position from the cache. + */ + public BiomeGenBase getBiomeGenAt(int par1, int par2) + { + return this.getBiomeCacheBlock(par1, par2).getBiomeGenAt(par1, par2); + } + + /** + * Removes BiomeCacheBlocks from this cache that haven't been accessed in at least 30 seconds. + */ + public void cleanupCache() + { + long var1 = System.currentTimeMillis(); + long var3 = var1 - lastCleanupTime; + + if (var3 > 7500L || var3 < 0L) + { + lastCleanupTime = var1; + + for (int var5 = 0; var5 < cache.size(); ++var5) + { + BiomeCacheBlockPromised var6 = (BiomeCacheBlockPromised)cache.get(var5); + long var7 = var1 - var6.lastAccessTime; + + if (var7 > 30000L || var7 < 0L) + { + cache.remove(var5--); + long var9 = var6.xPosition & 4294967295L | (var6.zPosition & 4294967295L) << 32; + cacheMap.remove(var9); + } + } + } + } + + /** + * Returns the array of cached biome types in the BiomeCacheBlock at the given location. + */ + public BiomeGenBase[] getCachedBiomes(int par1, int par2) + { + return this.getBiomeCacheBlock(par1, par2).biomes; + } + + /** + * Get the world chunk manager object for a biome list. + */ + static WorldChunkManagerPromised getChunkManager(BiomeCachePromised par0BiomeCache) + { + return par0BiomeCache.chunkManager; + } +} diff --git a/src/main/java/biomesoplenty/common/helpers/TeleporterPromised.java b/src/main/java/biomesoplenty/common/helpers/TeleporterPromised.java new file mode 100644 index 000000000..db7b4f8fd --- /dev/null +++ b/src/main/java/biomesoplenty/common/helpers/TeleporterPromised.java @@ -0,0 +1,255 @@ +package biomesoplenty.common.helpers; + +import java.util.ArrayList; +import java.util.List; + +import biomesoplenty.api.BOPBlockHelper; +import biomesoplenty.common.world.features.WorldGenPromisedLandPortal; +import net.minecraft.block.Block; +import net.minecraft.entity.Entity; +import net.minecraft.util.Direction; +import net.minecraft.util.LongHashMap; +import net.minecraft.util.MathHelper; +import net.minecraft.world.ChunkCoordIntPair; +import net.minecraft.world.Teleporter; +import net.minecraft.world.World; +import net.minecraft.world.WorldServer; + +public class TeleporterPromised extends Teleporter +{ + private final WorldServer worldServerInstance; + private final LongHashMap field_85191_c = new LongHashMap(); + @SuppressWarnings("rawtypes") + private final List field_85190_d = new ArrayList(); + private final boolean falling; + + public TeleporterPromised(WorldServer worldServer) + { + super(worldServer); + falling = false; + worldServerInstance = worldServer; + } + + public TeleporterPromised(WorldServer worldServer, boolean fall) + { + super(worldServer); + falling = fall; + worldServerInstance = worldServer; + } + + @Override + public void placeInPortal(Entity par1Entity, double x, double y, double z, float par8) + { + if (!falling) + { + if (!this.placeInExistingPortal(par1Entity, x, y, z, par8)) + { + this.makePortal(par1Entity); + this.placeInExistingPortal(par1Entity, x, y, z, par8); + } + } + else + { + par1Entity.setLocationAndAngles(x, 256.0, z, par1Entity.rotationYaw, 0.0F); + par1Entity.motionX = par1Entity.motionY = par1Entity.motionZ = 0.0D; + } + } + + @SuppressWarnings("unchecked") + @Override + public boolean placeInExistingPortal(Entity par1Entity, double x, double y, double z, float par8) + { + short var9 = 128; + double var10 = -1.0D; + int i = 0; + int j = 0; + int k = 0; + int var15 = MathHelper.floor_double(par1Entity.posX); + int var16 = MathHelper.floor_double(par1Entity.posZ); + long var17 = ChunkCoordIntPair.chunkXZ2Int(var15, var16); + boolean var19 = true; + double var27; + int var48; + + if (field_85191_c.containsItem(var17)) + { + PortalPosition portalposition = (PortalPosition) field_85191_c.getValueByKey(var17); + var10 = 0.0D; + i = portalposition.posX; + j = 131; + k = portalposition.posZ; + portalposition.lastUpdateTime = worldServerInstance.getTotalWorldTime(); + var19 = false; + } + else + { + for (var48 = var15 - var9; var48 <= var15 + var9; ++var48) + { + double var21 = var48 + 0.5D - par1Entity.posX; + + for (int var23 = var16 - var9; var23 <= var16 + var9; ++var23) + { + double var24 = var23 + 0.5D - par1Entity.posZ; + + for (int var26 = worldServerInstance.getActualHeight() - 1; var26 >= 0; --var26) + { + if (worldServerInstance.func_147439_a(var48, var26, var23) == BOPBlockHelper.get("promisedPortal")) + { + while (worldServerInstance.func_147439_a(var48, var26 - 1, var23) == BOPBlockHelper.get("promisedPortal")) + { + --var26; + } + + var27 = var26 + 0.5D - par1Entity.posY; + double var29 = var21 * var21 + var27 * var27 + var24 * var24; + + if (var10 < 0.0D || var29 < var10) + { + var10 = var29; + i = var48; + j = var26; + k = var23; + } + } + } + } + } + } + + if (var10 >= 0.0D) + { + if (var19) + { + field_85191_c.add(var17, new PortalPosition(i, j, k, worldServerInstance.getTotalWorldTime())); + field_85190_d.add(Long.valueOf(var17)); + } + + double var49 = i + 0.5D; + double var25 = j + 4.0D; + var27 = k + 0.5D; + int var50 = -1; + + if (worldServerInstance.func_147439_a(i - 1, j, k) == BOPBlockHelper.get("promisedPortal")) + { + var50 = 2; + } + + if (worldServerInstance.func_147439_a(i + 1, j, k) == BOPBlockHelper.get("promisedPortal")) + { + var50 = 0; + } + + if (worldServerInstance.func_147439_a(i, j, k - 1) == BOPBlockHelper.get("promisedPortal")) + { + var50 = 3; + } + + if (worldServerInstance.func_147439_a(i, j, k + 1) == BOPBlockHelper.get("promisedPortal")) + { + var50 = 1; + } + + int var30 = par1Entity.getTeleportDirection(); + + if (var50 > -1) + { + int var31 = Direction.rotateLeft[var50]; + int var32 = Direction.offsetX[var50]; + int var33 = Direction.offsetZ[var50]; + int var34 = Direction.offsetX[var31]; + int var35 = Direction.offsetZ[var31]; + boolean var36 = !isAirBlock(worldServerInstance, i + var32 + var34, j, k + var33 + var35) || !isAirBlock(worldServerInstance, i + var32 + var34, j + 1, k + var33 + var35); + boolean var37 = !isAirBlock(worldServerInstance, i + var32, j, k + var33) || !isAirBlock(worldServerInstance, i + var32, j + 1, k + var33); + + if (var36 && var37) + { + var50 = Direction.rotateOpposite[var50]; + var31 = Direction.rotateOpposite[var31]; + var32 = Direction.offsetX[var50]; + var33 = Direction.offsetZ[var50]; + var34 = Direction.offsetX[var31]; + var35 = Direction.offsetZ[var31]; + var48 = i - var34; + var49 -= var34; + int var22 = k - var35; + var27 -= var35; + var36 = !isAirBlock(worldServerInstance, var48 + var32 + var34, j, var22 + var33 + var35) || !isAirBlock(worldServerInstance, var48 + var32 + var34, j + 1, var22 + var33 + var35); + var37 = !isAirBlock(worldServerInstance, var48 + var32, j, var22 + var33) || !isAirBlock(worldServerInstance, var48 + var32, j + 1, var22 + var33); + } + + float var38 = 0.5F; + float var39 = 0.5F; + + if (!var36 && var37) + { + var38 = 1.0F; + } + else if (var36 && !var37) + { + var38 = 0.0F; + } + else if (var36 && var37) + { + var39 = 0.0F; + } + + var49 += var34 * var38 + var39 * var32; + var27 += var35 * var38 + var39 * var33; + float var40 = 0.0F; + float var41 = 0.0F; + float var42 = 0.0F; + float var43 = 0.0F; + + if (var50 == var30) + { + var40 = 1.0F; + var41 = 1.0F; + } + else if (var50 == Direction.rotateOpposite[var30]) + { + var40 = -1.0F; + var41 = -1.0F; + } + else if (var50 == Direction.rotateRight[var30]) + { + var42 = 1.0F; + var43 = -1.0F; + } + else + { + var42 = -1.0F; + var43 = 1.0F; + } + + double var44 = par1Entity.motionX; + double var46 = par1Entity.motionZ; + par1Entity.motionX = var44 * var40 + var46 * var43; + par1Entity.motionZ = var44 * var42 + var46 * var41; + par1Entity.rotationYaw = par8 - var30 * 90 + var50 * 90; + } + else + { + par1Entity.motionX = par1Entity.motionY = par1Entity.motionZ = 0.0D; + } + + par1Entity.setLocationAndAngles(var49 + 4, var25, var27, par1Entity.rotationYaw, par1Entity.rotationPitch); + return true; + } else + return false; + } + + @Override + public boolean makePortal(Entity par1Entity) + { + int i = MathHelper.floor_double(par1Entity.posX - 8 ); + int j = 130; + int k = MathHelper.floor_double(par1Entity.posZ - 8); + + new WorldGenPromisedLandPortal().generate(worldServerInstance, worldServerInstance.rand, i, j, k); + return true; + } + + boolean isAirBlock(World world, int x, int y, int z) { + return world.func_147439_a(x, y, z).isAir(world, x, y, z); + } +} \ No newline at end of file diff --git a/src/main/java/biomesoplenty/common/items/ItemBOPAncientStaff.java b/src/main/java/biomesoplenty/common/items/ItemBOPAncientStaff.java index 706b4a142..efc05b744 100644 --- a/src/main/java/biomesoplenty/common/items/ItemBOPAncientStaff.java +++ b/src/main/java/biomesoplenty/common/items/ItemBOPAncientStaff.java @@ -1,1127 +1,146 @@ -package biomesoplenty.common.items; - -import java.util.List; - -import net.minecraft.client.renderer.texture.IIconRegister; -import net.minecraft.creativetab.CreativeTabs; -import net.minecraft.item.Item; -import net.minecraft.item.ItemStack; -import net.minecraft.util.IIcon; -import biomesoplenty.BiomesOPlenty; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -public class ItemBOPAncientStaff extends Item -{ - private static String[] parts = {"ancientstaff", "staffhandle", "staffpole", "stafftopper", "ancientstaffbroken"}; - @SideOnly(Side.CLIENT) - private IIcon[] textures; - - public ItemBOPAncientStaff() - { - this.maxStackSize = 1; - - this.setCreativeTab(BiomesOPlenty.tabBiomesOPlenty); - } - - @Override - public boolean isFull3D() - { - return true; - } - - @Override - public boolean hasEffect(ItemStack itemStack, int pass) - { - if (itemStack.getItemDamage() == 0) - return true; - else - return false; - } - - @Override - public void registerIcons(IIconRegister iconRegister) - { - textures = new IIcon[parts.length]; - - for (int i = 0; i < parts.length; ++i) - { - textures[i] = iconRegister.registerIcon("biomesoplenty:" + parts[i]); - } - } - - @Override - public String getUnlocalizedName(ItemStack itemStack) - { - int meta = itemStack.getItemDamage(); - if (meta < 0 || meta >= parts.length) { - meta = 0; - } - - return super.getUnlocalizedName() + "." + parts[meta]; - } - - @Override - public IIcon getIconFromDamage(int meta) - { - if (meta < 0 || meta >= textures.length) - { - meta = 0; - } - - return textures[meta]; - } - - @Override - //TODO: public void getSubItems(Item item, CreativeTabs creativeTabs, List list) - public void func_150895_a(Item item, CreativeTabs creativeTabs, List list) - { - for (int meta = 0; meta < parts.length; ++meta) - { - list.add(new ItemStack(item, 1, meta)); - } - } - - /*TODO: FEATURE @Override - public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) - { - if (par3EntityPlayer.dimension == 0 || par3EntityPlayer.dimension == BOPConfigurationIDs.promisedLandDimID) - { - int i = MathHelper.floor_double(par3EntityPlayer.posX - 8); - int j = 145; - int k = MathHelper.floor_double(par3EntityPlayer.posZ - 8); - - boolean isAir = true; - - for (int iy = -1; iy < 4; iy++) - { - for (int ix = -2; ix < 3; ix++) { - for (int iz = -2; iz < 3; iz++) - if (!par2World.isAirBlock(i + ix, j + iy, k + iz)) - { - isAir = false; - } - } - } - - if (par1ItemStack.getItemDamage() == 0) - { - if (isAir) - { - - if (!par3EntityPlayer.worldObj.isRemote) - { - if (par3EntityPlayer.dimension == 0) - { - par3EntityPlayer.addChatMessage("phrase.bop.promisedPortalOverworld"); - } - else - { - par3EntityPlayer.addChatMessage("phrase.bop.promisedPortalOther"); - } - } - - - - boolean flag; - - par2World.setBlock(i + 1, j + 6, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 1, j + 7, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 1, j + 7, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 1, j + 7, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 1, j + 8, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 1, j + 8, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 1, j + 8, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 1, j + 9, k + 6, Block.grass.blockID); - par2World.setBlock(i + 1, j + 9, k + 7, Block.grass.blockID); - par2World.setBlock(i + 1, j + 9, k + 8, Block.grass.blockID); - par2World.setBlock(i + 2, j + 3, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 2, j + 4, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 2, j + 4, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 2, j + 5, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 2, j + 5, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 2, j + 6, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 2, j + 6, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 2, j + 6, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 2, j + 7, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 2, j + 7, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 2, j + 7, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 2, j + 7, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 2, j + 7, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 2, j + 7, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 2, j + 7, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 2, j + 8, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 2, j + 8, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 2, j + 8, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 2, j + 8, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 2, j + 8, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 2, j + 8, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 2, j + 8, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 2, j + 9, k + 4, Block.grass.blockID); - par2World.setBlock(i + 2, j + 9, k + 5, Block.grass.blockID); - par2World.setBlock(i + 2, j + 9, k + 6, Block.grass.blockID); - par2World.setBlock(i + 2, j + 9, k + 7, Block.grass.blockID); - par2World.setBlock(i + 2, j + 9, k + 8, Block.grass.blockID); - par2World.setBlock(i + 2, j + 9, k + 9, Block.grass.blockID); - par2World.setBlock(i + 2, j + 9, k + 10, Block.grass.blockID); - par2World.setBlock(i + 3, j + 3, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 4, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 5, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 6, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 6, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 6, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 6, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 6, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 6, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 7, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 7, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 7, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 7, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 7, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 7, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 7, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 7, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 7, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 8, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 8, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 8, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 8, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 8, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 8, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 8, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 8, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 8, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 9, k + 3, Block.grass.blockID); - par2World.setBlock(i + 3, j + 9, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 9, k + 5, Block.grass.blockID); - par2World.setBlock(i + 3, j + 9, k + 6, Block.grass.blockID); - par2World.setBlock(i + 3, j + 9, k + 7, Block.grass.blockID); - par2World.setBlock(i + 3, j + 9, k + 8, Block.grass.blockID); - par2World.setBlock(i + 3, j + 9, k + 9, Block.grass.blockID); - par2World.setBlock(i + 3, j + 9, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 3, j + 9, k + 11, Block.grass.blockID); - par2World.setBlock(i + 3, j + 10, k + 4, Block.wood.blockID); - par2World.setBlock(i + 3, j + 10, k + 5, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 3, j + 10, k + 6, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 3, j + 10, k + 7, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 3, j + 10, k + 8, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 3, j + 10, k + 9, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 3, j + 10, k + 10, Block.wood.blockID); - par2World.setBlock(i + 3, j + 11, k + 4, Block.leaves.blockID, 4, 2); - par2World.setBlock(i + 3, j + 11, k + 10, Block.leaves.blockID, 4, 2); - par2World.setBlock(i + 3, j + 12, k + 4, Block.leaves.blockID, 4, 2); - par2World.setBlock(i + 3, j + 12, k + 10, Block.leaves.blockID, 4, 2); - par2World.setBlock(i + 3, j + 14, k + 4, Block.stairsNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 3, j + 14, k + 5, Block.stairsNetherQuartz.blockID); - par2World.setBlock(i + 3, j + 14, k + 6, Block.stairsNetherQuartz.blockID); - par2World.setBlock(i + 3, j + 14, k + 7, Block.stairsNetherQuartz.blockID); - par2World.setBlock(i + 3, j + 14, k + 8, Block.stairsNetherQuartz.blockID); - par2World.setBlock(i + 3, j + 14, k + 9, Block.stairsNetherQuartz.blockID); - par2World.setBlock(i + 3, j + 14, k + 10, Block.stairsNetherQuartz.blockID, 3, 2); - par2World.setBlock(i + 4, j + 5, k + 2, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 5, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 5, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 5, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 6, k + 2, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 6, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 6, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 6, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 6, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 6, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 6, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 6, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 6, k + 12, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 7, k + 2, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 7, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 7, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 7, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 7, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 7, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 7, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 7, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 7, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 7, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 7, k + 12, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 8, k + 2, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 8, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 8, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 8, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 8, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 8, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 8, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 8, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 8, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 8, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 8, k + 12, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 9, k + 2, Block.grass.blockID); - par2World.setBlock(i + 4, j + 9, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 9, k + 4, Block.grass.blockID); - par2World.setBlock(i + 4, j + 9, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 9, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 9, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 9, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 9, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 9, k + 10, Block.grass.blockID); - par2World.setBlock(i + 4, j + 9, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 4, j + 9, k + 12, Block.grass.blockID); - par2World.setBlock(i + 4, j + 10, k + 3, Block.wood.blockID); - par2World.setBlock(i + 4, j + 10, k + 4, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 4, j + 10, k + 5, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 4, j + 10, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 4, j + 10, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 4, j + 10, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 4, j + 10, k + 9, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 4, j + 10, k + 10, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 4, j + 10, k + 11, Block.wood.blockID); - par2World.setBlock(i + 4, j + 11, k + 3, Block.leaves.blockID, 4, 2); - par2World.setBlock(i + 4, j + 11, k + 5, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 4, j + 11, k + 9, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 4, j + 11, k + 11, Block.leaves.blockID, 4, 2); - par2World.setBlock(i + 4, j + 12, k + 3, Block.leaves.blockID, 4, 2); - par2World.setBlock(i + 4, j + 12, k + 5, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 4, j + 12, k + 9, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 4, j + 12, k + 11, Block.leaves.blockID, 4, 2); - par2World.setBlock(i + 4, j + 13, k + 5, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 4, j + 13, k + 9, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 4, j + 14, k + 3, Block.stairsNetherQuartz.blockID); - par2World.setBlock(i + 4, j + 14, k + 4, Block.stairsNetherQuartz.blockID); - par2World.setBlock(i + 4, j + 14, k + 5, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 4, j + 14, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 4, j + 14, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 4, j + 14, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 4, j + 14, k + 9, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 4, j + 14, k + 10, Block.stairsNetherQuartz.blockID, 3, 2); - par2World.setBlock(i + 4, j + 14, k + 11, Block.stairsNetherQuartz.blockID); - par2World.setBlock(i + 4, j + 15, k + 5, Block.stairsNetherQuartz.blockID); - par2World.setBlock(i + 4, j + 15, k + 6, Block.stairsNetherQuartz.blockID); - par2World.setBlock(i + 4, j + 15, k + 7, Block.stairsNetherQuartz.blockID); - par2World.setBlock(i + 4, j + 15, k + 8, Block.stairsNetherQuartz.blockID); - par2World.setBlock(i + 4, j + 15, k + 9, Block.stairsNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 2, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 3, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 4, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 4, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 4, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 4, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 5, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 5, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 5, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 5, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 5, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 5, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 5, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 6, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 6, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 6, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 6, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 6, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 6, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 6, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 6, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 6, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 7, k + 2, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 7, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 7, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 7, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 7, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 7, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 7, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 7, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 7, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 7, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 7, k + 12, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 8, k + 2, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 8, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 8, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 8, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 8, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 8, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 8, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 8, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 8, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 8, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 8, k + 12, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 9, k + 2, Block.grass.blockID); - par2World.setBlock(i + 5, j + 9, k + 3, Block.grass.blockID); - par2World.setBlock(i + 5, j + 9, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 9, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 9, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 9, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 9, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 9, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 9, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 5, j + 9, k + 11, Block.grass.blockID); - par2World.setBlock(i + 5, j + 9, k + 12, Block.grass.blockID); - par2World.setBlock(i + 5, j + 10, k + 3, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 5, j + 10, k + 4, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 5, j + 10, k + 5, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 10, k + 6, Block.stairsNetherQuartz.blockID, 1, 2); - par2World.setBlock(i + 5, j + 10, k + 7, Block.stairsNetherQuartz.blockID, 1, 2); - par2World.setBlock(i + 5, j + 10, k + 8, Block.stairsNetherQuartz.blockID, 1, 2); - par2World.setBlock(i + 5, j + 10, k + 9, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 10, k + 10, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 5, j + 10, k + 11, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 5, j + 11, k + 4, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 5, j + 11, k + 10, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 5, j + 12, k + 4, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 5, j + 12, k + 10, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 5, j + 13, k + 4, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 5, j + 13, k + 10, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 5, j + 14, k + 3, Block.stairsNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 5, j + 14, k + 4, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 14, k + 10, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 14, k + 11, Block.stairsNetherQuartz.blockID, 3, 2); - par2World.setBlock(i + 5, j + 15, k + 4, Block.stairsNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 5, j + 15, k + 5, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 15, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 15, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 15, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 15, k + 9, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 15, k + 10, Block.stairsNetherQuartz.blockID, 3, 2); - par2World.setBlock(i + 5, j + 16, k + 5, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 16, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 16, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 16, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 16, k + 9, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 17, k + 5, Block.stairsNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 5, j + 17, k + 6, Block.stairsNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 17, k + 7, Block.stairsNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 17, k + 8, Block.stairsNetherQuartz.blockID); - par2World.setBlock(i + 5, j + 17, k + 9, Block.stairsNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 3, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 4, k + 2, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 4, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 4, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 4, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 5, k + 2, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 5, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 5, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 5, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 5, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 5, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 5, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 5, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 5, k + 13, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 6, k + 2, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 6, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 6, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 6, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 6, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 6, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 6, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 6, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 6, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 6, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 6, k + 13, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 7, k + 1, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 7, k + 2, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 7, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 7, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 7, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 7, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 7, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 7, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 7, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 7, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 7, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 7, k + 12, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 7, k + 13, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 8, k + 1, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 8, k + 2, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 8, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 8, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 8, k + 5, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 8, k + 6, Blocks.promisedPortal.get().blockID); - par2World.setBlock(i + 6, j + 8, k + 7, Blocks.promisedPortal.get().blockID); - par2World.setBlock(i + 6, j + 8, k + 8, Blocks.promisedPortal.get().blockID); - par2World.setBlock(i + 6, j + 8, k + 9, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 8, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 8, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 8, k + 12, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 8, k + 13, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 9, k + 1, Block.grass.blockID); - par2World.setBlock(i + 6, j + 9, k + 2, Block.grass.blockID); - par2World.setBlock(i + 6, j + 9, k + 3, Block.grass.blockID); - par2World.setBlock(i + 6, j + 9, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 9, k + 5, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 9, k + 9, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 9, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 6, j + 9, k + 11, Block.grass.blockID); - par2World.setBlock(i + 6, j + 9, k + 12, Block.grass.blockID); - par2World.setBlock(i + 6, j + 9, k + 13, Block.grass.blockID); - par2World.setBlock(i + 6, j + 10, k + 3, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 6, j + 10, k + 4, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 10, k + 5, Block.stairsNetherQuartz.blockID, 3, 2); - par2World.setBlock(i + 6, j + 10, k + 9, Block.stairsNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 6, j + 10, k + 10, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 10, k + 11, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 6, j + 14, k + 3, Block.stairsNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 6, j + 14, k + 4, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 14, k + 10, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 14, k + 11, Block.stairsNetherQuartz.blockID, 3, 2); - par2World.setBlock(i + 6, j + 15, k + 4, Block.stairsNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 6, j + 15, k + 5, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 15, k + 9, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 15, k + 10, Block.stairsNetherQuartz.blockID, 3, 2); - par2World.setBlock(i + 6, j + 16, k + 5, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 16, k + 9, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 17, k + 5, Block.stairsNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 6, j + 17, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 17, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 17, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 17, k + 9, Block.stairsNetherQuartz.blockID, 3, 2); - par2World.setBlock(i + 6, j + 18, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 18, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 18, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 19, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 19, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 19, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 20, k + 6, Block.stairsNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 20, k + 7, Block.stairsNetherQuartz.blockID); - par2World.setBlock(i + 6, j + 20, k + 8, Block.stairsNetherQuartz.blockID, 3, 2); - par2World.setBlock(i + 7, j + 1, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 2, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 3, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 3, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 3, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 3, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 4, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 4, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 4, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 4, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 4, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 4, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 5, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 5, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 5, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 5, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 5, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 5, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 5, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 6, k + 2, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 6, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 6, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 6, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 6, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 6, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 6, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 6, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 6, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 6, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 6, k + 12, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 7, k + 1, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 7, k + 2, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 7, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 7, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 7, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 7, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 7, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 7, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 7, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 7, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 7, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 7, k + 12, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 7, k + 13, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 8, k + 1, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 8, k + 2, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 8, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 8, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 8, k + 5, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 8, k + 6, Blocks.promisedPortal.get().blockID); - par2World.setBlock(i + 7, j + 8, k + 7, Blocks.promisedPortal.get().blockID); - par2World.setBlock(i + 7, j + 8, k + 8, Blocks.promisedPortal.get().blockID); - par2World.setBlock(i + 7, j + 8, k + 9, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 8, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 8, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 8, k + 12, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 8, k + 13, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 9, k + 1, Block.grass.blockID); - par2World.setBlock(i + 7, j + 9, k + 2, Block.grass.blockID); - par2World.setBlock(i + 7, j + 9, k + 3, Block.grass.blockID); - par2World.setBlock(i + 7, j + 9, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 9, k + 5, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 9, k + 9, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 9, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 7, j + 9, k + 11, Block.grass.blockID); - par2World.setBlock(i + 7, j + 9, k + 12, Block.grass.blockID); - par2World.setBlock(i + 7, j + 9, k + 13, Block.grass.blockID); - par2World.setBlock(i + 7, j + 10, k + 3, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 7, j + 10, k + 4, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 10, k + 5, Block.stairsNetherQuartz.blockID, 3, 2); - par2World.setBlock(i + 7, j + 10, k + 9, Block.stairsNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 7, j + 10, k + 10, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 10, k + 11, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 7, j + 14, k + 3, Block.stairsNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 7, j + 14, k + 4, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 14, k + 10, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 14, k + 11, Block.stairsNetherQuartz.blockID, 3, 2); - par2World.setBlock(i + 7, j + 15, k + 4, Block.stairsNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 7, j + 15, k + 5, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 15, k + 9, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 15, k + 10, Block.stairsNetherQuartz.blockID, 3, 2); - par2World.setBlock(i + 7, j + 16, k + 5, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 16, k + 9, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 17, k + 5, Block.stairsNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 7, j + 17, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 17, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 17, k + 9, Block.stairsNetherQuartz.blockID, 3, 2); - par2World.setBlock(i + 7, j + 18, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 18, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 19, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 19, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 20, k + 6, Block.stairsNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 7, j + 20, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 20, k + 8, Block.stairsNetherQuartz.blockID, 3, 2); - par2World.setBlock(i + 7, j + 21, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 22, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 7, j + 23, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 3, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 3, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 4, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 4, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 4, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 4, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 5, k + 1, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 5, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 5, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 5, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 5, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 5, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 5, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 5, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 6, k + 1, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 6, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 6, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 6, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 6, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 6, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 6, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 6, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 6, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 6, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 7, k + 1, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 7, k + 2, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 7, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 7, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 7, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 7, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 7, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 7, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 7, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 7, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 7, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 7, k + 12, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 7, k + 13, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 8, k + 1, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 8, k + 2, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 8, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 8, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 8, k + 5, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 8, k + 6, Blocks.promisedPortal.get().blockID); - par2World.setBlock(i + 8, j + 8, k + 7, Blocks.promisedPortal.get().blockID); - par2World.setBlock(i + 8, j + 8, k + 8, Blocks.promisedPortal.get().blockID); - par2World.setBlock(i + 8, j + 8, k + 9, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 8, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 8, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 8, k + 12, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 8, k + 13, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 9, k + 1, Block.grass.blockID); - par2World.setBlock(i + 8, j + 9, k + 2, Block.grass.blockID); - par2World.setBlock(i + 8, j + 9, k + 3, Block.grass.blockID); - par2World.setBlock(i + 8, j + 9, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 9, k + 5, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 9, k + 9, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 9, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 8, j + 9, k + 11, Block.grass.blockID); - par2World.setBlock(i + 8, j + 9, k + 12, Block.grass.blockID); - par2World.setBlock(i + 8, j + 9, k + 13, Block.grass.blockID); - par2World.setBlock(i + 8, j + 10, k + 3, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 8, j + 10, k + 4, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 10, k + 5, Block.stairsNetherQuartz.blockID, 3, 2); - par2World.setBlock(i + 8, j + 10, k + 9, Block.stairsNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 8, j + 10, k + 10, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 10, k + 11, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 8, j + 14, k + 3, Block.stairsNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 8, j + 14, k + 4, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 14, k + 10, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 14, k + 11, Block.stairsNetherQuartz.blockID, 3, 2); - par2World.setBlock(i + 8, j + 15, k + 4, Block.stairsNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 8, j + 15, k + 5, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 15, k + 9, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 15, k + 10, Block.stairsNetherQuartz.blockID, 3, 2); - par2World.setBlock(i + 8, j + 16, k + 5, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 16, k + 9, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 17, k + 5, Block.stairsNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 8, j + 17, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 17, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 17, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 17, k + 9, Block.stairsNetherQuartz.blockID, 3, 2); - par2World.setBlock(i + 8, j + 18, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 18, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 18, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 19, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 19, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 19, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 8, j + 20, k + 6, Block.stairsNetherQuartz.blockID, 1, 2); - par2World.setBlock(i + 8, j + 20, k + 7, Block.stairsNetherQuartz.blockID, 1, 2); - par2World.setBlock(i + 8, j + 20, k + 8, Block.stairsNetherQuartz.blockID, 3, 2); - par2World.setBlock(i + 9, j + 4, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 5, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 5, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 5, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 5, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 5, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 5, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 5, k + 12, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 6, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 6, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 6, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 6, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 6, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 6, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 6, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 6, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 6, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 6, k + 12, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 7, k + 2, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 7, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 7, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 7, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 7, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 7, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 7, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 7, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 7, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 7, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 7, k + 12, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 8, k + 2, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 8, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 8, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 8, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 8, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 9, j + 8, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 9, j + 8, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 9, j + 8, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 8, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 8, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 8, k + 12, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 9, k + 2, Block.grass.blockID); - par2World.setBlock(i + 9, j + 9, k + 3, Block.grass.blockID); - par2World.setBlock(i + 9, j + 9, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 9, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 9, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 9, j + 9, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 9, j + 9, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 9, j + 9, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 9, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 9, j + 9, k + 11, Block.grass.blockID); - par2World.setBlock(i + 9, j + 9, k + 12, Block.grass.blockID); - par2World.setBlock(i + 9, j + 10, k + 3, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 9, j + 10, k + 4, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 9, j + 10, k + 5, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 9, j + 10, k + 6, Block.stairsNetherQuartz.blockID); - par2World.setBlock(i + 9, j + 10, k + 7, Block.stairsNetherQuartz.blockID); - par2World.setBlock(i + 9, j + 10, k + 8, Block.stairsNetherQuartz.blockID); - par2World.setBlock(i + 9, j + 10, k + 9, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 9, j + 10, k + 10, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 9, j + 10, k + 11, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 9, j + 11, k + 4, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 9, j + 11, k + 10, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 9, j + 12, k + 4, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 9, j + 12, k + 10, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 9, j + 13, k + 4, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 9, j + 13, k + 10, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 9, j + 14, k + 3, Block.stairsNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 9, j + 14, k + 4, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 9, j + 14, k + 10, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 9, j + 14, k + 11, Block.stairsNetherQuartz.blockID, 3, 2); - par2World.setBlock(i + 9, j + 15, k + 4, Block.stairsNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 9, j + 15, k + 5, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 9, j + 15, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 9, j + 15, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 9, j + 15, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 9, j + 15, k + 9, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 9, j + 15, k + 10, Block.stairsNetherQuartz.blockID, 3, 2); - par2World.setBlock(i + 9, j + 16, k + 5, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 9, j + 16, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 9, j + 16, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 9, j + 16, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 9, j + 16, k + 9, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 9, j + 17, k + 5, Block.stairsNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 9, j + 17, k + 6, Block.stairsNetherQuartz.blockID, 1, 2); - par2World.setBlock(i + 9, j + 17, k + 7, Block.stairsNetherQuartz.blockID, 1, 2); - par2World.setBlock(i + 9, j + 17, k + 8, Block.stairsNetherQuartz.blockID, 1, 2); - par2World.setBlock(i + 9, j + 17, k + 9, Block.stairsNetherQuartz.blockID, 3, 2); - par2World.setBlock(i + 10, j + 4, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 5, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 5, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 5, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 5, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 6, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 6, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 6, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 6, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 6, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 6, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 6, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 7, k + 2, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 7, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 7, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 7, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 7, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 7, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 7, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 7, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 7, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 7, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 7, k + 12, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 8, k + 2, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 8, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 8, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 8, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 8, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 8, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 8, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 8, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 8, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 8, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 8, k + 12, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 9, k + 2, Block.grass.blockID); - par2World.setBlock(i + 10, j + 9, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 9, k + 4, Block.grass.blockID); - par2World.setBlock(i + 10, j + 9, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 9, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 9, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 9, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 9, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 9, k + 10, Block.grass.blockID); - par2World.setBlock(i + 10, j + 9, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 10, j + 9, k + 12, Block.grass.blockID); - par2World.setBlock(i + 10, j + 10, k + 3, Block.wood.blockID); - par2World.setBlock(i + 10, j + 10, k + 4, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 10, j + 10, k + 5, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 10, j + 10, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 10, j + 10, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 10, j + 10, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 10, j + 10, k + 9, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 10, j + 10, k + 10, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 10, j + 10, k + 11, Block.wood.blockID); - par2World.setBlock(i + 10, j + 11, k + 3, Block.leaves.blockID, 4, 2); - par2World.setBlock(i + 10, j + 11, k + 5, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 10, j + 11, k + 9, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 10, j + 11, k + 11, Block.leaves.blockID, 4, 2); - par2World.setBlock(i + 10, j + 12, k + 3, Block.leaves.blockID, 4, 2); - par2World.setBlock(i + 10, j + 12, k + 5, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 10, j + 12, k + 9, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 10, j + 12, k + 11, Block.leaves.blockID, 4, 2); - par2World.setBlock(i + 10, j + 13, k + 5, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 10, j + 13, k + 9, Block.blockNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 10, j + 14, k + 3, Block.stairsNetherQuartz.blockID, 1, 2); - par2World.setBlock(i + 10, j + 14, k + 4, Block.stairsNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 10, j + 14, k + 5, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 10, j + 14, k + 6, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 10, j + 14, k + 7, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 10, j + 14, k + 8, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 10, j + 14, k + 9, Block.blockNetherQuartz.blockID); - par2World.setBlock(i + 10, j + 14, k + 10, Block.stairsNetherQuartz.blockID, 1, 2); - par2World.setBlock(i + 10, j + 14, k + 11, Block.stairsNetherQuartz.blockID, 1, 2); - par2World.setBlock(i + 10, j + 15, k + 5, Block.stairsNetherQuartz.blockID, 1, 2); - par2World.setBlock(i + 10, j + 15, k + 6, Block.stairsNetherQuartz.blockID, 1, 2); - par2World.setBlock(i + 10, j + 15, k + 7, Block.stairsNetherQuartz.blockID, 1, 2); - par2World.setBlock(i + 10, j + 15, k + 8, Block.stairsNetherQuartz.blockID, 1, 2); - par2World.setBlock(i + 10, j + 15, k + 9, Block.stairsNetherQuartz.blockID, 1, 2); - par2World.setBlock(i + 11, j + 3, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 4, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 4, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 5, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 5, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 6, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 6, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 6, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 6, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 6, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 6, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 6, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 7, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 7, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 7, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 7, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 7, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 7, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 7, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 7, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 7, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 8, k + 3, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 8, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 8, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 8, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 8, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 8, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 8, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 8, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 8, k + 11, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 9, k + 3, Block.grass.blockID); - par2World.setBlock(i + 11, j + 9, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 9, k + 5, Block.grass.blockID); - par2World.setBlock(i + 11, j + 9, k + 6, Block.grass.blockID); - par2World.setBlock(i + 11, j + 9, k + 7, Block.grass.blockID); - par2World.setBlock(i + 11, j + 9, k + 8, Block.grass.blockID); - par2World.setBlock(i + 11, j + 9, k + 9, Block.grass.blockID); - par2World.setBlock(i + 11, j + 9, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 11, j + 9, k + 11, Block.grass.blockID); - par2World.setBlock(i + 11, j + 10, k + 4, Block.wood.blockID); - par2World.setBlock(i + 11, j + 10, k + 5, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 11, j + 10, k + 6, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 11, j + 10, k + 7, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 11, j + 10, k + 8, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 11, j + 10, k + 9, Block.stoneSingleSlab.blockID, 7, 2); - par2World.setBlock(i + 11, j + 10, k + 10, Block.wood.blockID); - par2World.setBlock(i + 11, j + 11, k + 4, Block.leaves.blockID, 4, 2); - par2World.setBlock(i + 11, j + 11, k + 10, Block.leaves.blockID, 4, 2); - par2World.setBlock(i + 11, j + 12, k + 4, Block.leaves.blockID, 4, 2); - par2World.setBlock(i + 11, j + 12, k + 10, Block.leaves.blockID, 4, 2); - par2World.setBlock(i + 11, j + 14, k + 4, Block.stairsNetherQuartz.blockID, 2, 2); - par2World.setBlock(i + 11, j + 14, k + 5, Block.stairsNetherQuartz.blockID, 1, 2); - par2World.setBlock(i + 11, j + 14, k + 6, Block.stairsNetherQuartz.blockID, 1, 2); - par2World.setBlock(i + 11, j + 14, k + 7, Block.stairsNetherQuartz.blockID, 1, 2); - par2World.setBlock(i + 11, j + 14, k + 8, Block.stairsNetherQuartz.blockID, 1, 2); - par2World.setBlock(i + 11, j + 14, k + 9, Block.stairsNetherQuartz.blockID, 1, 2); - par2World.setBlock(i + 11, j + 14, k + 10, Block.stairsNetherQuartz.blockID, 3, 2); - par2World.setBlock(i + 12, j + 2, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 12, j + 3, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 12, j + 4, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 12, j + 5, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 12, j + 6, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 12, j + 6, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 12, j + 6, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 12, j + 7, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 12, j + 7, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 12, j + 7, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 12, j + 7, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 12, j + 7, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 12, j + 7, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 12, j + 7, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 12, j + 8, k + 4, Block.dirt.blockID); - par2World.setBlock(i + 12, j + 8, k + 5, Block.dirt.blockID); - par2World.setBlock(i + 12, j + 8, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 12, j + 8, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 12, j + 8, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 12, j + 8, k + 9, Block.dirt.blockID); - par2World.setBlock(i + 12, j + 8, k + 10, Block.dirt.blockID); - par2World.setBlock(i + 12, j + 9, k + 4, Block.grass.blockID); - par2World.setBlock(i + 12, j + 9, k + 5, Block.grass.blockID); - par2World.setBlock(i + 12, j + 9, k + 6, Block.grass.blockID); - par2World.setBlock(i + 12, j + 9, k + 7, Block.grass.blockID); - par2World.setBlock(i + 12, j + 9, k + 8, Block.grass.blockID); - par2World.setBlock(i + 12, j + 9, k + 9, Block.grass.blockID); - par2World.setBlock(i + 12, j + 9, k + 10, Block.grass.blockID); - par2World.setBlock(i + 13, j + 5, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 13, j + 6, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 13, j + 7, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 13, j + 7, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 13, j + 7, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 13, j + 8, k + 6, Block.dirt.blockID); - par2World.setBlock(i + 13, j + 8, k + 7, Block.dirt.blockID); - par2World.setBlock(i + 13, j + 8, k + 8, Block.dirt.blockID); - par2World.setBlock(i + 13, j + 9, k + 6, Block.grass.blockID); - par2World.setBlock(i + 13, j + 9, k + 7, Block.grass.blockID); - par2World.setBlock(i + 13, j + 9, k + 8, Block.grass.blockID); - par2World.setBlock(i + 0, j + 0, k + 8, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 0, j + 1, k + 8, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 0, j + 2, k + 8, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 0, j + 3, k + 6, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 0, j + 3, k + 8, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 0, j + 4, k + 6, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 0, j + 4, k + 8, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 0, j + 5, k + 6, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 0, j + 5, k + 7, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 0, j + 5, k + 8, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 0, j + 6, k + 6, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 0, j + 6, k + 7, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 0, j + 6, k + 8, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 0, j + 7, k + 6, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 0, j + 7, k + 7, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 0, j + 7, k + 8, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 0, j + 8, k + 6, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 0, j + 8, k + 7, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 0, j + 8, k + 8, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 0, j + 9, k + 6, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 0, j + 9, k + 7, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 0, j + 9, k + 8, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 1, j + 10, k + 6, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 1, j + 10, k + 7, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 1, j + 10, k + 8, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 2, j + 2, k + 3, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 2, j + 2, k + 11, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 2, j + 3, k + 3, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 2, j + 3, k + 11, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 2, j + 4, k + 3, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 2, j + 4, k + 11, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 2, j + 5, k + 3, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 2, j + 5, k + 11, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 2, j + 6, k + 3, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 2, j + 6, k + 11, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 2, j + 7, k + 3, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 2, j + 7, k + 11, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 2, j + 8, k + 3, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 2, j + 8, k + 11, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 2, j + 9, k + 3, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 2, j + 9, k + 11, Blocks.ivy.get().blockID, 8, 2); - par2World.setBlock(i + 2, j + 10, k + 4, Block.plantRed.blockID); - par2World.setBlock(i + 2, j + 10, k + 5, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 2, j + 10, k + 6, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 2, j + 10, k + 7, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 2, j + 10, k + 8, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 2, j + 10, k + 9, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 2, j + 10, k + 10, Block.plantRed.blockID); - par2World.setBlock(i + 3, j + 5, k + 2, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 3, j + 5, k + 12, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 3, j + 6, k + 2, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 3, j + 6, k + 12, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 3, j + 7, k + 2, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 3, j + 7, k + 12, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 3, j + 8, k + 2, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 3, j + 8, k + 12, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 3, j + 9, k + 2, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 3, j + 9, k + 12, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 3, j + 10, k + 3, Block.plantYellow.blockID); - par2World.setBlock(i + 3, j + 10, k + 11, Block.plantYellow.blockID); - par2World.setBlock(i + 4, j + 10, k + 2, Block.plantRed.blockID); - par2World.setBlock(i + 4, j + 10, k + 12, Block.plantRed.blockID); - par2World.setBlock(i + 5, j + 10, k + 2, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 5, j + 10, k + 12, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 6, j + 0, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 6, j + 1, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 6, j + 2, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 6, j + 3, k + 0, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 6, j + 3, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 6, j + 4, k + 0, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 6, j + 4, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 6, j + 5, k + 0, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 6, j + 5, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 6, j + 6, k + 0, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 6, j + 6, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 6, j + 7, k + 0, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 6, j + 7, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 6, j + 8, k + 0, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 6, j + 8, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 6, j + 9, k + 0, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 6, j + 9, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 6, j + 10, k + 1, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 6, j + 10, k + 2, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 6, j + 10, k + 12, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 6, j + 10, k + 13, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 7, j + 1, k + 0, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 7, j + 1, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 7, j + 2, k + 0, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 7, j + 2, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 7, j + 3, k + 0, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 7, j + 3, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 7, j + 4, k + 0, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 7, j + 4, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 7, j + 5, k + 0, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 7, j + 5, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 7, j + 6, k + 0, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 7, j + 6, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 7, j + 7, k + 0, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 7, j + 7, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 7, j + 8, k + 0, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 7, j + 8, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 7, j + 9, k + 0, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 7, j + 9, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 7, j + 10, k + 1, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 7, j + 10, k + 2, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 7, j + 10, k + 12, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 7, j + 10, k + 13, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 8, j + 3, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 8, j + 4, k + 0, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 8, j + 4, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 8, j + 5, k + 0, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 8, j + 5, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 8, j + 6, k + 0, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 8, j + 6, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 8, j + 7, k + 0, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 8, j + 7, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 8, j + 8, k + 0, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 8, j + 8, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 8, j + 9, k + 0, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 8, j + 9, k + 14, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 8, j + 10, k + 1, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 8, j + 10, k + 2, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 8, j + 10, k + 12, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 8, j + 10, k + 13, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 9, j + 10, k + 2, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 9, j + 10, k + 12, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 10, j + 10, k + 2, Block.plantRed.blockID); - par2World.setBlock(i + 10, j + 10, k + 12, Block.plantRed.blockID); - par2World.setBlock(i + 11, j + 5, k + 2, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 11, j + 5, k + 12, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 11, j + 6, k + 2, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 11, j + 6, k + 12, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 11, j + 7, k + 2, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 11, j + 7, k + 12, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 11, j + 8, k + 2, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 11, j + 8, k + 12, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 11, j + 9, k + 2, Blocks.ivy.get().blockID, 1, 2); - par2World.setBlock(i + 11, j + 9, k + 12, Blocks.ivy.get().blockID, 4, 2); - par2World.setBlock(i + 11, j + 10, k + 3, Block.plantYellow.blockID); - par2World.setBlock(i + 11, j + 10, k + 11, Block.plantYellow.blockID); - par2World.setBlock(i + 12, j + 2, k + 3, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 12, j + 2, k + 11, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 12, j + 3, k + 3, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 12, j + 3, k + 11, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 12, j + 4, k + 3, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 12, j + 4, k + 11, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 12, j + 5, k + 3, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 12, j + 5, k + 11, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 12, j + 6, k + 3, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 12, j + 6, k + 11, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 12, j + 7, k + 3, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 12, j + 7, k + 11, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 12, j + 8, k + 3, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 12, j + 8, k + 11, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 12, j + 9, k + 3, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 12, j + 9, k + 11, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 12, j + 10, k + 4, Block.plantRed.blockID); - par2World.setBlock(i + 12, j + 10, k + 5, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 12, j + 10, k + 6, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 12, j + 10, k + 7, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 12, j + 10, k + 8, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 12, j + 10, k + 9, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 12, j + 10, k + 10, Block.plantRed.blockID); - par2World.setBlock(i + 13, j + 10, k + 6, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 13, j + 10, k + 7, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 13, j + 10, k + 8, Block.tallGrass.blockID, 2, 2); - par2World.setBlock(i + 14, j + 0, k + 7, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 14, j + 1, k + 7, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 14, j + 2, k + 7, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 14, j + 2, k + 8, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 14, j + 3, k + 7, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 14, j + 3, k + 8, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 14, j + 4, k + 6, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 14, j + 4, k + 7, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 14, j + 4, k + 8, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 14, j + 5, k + 6, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 14, j + 5, k + 7, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 14, j + 5, k + 8, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 14, j + 6, k + 6, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 14, j + 6, k + 7, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 14, j + 6, k + 8, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 14, j + 7, k + 6, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 14, j + 7, k + 7, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 14, j + 7, k + 8, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 14, j + 8, k + 6, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 14, j + 8, k + 7, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 14, j + 8, k + 8, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 14, j + 9, k + 6, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 14, j + 9, k + 7, Blocks.ivy.get().blockID, 2, 2); - par2World.setBlock(i + 14, j + 9, k + 8, Blocks.ivy.get().blockID, 2, 2); - - par1ItemStack.setItemDamage(4); - } - } - } - - return par1ItemStack; - }*/ -} +package biomesoplenty.common.items; + +import java.util.List; + +import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.creativetab.CreativeTabs; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.init.Blocks; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; +import net.minecraft.util.ChatComponentTranslation; +import net.minecraft.util.IIcon; +import net.minecraft.util.MathHelper; +import net.minecraft.world.World; +import biomesoplenty.BiomesOPlenty; +import biomesoplenty.common.configuration.BOPConfigurationIDs; +import biomesoplenty.common.world.features.WorldGenPromisedLandPortal; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; + +public class ItemBOPAncientStaff extends Item +{ + private static String[] parts = {"ancientstaff", "staffhandle", "staffpole", "stafftopper", "ancientstaffbroken"}; + @SideOnly(Side.CLIENT) + private IIcon[] textures; + + public ItemBOPAncientStaff() + { + this.maxStackSize = 1; + + this.setCreativeTab(BiomesOPlenty.tabBiomesOPlenty); + } + + @Override + public boolean isFull3D() + { + return true; + } + + @Override + public boolean hasEffect(ItemStack itemStack, int pass) + { + if (itemStack.getItemDamage() == 0) + return true; + else + return false; + } + + @Override + public void registerIcons(IIconRegister iconRegister) + { + textures = new IIcon[parts.length]; + + for (int i = 0; i < parts.length; ++i) + { + textures[i] = iconRegister.registerIcon("biomesoplenty:" + parts[i]); + } + } + + @Override + public String getUnlocalizedName(ItemStack itemStack) + { + int meta = itemStack.getItemDamage(); + if (meta < 0 || meta >= parts.length) { + meta = 0; + } + + return super.getUnlocalizedName() + "." + parts[meta]; + } + + @Override + public IIcon getIconFromDamage(int meta) + { + if (meta < 0 || meta >= textures.length) + { + meta = 0; + } + + return textures[meta]; + } + + @Override + //TODO: public void getSubItems(Item item, CreativeTabs creativeTabs, List list) + public void func_150895_a(Item item, CreativeTabs creativeTabs, List list) + { + for (int meta = 0; meta < parts.length; ++meta) + { + list.add(new ItemStack(item, 1, meta)); + } + } + + @Override + public ItemStack onItemRightClick(ItemStack par1ItemStack, World world, EntityPlayer player) + { + if (player.dimension == 0 || player.dimension == BOPConfigurationIDs.promisedLandDimID) + { + int i = MathHelper.floor_double(player.posX - 8); + int j = 145; + int k = MathHelper.floor_double(player.posZ - 8); + + boolean isAir = true; + + for (int iy = -1; iy < 4; iy++) + { + for (int ix = -2; ix < 3; ix++) { + for (int iz = -2; iz < 3; iz++) + // is air block + if (!world.func_147439_a(i + ix, j + iy, k + iz).isAir(world, i + ix, j + iy, k + iz)) + { + isAir = false; + } + } + } + + if (par1ItemStack.getItemDamage() == 0) + { + if (isAir) + { + + if (!player.worldObj.isRemote) + { + if (player.dimension == 0) + { + //send player chat + player.func_145747_a(new ChatComponentTranslation("phrase.bop.promisedPortalOverworld")); + } + else + { + //send player chat + player.func_145747_a(new ChatComponentTranslation("phrase.bop.promisedPortalOther")); + } + } + + + + boolean flag; + new WorldGenPromisedLandPortal().generate(world, world.rand, (int)player.posX, 130, (int)player.posZ); + + par1ItemStack.setItemDamage(4); + } + } + } + + return par1ItemStack; + } +} diff --git a/src/main/java/biomesoplenty/common/world/ChunkProviderPromised.java b/src/main/java/biomesoplenty/common/world/ChunkProviderPromised.java new file mode 100644 index 000000000..66adb69b9 --- /dev/null +++ b/src/main/java/biomesoplenty/common/world/ChunkProviderPromised.java @@ -0,0 +1,604 @@ +package biomesoplenty.common.world; + +import java.util.List; +import java.util.Random; + +import cpw.mods.fml.common.eventhandler.Event.Result; +import net.minecraft.block.Block; +import net.minecraft.block.BlockSand; +import net.minecraft.entity.EnumCreatureType; +import net.minecraft.init.Blocks; +import net.minecraft.util.IProgressUpdate; +import net.minecraft.world.ChunkPosition; +import net.minecraft.world.World; +import net.minecraft.world.biome.BiomeGenBase; +import net.minecraft.world.chunk.Chunk; +import net.minecraft.world.chunk.IChunkProvider; +import net.minecraftforge.common.MinecraftForge; +import net.minecraftforge.event.terraingen.ChunkProviderEvent; +import net.minecraftforge.event.terraingen.PopulateChunkEvent; +import biomesoplenty.api.BOPBlockHelper; +import biomesoplenty.common.world.noise.NoiseOctaves; + +public class ChunkProviderPromised implements IChunkProvider +{ + private Random endRNG; + private NoiseOctaves field_912_k; + private NoiseOctaves field_911_l; + private NoiseOctaves field_910_m; + private NoiseOctaves field_909_n; + private NoiseOctaves field_908_o; + public NoiseOctaves field_922_a; + public NoiseOctaves field_921_b; + private World endWorld; + private double[] densities; + + private BiomeGenBase[] biomesForGeneration; + double field_4185_d[]; + double field_4184_e[]; + double field_4183_f[]; + double field_4182_g[]; + double field_4181_h[]; + + int[][] field_73203_h = new int[32][32]; + + public ChunkProviderPromised(World par1World, long par2) + { + endWorld = par1World; + endRNG = new Random(par2); + field_912_k = new NoiseOctaves(endRNG, 16); + field_911_l = new NoiseOctaves(endRNG, 16); + field_910_m = new NoiseOctaves(endRNG, 8); + field_909_n = new NoiseOctaves(endRNG, 4); + field_908_o = new NoiseOctaves(endRNG, 4); + field_922_a = new NoiseOctaves(endRNG, 10); + field_921_b = new NoiseOctaves(endRNG, 16); + + //NoiseGeneratorOctaves[] noiseGens = {noiseGen1, noiseGen2, noiseGen3, noiseGen4, noiseGen5}; + //noiseGens = TerrainGen.getModdedNoiseGenerators(par1World, this.endRNG, noiseGens); + //this.noiseGen1 = noiseGens[0]; + //this.noiseGen2 = noiseGens[1]; + //this.noiseGen3 = noiseGens[2]; + //this.noiseGen4 = noiseGens[3]; + //this.noiseGen5 = noiseGens[4]; + } + + public void generateTerrain(int par1, int par2, Block[] par3ArrayOfByte, BiomeGenBase[] par4ArrayOfBiomeGenBase) + { + byte var5 = 2; + int var6 = var5 + 1; + byte var7 = 33; + int var8 = var5 + 1; + densities = this.initializeNoiseField(densities, par1 * var5, 0, par2 * var5, var6, var7, var8); + + for (int var9 = 0; var9 < var5; ++var9) + { + for (int var10 = 0; var10 < var5; ++var10) + { + for (int var11 = 0; var11 < 32; ++var11) + { + double var12 = 0.25D; + double var14 = densities[((var9 + 0) * var8 + var10 + 0) * var7 + var11 + 0]; + double var16 = densities[((var9 + 0) * var8 + var10 + 1) * var7 + var11 + 0]; + double var18 = densities[((var9 + 1) * var8 + var10 + 0) * var7 + var11 + 0]; + double var20 = densities[((var9 + 1) * var8 + var10 + 1) * var7 + var11 + 0]; + double var22 = (densities[((var9 + 0) * var8 + var10 + 0) * var7 + var11 + 1] - var14) * var12; + double var24 = (densities[((var9 + 0) * var8 + var10 + 1) * var7 + var11 + 1] - var16) * var12; + double var26 = (densities[((var9 + 1) * var8 + var10 + 0) * var7 + var11 + 1] - var18) * var12; + double var28 = (densities[((var9 + 1) * var8 + var10 + 1) * var7 + var11 + 1] - var20) * var12; + + for (int var30 = 0; var30 < 4; ++var30) + { + double var31 = 0.125D; + double var33 = var14; + double var35 = var16; + double var37 = (var18 - var14) * var31; + double var39 = (var20 - var16) * var31; + + for (int var41 = 0; var41 < 8; ++var41) + { + int var42 = var41 + var9 * 8 << 11 | 0 + var10 * 8 << 7 | var11 * 4 + var30; + short var43 = 128; + double var44 = 0.125D; + double var46 = var33; + double var48 = (var35 - var33) * var44; + + for (int var50 = 0; var50 < 8; ++var50) + { + Block var51 = Blocks.air; + + if (var46 > 0.0D) + { + var51 = BOPBlockHelper.get("holyStone"); + } + + par3ArrayOfByte[var42] = var51; + var42 += var43; + var46 += var48; + } + + var33 += var37; + var35 += var39; + } + + var14 += var22; + var16 += var24; + var18 += var26; + var20 += var28; + } + } + } + } + } + + public void replaceBlocksForBiome(int par1, int par2, Block[] par3ArrayOfBlock, BiomeGenBase[] par4ArrayOfBiomeGenBase) + { + byte var98 = 63; + + ChunkProviderEvent.ReplaceBiomeBlocks event = new ChunkProviderEvent.ReplaceBiomeBlocks(this, par1, par2, par3ArrayOfBlock, par4ArrayOfBiomeGenBase); + MinecraftForge.EVENT_BUS.post(event); + if (event.getResult() == Result.DENY) return; + + for (int var5 = 0; var5 < 16; ++var5) + { + for (int var6 = 0; var6 < 16; ++var6) + { + BiomeGenBase biome = par4ArrayOfBiomeGenBase[var6 + var5 * 16]; + byte var7 = 1; + int var8 = -1; + Block topBlock = biome.topBlock; + Block fillerBlock = biome.fillerBlock; + + for (int var11 = 127; var11 >= 0; --var11) + { + int var12 = (var6 * 16 + var5) * 128 + var11; + Block var13 = par3ArrayOfBlock[var12]; + + if (var13 == Blocks.air) + { + var8 = -1; + } + else if (var13 == BOPBlockHelper.get("holyStone")) + { + if (var8 == -1) + { + if (var7 <= 0) + { + topBlock = Blocks.air; + fillerBlock = BOPBlockHelper.get("holyStone"); + } + else if (var11 >= var98 - 4 && var11 <= var98 + 1) + { + topBlock = biome.topBlock; + fillerBlock = biome.fillerBlock; + } + + if (var11 < var98 && topBlock == Blocks.air) + { + topBlock = Blocks.water; + } + + var8 = var7; + + if (var11 >= 0) + { + par3ArrayOfBlock[var12] = topBlock; + } + else + { + par3ArrayOfBlock[var12] = fillerBlock; + } + } + else if (var8 > 0) + { + --var8; + par3ArrayOfBlock[var12] = fillerBlock; + } + } + } + } + } + } + + /** + * loads or generates the chunk at the chunk location specified + */ + @Override + public Chunk loadChunk(int par1, int par2) + { + return this.provideChunk(par1, par2); + } + + /** + * Will return back a chunk, if it doesn't exist and its not a MP client it will generates all the blocks for the + * specified chunk from the map seed and chunk seed + */ + @Override + public Chunk provideChunk(int par1, int par2) + { + endRNG.setSeed(par1 * 341873128712L + par2 * 132897987541L); + Block[] var3 = new Block[32768]; + biomesForGeneration = endWorld.getWorldChunkManager().loadBlockGeneratorData(biomesForGeneration, par1 * 16, par2 * 16, 16, 16); + this.generateTerrain(par1, par2, var3, biomesForGeneration); + this.replaceBlocksForBiome(par1, par2, var3, biomesForGeneration); + Chunk var4 = new Chunk(endWorld, var3, par1, par2); + byte[] var5 = var4.getBiomeArray(); + + for (int var6 = 0; var6 < var5.length; ++var6) + { + var5[var6] = (byte)biomesForGeneration[var6].biomeID; + } + + var4.generateSkylightMap(); + return var4; + } + + /** + * generates a subset of the level's terrain data. Takes 7 arguments: the [empty] noise array, the position, and the + * size. + */ + + private double[] initializeNoiseField(double ad[], int i, int j, int k, int l, int i1, int j1) + { + if(ad == null) + { + ad = new double[l * i1 * j1]; + } + double d = 684.41200000000003D; + double d1 = 684.41200000000003D; + field_4182_g = field_922_a.generateNoiseOctaves(field_4182_g, i, k, l, j1, 1.121D, 1.121D, 0.5D); + field_4181_h = field_921_b.generateNoiseOctaves(field_4181_h, i, k, l, j1, 200D, 200D, 0.5D); + d *= 2D; + field_4185_d = field_910_m.generateNoiseOctaves(field_4185_d, i, j, k, l, i1, j1, d / 80D, d1 / 160D, d / 80D); + field_4184_e = field_912_k.generateNoiseOctaves(field_4184_e, i, j, k, l, i1, j1, d, d1, d); + field_4183_f = field_911_l.generateNoiseOctaves(field_4183_f, i, j, k, l, i1, j1, d, d1, d); + int k1 = 0; + int l1 = 0; + int i2 = 16 / l; + for(int j2 = 0; j2 < l; j2++) + { + int k2 = j2 * i2 + i2 / 2; + for(int l2 = 0; l2 < j1; l2++) + { + int i3 = l2 * i2 + i2 / 2; + double d3; + d3 = 0.5D; + double d4 = 1.0D - d3; + d4 *= d4; + d4 *= d4; + d4 = 1.0D - d4; + double d5 = (field_4182_g[l1] + 256D) / 512D; + d5 *= d4; + if(d5 > 1.0D) + { + d5 = 1.0D; + } + double d6 = field_4181_h[l1] / 8000D; + if(d6 < 0.0D) + { + d6 = -d6 * 0.29999999999999999D; + } + d6 = d6 * 3D - 2D; + if(d6 > 1.0D) + { + d6 = 1.0D; + } + d6 /= 8D; + d6 = 0.0D; + if(d5 < 0.0D) + { + d5 = 0.0D; + } + d5 += 0.5D; + d6 = (d6 * i1) / 16D; + l1++; + double d7 = i1 / 2D; + for(int j3 = 0; j3 < i1; j3++) + { + double d8 = 0.0D; + double d9 = ((j3 - d7) * 8D) / d5; + if(d9 < 0.0D) + { + d9 *= -1D; + } + double d10 = field_4184_e[k1] / 512D; + double d11 = field_4183_f[k1] / 512D; + double d12 = (field_4185_d[k1] / 10D + 1.0D) / 2D; + if(d12 < 0.0D) + { + d8 = d10; + } else + if(d12 > 1.0D) + { + d8 = d11; + } else + { + d8 = d10 + (d11 - d10) * d12; + } + d8 -= 8D; + int k3 = 32; + if(j3 > i1 - k3) + { + double d13 = (j3 - (i1 - k3)) / (k3 - 1.0F); + d8 = d8 * (1.0D - d13) + -30D * d13; + } + k3 = 8; + if(j3 < k3) + { + double d14 = (k3 - j3) / (k3 - 1.0F); + d8 = d8 * (1.0D - d14) + -30D * d14; + } + ad[k1] = d8; + k1++; + } + + } + + } + + return ad; + } + + /* + private double[] initializeNoiseField(double[] par1ArrayOfDouble, int par2, int par3, int par4, int par5, int par6, int par7) + { + ChunkProviderEvent.InitNoiseField event = new ChunkProviderEvent.InitNoiseField(this, par1ArrayOfDouble, par2, par3, par4, par5, par6, par7); + MinecraftForge.EVENT_BUS.post(event); + if (event.getResult() == Result.DENY) return event.noisefield; + + if (par1ArrayOfDouble == null) + { + par1ArrayOfDouble = new double[par5 * par6 * par7]; + } + + double var8 = 684.412D; + double var10 = 684.412D; + this.noiseData4 = this.noiseGen4.generateNoiseOctaves(this.noiseData4, par2, par4, par5, par7, 1.121D, 1.121D, 0.5D); + this.noiseData5 = this.noiseGen5.generateNoiseOctaves(this.noiseData5, par2, par4, par5, par7, 200.0D, 200.0D, 0.5D); + var8 *= 2.0D; + this.noiseData1 = this.noiseGen3.generateNoiseOctaves(this.noiseData1, par2, par3, par4, par5, par6, par7, var8 / 80.0D, var10 / 160.0D, var8 / 80.0D); + this.noiseData2 = this.noiseGen1.generateNoiseOctaves(this.noiseData2, par2, par3, par4, par5, par6, par7, var8, var10, var8); + this.noiseData3 = this.noiseGen2.generateNoiseOctaves(this.noiseData3, par2, par3, par4, par5, par6, par7, var8, var10, var8); + int var12 = 0; + int var13 = 0; + + for (int var14 = 0; var14 < par5; ++var14) + { + for (int var15 = 0; var15 < par7; ++var15) + { + double var16 = (this.noiseData4[var13] + 256.0D) / 512.0D; + + if (var16 > 1.0D) + { + var16 = 1.0D; + } + + double var18 = this.noiseData5[var13] / 8000.0D; + + if (var18 < 0.0D) + { + var18 = -var18 * 0.3D; + } + + var18 = var18 * 3.0D - 2.0D; + float var20 = (float)(var14 + par2 - 0) / 1.0F; + float var21 = (float)(var15 + par4 - 0) / 1.0F; + float var22 = 100.0F - MathHelper.sqrt_float(var20 * var20 + var21 * var21) * 8.0F; + + if (var22 > 80.0F) + { + var22 = 80.0F; + } + + if (var22 < -100.0F) + { + var22 = -100.0F; + } + + if (var18 > 1.0D) + { + var18 = 1.0D; + } + + var18 /= 8.0D; + var18 = 0.0D; + + if (var16 < 0.0D) + { + var16 = 0.0D; + } + + var16 += 0.5D; + var18 = var18 * (double)par6 / 16.0D; + ++var13; + double var23 = (double)par6 / 2.0D; + + for (int var25 = 0; var25 < par6; ++var25) + { + double var26 = 0.0D; + double var28 = ((double)var25 - var23) * 8.0D / var16; + + if (var28 < 0.0D) + { + var28 *= -1.0D; + } + + double var30 = this.noiseData2[var12] / 512.0D; + double var32 = this.noiseData3[var12] / 512.0D; + double var34 = (this.noiseData1[var12] / 10.0D + 1.0D) / 2.0D; + + if (var34 < 0.0D) + { + var26 = var30; + } + else if (var34 > 1.0D) + { + var26 = var32; + } + else + { + var26 = var30 + (var32 - var30) * var34; + } + + var26 -= 8.0D; + var26 += (double)var22; + byte var36 = 2; + double var37; + + if (var25 > par6 / 2 - var36) + { + var37 = (double)((float)(var25 - (par6 / 2 - var36)) / 64.0F); + + if (var37 < 0.0D) + { + var37 = 0.0D; + } + + if (var37 > 1.0D) + { + var37 = 1.0D; + } + + var26 = var26 * (1.0D - var37) + -3000.0D * var37; + } + + var36 = 8; + + if (var25 < var36) + { + var37 = (double)((float)(var36 - var25) / ((float)var36 - 1.0F)); + var26 = var26 * (1.0D - var37) + -30.0D * var37; + } + + par1ArrayOfDouble[var12] = var26; + ++var12; + } + } + } + + return par1ArrayOfDouble; + } + */ + + /** + * Checks to see if a chunk exists at x, y + */ + @Override + public boolean chunkExists(int par1, int par2) + { + return true; + } + + /** + * Populates chunk with ores etc etc + */ + @Override + public void populate(IChunkProvider par1IChunkProvider, int par2, int par3) + { + BlockSand.field_149832_M = true; + + MinecraftForge.EVENT_BUS.post(new PopulateChunkEvent.Pre(par1IChunkProvider, endWorld, endWorld.rand, par2, par3, false)); + + int var4 = par2 * 16; + int var5 = par3 * 16; + BiomeGenBase var6 = endWorld.getBiomeGenForCoords(var4 + 16, var5 + 16); + + for (int a = 0; a < 25; ++a) + { + int x = var4 + endWorld.rand.nextInt(16); + int y = endWorld.rand.nextInt(30) + 30; + int z = var5 + endWorld.rand.nextInt(16); + Block b = endWorld.func_147439_a(x, y, z); + + if (b == BOPBlockHelper.get("holyStone")) + { + endWorld.func_147465_d(x, y, z, BOPBlockHelper.get("gemOre"), 0, 2); + } + } + + var6.decorate(endWorld, endWorld.rand, var4, var5); + + MinecraftForge.EVENT_BUS.post(new PopulateChunkEvent.Post(par1IChunkProvider, endWorld, endWorld.rand, par2, par3, false)); + + BlockSand.field_149832_M = false; + } + + /** + * Two modes of operation: if passed true, save all Chunks in one go. If passed false, save up to two chunks. + * Return true if all chunks have been saved. + */ + @Override + public boolean saveChunks(boolean par1, IProgressUpdate par2IProgressUpdate) + { + return true; + } + + /** + * Unloads the 100 oldest chunks from memory, due to a bug with chunkSet.add() never being called it thinks the list + * is always empty and will not remove any chunks. + */ + + @Override + public boolean unloadQueuedChunks() + { + return false; + } + + public boolean unload100OldestChunks() + { + return false; + } + + /** + * Returns if the IChunkProvider supports saving. + */ + @Override + public boolean canSave() + { + return true; + } + + /** + * Converts the instance data to a readable string. + */ + @Override + public String makeString() + { + return "RandomLevelSource"; + } + + /** + * Returns a list of creatures of the specified type that can spawn at the given location. + */ + @Override + @SuppressWarnings("rawtypes") + public List getPossibleCreatures(EnumCreatureType par1EnumCreatureType, int par2, int par3, int par4) + { + BiomeGenBase var5 = endWorld.getBiomeGenForCoords(par2, par4); + return var5 == null ? null : var5.getSpawnableList(par1EnumCreatureType); + } + + /** + * Returns the location of the closest structure of the specified type. If not found returns null. + */ + @Override + //TODO: findClosestStructure + public ChunkPosition func_147416_a(World par1World, String par2Str, int par3, int par4, int par5) + { + return null; + } + + @Override + public int getLoadedChunkCount() + { + return 0; + } + + @Override + public void recreateStructures(int par1, int par2) {} + + @Override + public void saveExtraData() + { + } +} diff --git a/src/main/java/biomesoplenty/common/world/WorldChunkManagerPromised.java b/src/main/java/biomesoplenty/common/world/WorldChunkManagerPromised.java new file mode 100644 index 000000000..c355a0433 --- /dev/null +++ b/src/main/java/biomesoplenty/common/world/WorldChunkManagerPromised.java @@ -0,0 +1,262 @@ +package biomesoplenty.common.world; + +import java.util.List; +import java.util.Random; + +import net.minecraft.world.ChunkPosition; +import net.minecraft.world.World; +import net.minecraft.world.WorldType; +import net.minecraft.world.biome.BiomeGenBase; +import net.minecraft.world.biome.WorldChunkManager; +import net.minecraft.world.gen.layer.GenLayer; +import net.minecraft.world.gen.layer.IntCache; +import biomesoplenty.common.helpers.BiomeCachePromised; +import biomesoplenty.common.world.layer.GenLayerCustom; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; + +public class WorldChunkManagerPromised extends WorldChunkManager +{ + private GenLayer genBiomes; + private GenLayer biomeIndexLayer; + private BiomeCachePromised biomeCache; + + @SuppressWarnings({ "unchecked", "rawtypes" }) + protected WorldChunkManagerPromised() + { + biomeCache = new BiomeCachePromised(this); + } + + public WorldChunkManagerPromised(long seed, WorldType worldType) + { + this(); + //GenLayer[] var4 = BiomeLayer.initializeAllBiomeGenerators(par1, par3WorldType, 2); + GenLayer[] agenlayer = GenLayerCustom.makeTheWorld(seed, worldType); + genBiomes = agenlayer[0]; + biomeIndexLayer = agenlayer[1]; + } + + public WorldChunkManagerPromised(World par1World) + { + this(par1World.getSeed(), par1World.getWorldInfo().getTerrainType()); + } + + @Override + public BiomeGenBase getBiomeGenAt(int par1, int par2) + { + return biomeCache.getBiomeGenAt(par1, par2); + } + + @Override + public float[] getRainfall(float[] par1ArrayOfFloat, int par2, int par3, int par4, int par5) + { + IntCache.resetIntCache(); + + if (par1ArrayOfFloat == null || par1ArrayOfFloat.length < par4 * par5) + { + par1ArrayOfFloat = new float[par4 * par5]; + } + + int[] var6 = biomeIndexLayer.getInts(par2, par3, par4, par5); + + for (int var7 = 0; var7 < par4 * par5; ++var7) + { + float var8 = BiomeGenBase.func_150565_n()[var6[var7]].getIntRainfall() / 65536.0F; + + if (var8 > 1.0F) + { + var8 = 1.0F; + } + + par1ArrayOfFloat[var7] = var8; + } + + return par1ArrayOfFloat; + } + + @Override + @SideOnly(Side.CLIENT) + + /** + * Return an adjusted version of a given temperature based on the y height + */ + public float getTemperatureAtHeight(float par1, int par2) + { + return par1; + } + + /** + * Returns a list of temperatures to use for the specified blocks. Args: listToReuse, x, y, width, length + */ + //@Override + public float[] getTemperatures(float[] par1ArrayOfFloat, int par2, int par3, int par4, int par5) + { + IntCache.resetIntCache(); + + if (par1ArrayOfFloat == null || par1ArrayOfFloat.length < par4 * par5) + { + par1ArrayOfFloat = new float[par4 * par5]; + } + + int[] var6 = biomeIndexLayer.getInts(par2, par3, par4, par5); + + for (int var7 = 0; var7 < par4 * par5; ++var7) + { + float var8 = BiomeGenBase.func_150565_n()[var6[var7]].temperature / 65536.0F; + + if (var8 > 1.0F) + { + var8 = 1.0F; + } + + par1ArrayOfFloat[var7] = var8; + } + + return par1ArrayOfFloat; + } + + /** + * Returns an array of biomes for the location input. + */ + @Override + public BiomeGenBase[] getBiomesForGeneration(BiomeGenBase[] par1ArrayOfBiomeGenBase, int par2, int par3, int par4, int par5) + { + IntCache.resetIntCache(); + + if (par1ArrayOfBiomeGenBase == null || par1ArrayOfBiomeGenBase.length < par4 * par5) + { + par1ArrayOfBiomeGenBase = new BiomeGenBase[par4 * par5]; + } + + int[] var6 = genBiomes.getInts(par2, par3, par4, par5); + + for (int var7 = 0; var7 < par4 * par5; ++var7) + { + par1ArrayOfBiomeGenBase[var7] = BiomeGenBase.func_150565_n()[var6[var7]]; + } + + return par1ArrayOfBiomeGenBase; + } + + /** + * Returns biomes to use for the blocks and loads the other data like temperature and humidity onto the + * WorldChunkManager Args: oldBiomeList, x, z, width, depth + */ + @Override + public BiomeGenBase[] loadBlockGeneratorData(BiomeGenBase[] par1ArrayOfBiomeGenBase, int par2, int par3, int par4, int par5) + { + return this.getBiomeGenAt(par1ArrayOfBiomeGenBase, par2, par3, par4, par5, true); + } + + /** + * Return a list of biomes for the specified blocks. Args: listToReuse, x, y, width, length, cacheFlag (if false, + * don't check biomeCache to avoid infinite loop in BiomeCacheBlock) + */ + @Override + public BiomeGenBase[] getBiomeGenAt(BiomeGenBase[] par1ArrayOfBiomeGenBase, int par2, int par3, int par4, int par5, boolean par6) + { + IntCache.resetIntCache(); + + if (par1ArrayOfBiomeGenBase == null || par1ArrayOfBiomeGenBase.length < par4 * par5) + { + par1ArrayOfBiomeGenBase = new BiomeGenBase[par4 * par5]; + } + + if (par6 && par4 == 16 && par5 == 16 && (par2 & 15) == 0 && (par3 & 15) == 0) + { + BiomeGenBase[] var9 = biomeCache.getCachedBiomes(par2, par3); + System.arraycopy(var9, 0, par1ArrayOfBiomeGenBase, 0, par4 * par5); + return par1ArrayOfBiomeGenBase; + } + else + { + int[] var7 = biomeIndexLayer.getInts(par2, par3, par4, par5); + + for (int var8 = 0; var8 < par4 * par5; ++var8) + { + par1ArrayOfBiomeGenBase[var8] = BiomeGenBase.func_150565_n()[var7[var8]]; + } + + return par1ArrayOfBiomeGenBase; + } + } + + /** + * checks given Chunk's Biomes against List of allowed ones + */ + @Override + @SuppressWarnings("rawtypes") + public boolean areBiomesViable(int par1, int par2, int par3, List par4List) + { + IntCache.resetIntCache(); + int var5 = par1 - par3 >> 2; + int var6 = par2 - par3 >> 2; + int var7 = par1 + par3 >> 2; + int var8 = par2 + par3 >> 2; + int var9 = var7 - var5 + 1; + int var10 = var8 - var6 + 1; + int[] var11 = genBiomes.getInts(var5, var6, var9, var10); + + for (int var12 = 0; var12 < var9 * var10; ++var12) + { + BiomeGenBase var13 = BiomeGenBase.func_150565_n()[var11[var12]]; + + if (!par4List.contains(var13)) + return false; + } + + return true; + } + + /** + * Finds a valid position within a range, that is in one of the listed biomes. Searches {par1,par2} +-par3 blocks. + * Strongly favors positive y positions. + */ + @Override + @SuppressWarnings("rawtypes") + //TODO: findBiomePosition + public ChunkPosition func_150795_a(int par1, int par2, int par3, List par4List, Random par5Random) + { + IntCache.resetIntCache(); + int var6 = par1 - par3 >> 2; + int var7 = par2 - par3 >> 2; + int var8 = par1 + par3 >> 2; + int var9 = par2 + par3 >> 2; + int var10 = var8 - var6 + 1; + int var11 = var9 - var7 + 1; + int[] var12 = genBiomes.getInts(var6, var7, var10, var11); + ChunkPosition var13 = null; + int var14 = 0; + + for (int var15 = 0; var15 < var10 * var11; ++var15) + { + int var16 = var6 + var15 % var10 << 2; + int var17 = var7 + var15 / var10 << 2; + BiomeGenBase var18 = BiomeGenBase.func_150565_n()[var12[var15]]; + + if (par4List.contains(var18) && (var13 == null || par5Random.nextInt(var14 + 1) == 0)) + { + var13 = new ChunkPosition(var16, 0, var17); + ++var14; + } + } + + return var13; + } + + /** + * Calls the WorldChunkManager's biomeCache.cleanupCache() + */ + @Override + public void cleanupCache() + { + biomeCache.cleanupCache(); + } + + //public GenLayer[] getModdedBiomeGenerators(WorldType worldType, long seed, GenLayer[] original) + //{ + // WorldTypeEvent.InitBiomeGens event = new WorldTypeEvent.InitBiomeGens(worldType, seed, original); + // MinecraftForge.TERRAIN_GEN_BUS.post(event); + // return event.newBiomeGens; + //} +} diff --git a/src/main/java/biomesoplenty/common/world/WorldProviderPromised.java b/src/main/java/biomesoplenty/common/world/WorldProviderPromised.java new file mode 100644 index 000000000..b941f6f46 --- /dev/null +++ b/src/main/java/biomesoplenty/common/world/WorldProviderPromised.java @@ -0,0 +1,208 @@ +package biomesoplenty.common.world; + +import org.apache.logging.log4j.Level; + +import biomesoplenty.api.BOPBiomeHelper; +import biomesoplenty.api.BOPBlockHelper; +import biomesoplenty.common.configuration.BOPConfigurationIDs; +import net.minecraft.block.Block; +import net.minecraft.client.multiplayer.WorldClient; +import net.minecraft.util.ChunkCoordinates; +import net.minecraft.util.MathHelper; +import net.minecraft.util.Vec3; +import net.minecraft.world.WorldProvider; +import net.minecraft.world.WorldSettings.GameType; +import net.minecraft.world.biome.BiomeGenBase; +import net.minecraft.world.chunk.IChunkProvider; +import net.minecraft.world.gen.ChunkProviderEnd; +import net.minecraft.world.storage.WorldInfo; +import net.minecraftforge.common.DimensionManager; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; + +public class WorldProviderPromised extends WorldProvider { + + @Override + public void setDimension (int dim) { + this.dimensionId = dim; + super.setDimension(dim); + } + + @Override + public long getSeed () { + Long seed = super.getSeed(); + return seed; + } + + @Override + public IChunkProvider createChunkGenerator() + { + return new ChunkProviderPromised(worldObj, worldObj.getSeed()); + } + + @Override + public void registerWorldChunkManager() + { + if (BOPBiomeHelper.getBOPBiome("wonderousWoods") != null || BOPBiomeHelper.getBOPBiome("majesticMeadow") != null || BOPBiomeHelper.getBOPBiome("blessedBog") != null) + { + worldChunkMgr = new WorldChunkManagerPromised(worldObj); + } + dimensionId = BOPConfigurationIDs.promisedLandDimID; + } + + /** + * A message to display to the user when they transfer to this dimension. + * + * @return The message to be displayed + */ + public String getWelcomeMessage() + { + if (this instanceof WorldProviderPromised) + { + return "Entering the "+getDimensionName(); + } + return null; + } + + /** + * A Message to display to the user when they transfer out of this dismension. + * + * @return The message to be displayed + */ + public String getDepartMessage() + { + if (this instanceof WorldProviderPromised) + { + return "Leaving the "+getDimensionName(); + } + return null; + } + + @Override + public String getDimensionName() { + return "Promised Land"; + } + + @Override + public boolean canRespawnHere() + { + return false; + } + + @Override + public double getMovementFactor() + { + return 16.0; + } + + @Override + public float calculateCelestialAngle(long par1, float par3) + { + return 1.0F; + } + + @Override + public float getCloudHeight() + { + return 0.0F; + } + + public boolean darkenSkyDuringRain() + { + return false; + } + + @Override + public boolean canCoordinateBeSpawn(int par1, int par2) + { + Block var3 = worldObj.func_147474_b(par1, par2); + return var3 == BOPBlockHelper.get("grass"); + } + + @Override + public ChunkCoordinates getEntrancePortalLocation() + { + return new ChunkCoordinates(100, 50, 0); + } + + @Override + public int getAverageGroundLevel() + { + return 64; + } + + @Override + public double getHorizon() + { + return 0.0D; + } + + @SideOnly(Side.CLIENT) + public boolean hasVoidParticles(boolean var1) + { + return false; + } + + @Override + @SideOnly(Side.CLIENT) + public boolean isSkyColored() + { + return true; + } + + @Override + public double getVoidFogYFactor() + { + return 1.0D; + } + + @Override + @SideOnly(Side.CLIENT) + public Vec3 getFogColor(float par1, float par2) + { + float var3 = MathHelper.cos(par1 * (float)Math.PI * 2.0F) * 2.0F + 0.5F; + + if (var3 < 0.0F) + { + var3 = 0.0F; + } + + if (var3 > 1.0F) + { + var3 = 1.0F; + } + + float var4 = 1.0F; + float var5 = 0.73725490196F; + float var6 = 0.25882352941F; + var4 *= var3 * 3.94F + 0.06F; + var5 *= var3 * 0.94F + 0.06F; + var6 *= var3 * 0.91F + 0.09F; + return worldObj.getWorldVec3Pool().getVecFromPool(var4, var5, var6); + } + + @Override + public void setAllowedSpawnTypes(boolean allowHostile, boolean allowPeaceful) + { + allowPeaceful = true; + } + + //@Override + //public IChunkProvider createChunkGenerator() + //{ + // return new ChunkProviderPromised(worldObj, worldObj.getSeed()); + //} + + //@Override + public boolean isLightingDisabled() + { + return true; + } + + //@Override + public Float[] getLightingMultipliers(WorldClient worldclient) + { + return new Float[] { 0.92F, 0.98F, 0.95F }; + } + +} diff --git a/src/main/java/biomesoplenty/common/world/features/WorldGenPromisedLandPortal.java b/src/main/java/biomesoplenty/common/world/features/WorldGenPromisedLandPortal.java new file mode 100644 index 000000000..6b2d857ae --- /dev/null +++ b/src/main/java/biomesoplenty/common/world/features/WorldGenPromisedLandPortal.java @@ -0,0 +1,1011 @@ +package biomesoplenty.common.world.features; + +import java.util.Random; + +import biomesoplenty.api.BOPBlockHelper; +import net.minecraft.block.Block; +import net.minecraft.init.Blocks; +import net.minecraft.world.World; +import net.minecraft.world.gen.feature.WorldGenerator; + +public class WorldGenPromisedLandPortal extends WorldGenerator +{ + @Override + public boolean generate(World world, Random var2, int i, int j, int k) + { + Block portal = BOPBlockHelper.get("promisedPortal"); + Block ivy = BOPBlockHelper.get("ivy"); + world.func_147449_b(i + 1, j + 6, k + 8, Blocks.dirt); + world.func_147449_b(i + 1, j + 7, k + 6, Blocks.dirt); + world.func_147449_b(i + 1, j + 7, k + 7, Blocks.dirt); + world.func_147449_b(i + 1, j + 7, k + 8, Blocks.dirt); + world.func_147449_b(i + 1, j + 8, k + 6, Blocks.dirt); + world.func_147449_b(i + 1, j + 8, k + 7, Blocks.dirt); + world.func_147449_b(i + 1, j + 8, k + 8, Blocks.dirt); + world.func_147449_b(i + 1, j + 9, k + 6, Blocks.grass); + world.func_147449_b(i + 1, j + 9, k + 7, Blocks.grass); + world.func_147449_b(i + 1, j + 9, k + 8, Blocks.grass); + world.func_147449_b(i + 2, j + 3, k + 10, Blocks.dirt); + world.func_147449_b(i + 2, j + 4, k + 5, Blocks.dirt); + world.func_147449_b(i + 2, j + 4, k + 10, Blocks.dirt); + world.func_147449_b(i + 2, j + 5, k + 5, Blocks.dirt); + world.func_147449_b(i + 2, j + 5, k + 10, Blocks.dirt); + world.func_147449_b(i + 2, j + 6, k + 5, Blocks.dirt); + world.func_147449_b(i + 2, j + 6, k + 7, Blocks.dirt); + world.func_147449_b(i + 2, j + 6, k + 10, Blocks.dirt); + world.func_147449_b(i + 2, j + 7, k + 4, Blocks.dirt); + world.func_147449_b(i + 2, j + 7, k + 5, Blocks.dirt); + world.func_147449_b(i + 2, j + 7, k + 6, Blocks.dirt); + world.func_147449_b(i + 2, j + 7, k + 7, Blocks.dirt); + world.func_147449_b(i + 2, j + 7, k + 8, Blocks.dirt); + world.func_147449_b(i + 2, j + 7, k + 9, Blocks.dirt); + world.func_147449_b(i + 2, j + 7, k + 10, Blocks.dirt); + world.func_147449_b(i + 2, j + 8, k + 4, Blocks.dirt); + world.func_147449_b(i + 2, j + 8, k + 5, Blocks.dirt); + world.func_147449_b(i + 2, j + 8, k + 6, Blocks.dirt); + world.func_147449_b(i + 2, j + 8, k + 7, Blocks.dirt); + world.func_147449_b(i + 2, j + 8, k + 8, Blocks.dirt); + world.func_147449_b(i + 2, j + 8, k + 9, Blocks.dirt); + world.func_147449_b(i + 2, j + 8, k + 10, Blocks.dirt); + world.func_147449_b(i + 2, j + 9, k + 4, Blocks.grass); + world.func_147449_b(i + 2, j + 9, k + 5, Blocks.grass); + world.func_147449_b(i + 2, j + 9, k + 6, Blocks.grass); + world.func_147449_b(i + 2, j + 9, k + 7, Blocks.grass); + world.func_147449_b(i + 2, j + 9, k + 8, Blocks.grass); + world.func_147449_b(i + 2, j + 9, k + 9, Blocks.grass); + world.func_147449_b(i + 2, j + 9, k + 10, Blocks.grass); + world.func_147449_b(i + 3, j + 3, k + 7, Blocks.dirt); + world.func_147449_b(i + 3, j + 4, k + 7, Blocks.dirt); + world.func_147449_b(i + 3, j + 5, k + 7, Blocks.dirt); + world.func_147449_b(i + 3, j + 6, k + 3, Blocks.dirt); + world.func_147449_b(i + 3, j + 6, k + 5, Blocks.dirt); + world.func_147449_b(i + 3, j + 6, k + 6, Blocks.dirt); + world.func_147449_b(i + 3, j + 6, k + 7, Blocks.dirt); + world.func_147449_b(i + 3, j + 6, k + 8, Blocks.dirt); + world.func_147449_b(i + 3, j + 6, k + 9, Blocks.dirt); + world.func_147449_b(i + 3, j + 7, k + 3, Blocks.dirt); + world.func_147449_b(i + 3, j + 7, k + 4, Blocks.dirt); + world.func_147449_b(i + 3, j + 7, k + 5, Blocks.dirt); + world.func_147449_b(i + 3, j + 7, k + 6, Blocks.dirt); + world.func_147449_b(i + 3, j + 7, k + 7, Blocks.dirt); + world.func_147449_b(i + 3, j + 7, k + 8, Blocks.dirt); + world.func_147449_b(i + 3, j + 7, k + 9, Blocks.dirt); + world.func_147449_b(i + 3, j + 7, k + 10, Blocks.dirt); + world.func_147449_b(i + 3, j + 7, k + 11, Blocks.dirt); + world.func_147449_b(i + 3, j + 8, k + 3, Blocks.dirt); + world.func_147449_b(i + 3, j + 8, k + 4, Blocks.dirt); + world.func_147449_b(i + 3, j + 8, k + 5, Blocks.dirt); + world.func_147449_b(i + 3, j + 8, k + 6, Blocks.dirt); + world.func_147449_b(i + 3, j + 8, k + 7, Blocks.dirt); + world.func_147449_b(i + 3, j + 8, k + 8, Blocks.dirt); + world.func_147449_b(i + 3, j + 8, k + 9, Blocks.dirt); + world.func_147449_b(i + 3, j + 8, k + 10, Blocks.dirt); + world.func_147449_b(i + 3, j + 8, k + 11, Blocks.dirt); + world.func_147449_b(i + 3, j + 9, k + 3, Blocks.grass); + world.func_147449_b(i + 3, j + 9, k + 4, Blocks.dirt); + world.func_147449_b(i + 3, j + 9, k + 5, Blocks.grass); + world.func_147449_b(i + 3, j + 9, k + 6, Blocks.grass); + world.func_147449_b(i + 3, j + 9, k + 7, Blocks.grass); + world.func_147449_b(i + 3, j + 9, k + 8, Blocks.grass); + world.func_147449_b(i + 3, j + 9, k + 9, Blocks.grass); + world.func_147449_b(i + 3, j + 9, k + 10, Blocks.dirt); + world.func_147449_b(i + 3, j + 9, k + 11, Blocks.grass); + world.func_147449_b(i + 3, j + 10, k + 4, Blocks.log); + world.func_147465_d(i + 3, j + 10, k + 5, Blocks.stone_slab, 7, 2); + world.func_147465_d(i + 3, j + 10, k + 6, Blocks.stone_slab, 7, 2); + world.func_147465_d(i + 3, j + 10, k + 7, Blocks.stone_slab, 7, 2); + world.func_147465_d(i + 3, j + 10, k + 8, Blocks.stone_slab, 7, 2); + world.func_147465_d(i + 3, j + 10, k + 9, Blocks.stone_slab, 7, 2); + world.func_147449_b(i + 3, j + 10, k + 10, Blocks.log); + world.func_147465_d(i + 3, j + 11, k + 4, Blocks.leaves, 4, 2); + world.func_147465_d(i + 3, j + 11, k + 10, Blocks.leaves, 4, 2); + world.func_147465_d(i + 3, j + 12, k + 4, Blocks.leaves, 4, 2); + world.func_147465_d(i + 3, j + 12, k + 10, Blocks.leaves, 4, 2); + world.func_147465_d(i + 3, j + 14, k + 4, Blocks.quartz_stairs, 2, 2); + world.func_147449_b(i + 3, j + 14, k + 5, Blocks.quartz_stairs); + world.func_147449_b(i + 3, j + 14, k + 6, Blocks.quartz_stairs); + world.func_147449_b(i + 3, j + 14, k + 7, Blocks.quartz_stairs); + world.func_147449_b(i + 3, j + 14, k + 8, Blocks.quartz_stairs); + world.func_147449_b(i + 3, j + 14, k + 9, Blocks.quartz_stairs); + world.func_147465_d(i + 3, j + 14, k + 10, Blocks.quartz_stairs, 3, 2); + world.func_147449_b(i + 4, j + 5, k + 2, Blocks.dirt); + world.func_147449_b(i + 4, j + 5, k + 6, Blocks.dirt); + world.func_147449_b(i + 4, j + 5, k + 7, Blocks.dirt); + world.func_147449_b(i + 4, j + 5, k + 8, Blocks.dirt); + world.func_147449_b(i + 4, j + 6, k + 2, Blocks.dirt); + world.func_147449_b(i + 4, j + 6, k + 4, Blocks.dirt); + world.func_147449_b(i + 4, j + 6, k + 5, Blocks.dirt); + world.func_147449_b(i + 4, j + 6, k + 6, Blocks.dirt); + world.func_147449_b(i + 4, j + 6, k + 7, Blocks.dirt); + world.func_147449_b(i + 4, j + 6, k + 8, Blocks.dirt); + world.func_147449_b(i + 4, j + 6, k + 9, Blocks.dirt); + world.func_147449_b(i + 4, j + 6, k + 10, Blocks.dirt); + world.func_147449_b(i + 4, j + 6, k + 12, Blocks.dirt); + world.func_147449_b(i + 4, j + 7, k + 2, Blocks.dirt); + world.func_147449_b(i + 4, j + 7, k + 3, Blocks.dirt); + world.func_147449_b(i + 4, j + 7, k + 4, Blocks.dirt); + world.func_147449_b(i + 4, j + 7, k + 5, Blocks.dirt); + world.func_147449_b(i + 4, j + 7, k + 6, Blocks.dirt); + world.func_147449_b(i + 4, j + 7, k + 7, Blocks.dirt); + world.func_147449_b(i + 4, j + 7, k + 8, Blocks.dirt); + world.func_147449_b(i + 4, j + 7, k + 9, Blocks.dirt); + world.func_147449_b(i + 4, j + 7, k + 10, Blocks.dirt); + world.func_147449_b(i + 4, j + 7, k + 11, Blocks.dirt); + world.func_147449_b(i + 4, j + 7, k + 12, Blocks.dirt); + world.func_147449_b(i + 4, j + 8, k + 2, Blocks.dirt); + world.func_147449_b(i + 4, j + 8, k + 3, Blocks.dirt); + world.func_147449_b(i + 4, j + 8, k + 4, Blocks.dirt); + world.func_147449_b(i + 4, j + 8, k + 5, Blocks.dirt); + world.func_147449_b(i + 4, j + 8, k + 6, Blocks.dirt); + world.func_147449_b(i + 4, j + 8, k + 7, Blocks.dirt); + world.func_147449_b(i + 4, j + 8, k + 8, Blocks.dirt); + world.func_147449_b(i + 4, j + 8, k + 9, Blocks.dirt); + world.func_147449_b(i + 4, j + 8, k + 10, Blocks.dirt); + world.func_147449_b(i + 4, j + 8, k + 11, Blocks.dirt); + world.func_147449_b(i + 4, j + 8, k + 12, Blocks.dirt); + world.func_147449_b(i + 4, j + 9, k + 2, Blocks.grass); + world.func_147449_b(i + 4, j + 9, k + 3, Blocks.dirt); + world.func_147449_b(i + 4, j + 9, k + 4, Blocks.grass); + world.func_147449_b(i + 4, j + 9, k + 5, Blocks.dirt); + world.func_147449_b(i + 4, j + 9, k + 6, Blocks.dirt); + world.func_147449_b(i + 4, j + 9, k + 7, Blocks.dirt); + world.func_147449_b(i + 4, j + 9, k + 8, Blocks.dirt); + world.func_147449_b(i + 4, j + 9, k + 9, Blocks.dirt); + world.func_147449_b(i + 4, j + 9, k + 10, Blocks.grass); + world.func_147449_b(i + 4, j + 9, k + 11, Blocks.dirt); + world.func_147449_b(i + 4, j + 9, k + 12, Blocks.grass); + world.func_147449_b(i + 4, j + 10, k + 3, Blocks.log); + world.func_147465_d(i + 4, j + 10, k + 4, Blocks.stone_slab, 7, 2); + world.func_147465_d(i + 4, j + 10, k + 5, Blocks.quartz_block, 2, 2); + world.func_147449_b(i + 4, j + 10, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 4, j + 10, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 4, j + 10, k + 8, Blocks.quartz_block); + world.func_147465_d(i + 4, j + 10, k + 9, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 4, j + 10, k + 10, Blocks.stone_slab, 7, 2); + world.func_147449_b(i + 4, j + 10, k + 11, Blocks.log); + world.func_147465_d(i + 4, j + 11, k + 3, Blocks.leaves, 4, 2); + world.func_147465_d(i + 4, j + 11, k + 5, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 4, j + 11, k + 9, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 4, j + 11, k + 11, Blocks.leaves, 4, 2); + world.func_147465_d(i + 4, j + 12, k + 3, Blocks.leaves, 4, 2); + world.func_147465_d(i + 4, j + 12, k + 5, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 4, j + 12, k + 9, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 4, j + 12, k + 11, Blocks.leaves, 4, 2); + world.func_147465_d(i + 4, j + 13, k + 5, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 4, j + 13, k + 9, Blocks.quartz_block, 2, 2); + world.func_147449_b(i + 4, j + 14, k + 3, Blocks.quartz_stairs); + world.func_147449_b(i + 4, j + 14, k + 4, Blocks.quartz_stairs); + world.func_147449_b(i + 4, j + 14, k + 5, Blocks.quartz_block); + world.func_147449_b(i + 4, j + 14, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 4, j + 14, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 4, j + 14, k + 8, Blocks.quartz_block); + world.func_147449_b(i + 4, j + 14, k + 9, Blocks.quartz_block); + world.func_147465_d(i + 4, j + 14, k + 10, Blocks.quartz_stairs, 3, 2); + world.func_147449_b(i + 4, j + 14, k + 11, Blocks.quartz_stairs); + world.func_147449_b(i + 4, j + 15, k + 5, Blocks.quartz_stairs); + world.func_147449_b(i + 4, j + 15, k + 6, Blocks.quartz_stairs); + world.func_147449_b(i + 4, j + 15, k + 7, Blocks.quartz_stairs); + world.func_147449_b(i + 4, j + 15, k + 8, Blocks.quartz_stairs); + world.func_147449_b(i + 4, j + 15, k + 9, Blocks.quartz_stairs); + world.func_147449_b(i + 5, j + 2, k + 9, Blocks.dirt); + world.func_147449_b(i + 5, j + 3, k + 9, Blocks.dirt); + world.func_147449_b(i + 5, j + 4, k + 4, Blocks.dirt); + world.func_147449_b(i + 5, j + 4, k + 7, Blocks.dirt); + world.func_147449_b(i + 5, j + 4, k + 9, Blocks.dirt); + world.func_147449_b(i + 5, j + 4, k + 11, Blocks.dirt); + world.func_147449_b(i + 5, j + 5, k + 4, Blocks.dirt); + world.func_147449_b(i + 5, j + 5, k + 5, Blocks.dirt); + world.func_147449_b(i + 5, j + 5, k + 6, Blocks.dirt); + world.func_147449_b(i + 5, j + 5, k + 7, Blocks.dirt); + world.func_147449_b(i + 5, j + 5, k + 8, Blocks.dirt); + world.func_147449_b(i + 5, j + 5, k + 9, Blocks.dirt); + world.func_147449_b(i + 5, j + 5, k + 11, Blocks.dirt); + world.func_147449_b(i + 5, j + 6, k + 3, Blocks.dirt); + world.func_147449_b(i + 5, j + 6, k + 4, Blocks.dirt); + world.func_147449_b(i + 5, j + 6, k + 5, Blocks.dirt); + world.func_147449_b(i + 5, j + 6, k + 6, Blocks.dirt); + world.func_147449_b(i + 5, j + 6, k + 7, Blocks.dirt); + world.func_147449_b(i + 5, j + 6, k + 8, Blocks.dirt); + world.func_147449_b(i + 5, j + 6, k + 9, Blocks.dirt); + world.func_147449_b(i + 5, j + 6, k + 10, Blocks.dirt); + world.func_147449_b(i + 5, j + 6, k + 11, Blocks.dirt); + world.func_147449_b(i + 5, j + 7, k + 2, Blocks.dirt); + world.func_147449_b(i + 5, j + 7, k + 3, Blocks.dirt); + world.func_147449_b(i + 5, j + 7, k + 4, Blocks.dirt); + world.func_147449_b(i + 5, j + 7, k + 5, Blocks.dirt); + world.func_147449_b(i + 5, j + 7, k + 6, Blocks.dirt); + world.func_147449_b(i + 5, j + 7, k + 7, Blocks.dirt); + world.func_147449_b(i + 5, j + 7, k + 8, Blocks.dirt); + world.func_147449_b(i + 5, j + 7, k + 9, Blocks.dirt); + world.func_147449_b(i + 5, j + 7, k + 10, Blocks.dirt); + world.func_147449_b(i + 5, j + 7, k + 11, Blocks.dirt); + world.func_147449_b(i + 5, j + 7, k + 12, Blocks.dirt); + world.func_147449_b(i + 5, j + 8, k + 2, Blocks.dirt); + world.func_147449_b(i + 5, j + 8, k + 3, Blocks.dirt); + world.func_147449_b(i + 5, j + 8, k + 4, Blocks.dirt); + world.func_147449_b(i + 5, j + 8, k + 5, Blocks.dirt); + world.func_147449_b(i + 5, j + 8, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 5, j + 8, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 5, j + 8, k + 8, Blocks.quartz_block); + world.func_147449_b(i + 5, j + 8, k + 9, Blocks.dirt); + world.func_147449_b(i + 5, j + 8, k + 10, Blocks.dirt); + world.func_147449_b(i + 5, j + 8, k + 11, Blocks.dirt); + world.func_147449_b(i + 5, j + 8, k + 12, Blocks.dirt); + world.func_147449_b(i + 5, j + 9, k + 2, Blocks.grass); + world.func_147449_b(i + 5, j + 9, k + 3, Blocks.grass); + world.func_147449_b(i + 5, j + 9, k + 4, Blocks.dirt); + world.func_147449_b(i + 5, j + 9, k + 5, Blocks.dirt); + world.func_147449_b(i + 5, j + 9, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 5, j + 9, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 5, j + 9, k + 8, Blocks.quartz_block); + world.func_147449_b(i + 5, j + 9, k + 9, Blocks.dirt); + world.func_147449_b(i + 5, j + 9, k + 10, Blocks.dirt); + world.func_147449_b(i + 5, j + 9, k + 11, Blocks.grass); + world.func_147449_b(i + 5, j + 9, k + 12, Blocks.grass); + world.func_147465_d(i + 5, j + 10, k + 3, Blocks.stone_slab, 7, 2); + world.func_147465_d(i + 5, j + 10, k + 4, Blocks.quartz_block, 2, 2); + world.func_147449_b(i + 5, j + 10, k + 5, Blocks.quartz_block); + world.func_147465_d(i + 5, j + 10, k + 6, Blocks.quartz_stairs, 1, 2); + world.func_147465_d(i + 5, j + 10, k + 7, Blocks.quartz_stairs, 1, 2); + world.func_147465_d(i + 5, j + 10, k + 8, Blocks.quartz_stairs, 1, 2); + world.func_147449_b(i + 5, j + 10, k + 9, Blocks.quartz_block); + world.func_147465_d(i + 5, j + 10, k + 10, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 5, j + 10, k + 11, Blocks.stone_slab, 7, 2); + world.func_147465_d(i + 5, j + 11, k + 4, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 5, j + 11, k + 10, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 5, j + 12, k + 4, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 5, j + 12, k + 10, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 5, j + 13, k + 4, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 5, j + 13, k + 10, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 5, j + 14, k + 3, Blocks.quartz_stairs, 2, 2); + world.func_147449_b(i + 5, j + 14, k + 4, Blocks.quartz_block); + world.func_147449_b(i + 5, j + 14, k + 10, Blocks.quartz_block); + world.func_147465_d(i + 5, j + 14, k + 11, Blocks.quartz_stairs, 3, 2); + world.func_147465_d(i + 5, j + 15, k + 4, Blocks.quartz_stairs, 2, 2); + world.func_147449_b(i + 5, j + 15, k + 5, Blocks.quartz_block); + world.func_147449_b(i + 5, j + 15, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 5, j + 15, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 5, j + 15, k + 8, Blocks.quartz_block); + world.func_147449_b(i + 5, j + 15, k + 9, Blocks.quartz_block); + world.func_147465_d(i + 5, j + 15, k + 10, Blocks.quartz_stairs, 3, 2); + world.func_147449_b(i + 5, j + 16, k + 5, Blocks.quartz_block); + world.func_147449_b(i + 5, j + 16, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 5, j + 16, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 5, j + 16, k + 8, Blocks.quartz_block); + world.func_147449_b(i + 5, j + 16, k + 9, Blocks.quartz_block); + world.func_147465_d(i + 5, j + 17, k + 5, Blocks.quartz_stairs, 2, 2); + world.func_147449_b(i + 5, j + 17, k + 6, Blocks.quartz_stairs); + world.func_147449_b(i + 5, j + 17, k + 7, Blocks.quartz_stairs); + world.func_147449_b(i + 5, j + 17, k + 8, Blocks.quartz_stairs); + world.func_147449_b(i + 5, j + 17, k + 9, Blocks.quartz_stairs); + world.func_147449_b(i + 6, j + 3, k + 7, Blocks.dirt); + world.func_147449_b(i + 6, j + 4, k + 2, Blocks.dirt); + world.func_147449_b(i + 6, j + 4, k + 6, Blocks.dirt); + world.func_147449_b(i + 6, j + 4, k + 7, Blocks.dirt); + world.func_147449_b(i + 6, j + 4, k + 8, Blocks.dirt); + world.func_147449_b(i + 6, j + 5, k + 2, Blocks.dirt); + world.func_147449_b(i + 6, j + 5, k + 4, Blocks.dirt); + world.func_147449_b(i + 6, j + 5, k + 5, Blocks.dirt); + world.func_147449_b(i + 6, j + 5, k + 6, Blocks.dirt); + world.func_147449_b(i + 6, j + 5, k + 7, Blocks.dirt); + world.func_147449_b(i + 6, j + 5, k + 8, Blocks.dirt); + world.func_147449_b(i + 6, j + 5, k + 9, Blocks.dirt); + world.func_147449_b(i + 6, j + 5, k + 10, Blocks.dirt); + world.func_147449_b(i + 6, j + 5, k + 13, Blocks.dirt); + world.func_147449_b(i + 6, j + 6, k + 2, Blocks.dirt); + world.func_147449_b(i + 6, j + 6, k + 3, Blocks.dirt); + world.func_147449_b(i + 6, j + 6, k + 4, Blocks.dirt); + world.func_147449_b(i + 6, j + 6, k + 5, Blocks.dirt); + world.func_147449_b(i + 6, j + 6, k + 6, Blocks.dirt); + world.func_147449_b(i + 6, j + 6, k + 7, Blocks.dirt); + world.func_147449_b(i + 6, j + 6, k + 8, Blocks.dirt); + world.func_147449_b(i + 6, j + 6, k + 9, Blocks.dirt); + world.func_147449_b(i + 6, j + 6, k + 10, Blocks.dirt); + world.func_147449_b(i + 6, j + 6, k + 11, Blocks.dirt); + world.func_147449_b(i + 6, j + 6, k + 13, Blocks.dirt); + world.func_147449_b(i + 6, j + 7, k + 1, Blocks.dirt); + world.func_147449_b(i + 6, j + 7, k + 2, Blocks.dirt); + world.func_147449_b(i + 6, j + 7, k + 3, Blocks.dirt); + world.func_147449_b(i + 6, j + 7, k + 4, Blocks.dirt); + world.func_147449_b(i + 6, j + 7, k + 5, Blocks.dirt); + world.func_147449_b(i + 6, j + 7, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 6, j + 7, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 6, j + 7, k + 8, Blocks.quartz_block); + world.func_147449_b(i + 6, j + 7, k + 9, Blocks.dirt); + world.func_147449_b(i + 6, j + 7, k + 10, Blocks.dirt); + world.func_147449_b(i + 6, j + 7, k + 11, Blocks.dirt); + world.func_147449_b(i + 6, j + 7, k + 12, Blocks.dirt); + world.func_147449_b(i + 6, j + 7, k + 13, Blocks.dirt); + world.func_147449_b(i + 6, j + 8, k + 1, Blocks.dirt); + world.func_147449_b(i + 6, j + 8, k + 2, Blocks.dirt); + world.func_147449_b(i + 6, j + 8, k + 3, Blocks.dirt); + world.func_147449_b(i + 6, j + 8, k + 4, Blocks.dirt); + world.func_147449_b(i + 6, j + 8, k + 5, Blocks.quartz_block); + world.func_147449_b(i + 6, j + 8, k + 6, portal); + world.func_147449_b(i + 6, j + 8, k + 7, portal); + world.func_147449_b(i + 6, j + 8, k + 8, portal); + world.func_147449_b(i + 6, j + 8, k + 9, Blocks.quartz_block); + world.func_147449_b(i + 6, j + 8, k + 10, Blocks.dirt); + world.func_147449_b(i + 6, j + 8, k + 11, Blocks.dirt); + world.func_147449_b(i + 6, j + 8, k + 12, Blocks.dirt); + world.func_147449_b(i + 6, j + 8, k + 13, Blocks.dirt); + world.func_147449_b(i + 6, j + 9, k + 1, Blocks.grass); + world.func_147449_b(i + 6, j + 9, k + 2, Blocks.grass); + world.func_147449_b(i + 6, j + 9, k + 3, Blocks.grass); + world.func_147449_b(i + 6, j + 9, k + 4, Blocks.dirt); + world.func_147449_b(i + 6, j + 9, k + 5, Blocks.quartz_block); + world.func_147449_b(i + 6, j + 9, k + 9, Blocks.quartz_block); + world.func_147449_b(i + 6, j + 9, k + 10, Blocks.dirt); + world.func_147449_b(i + 6, j + 9, k + 11, Blocks.grass); + world.func_147449_b(i + 6, j + 9, k + 12, Blocks.grass); + world.func_147449_b(i + 6, j + 9, k + 13, Blocks.grass); + world.func_147465_d(i + 6, j + 10, k + 3, Blocks.stone_slab, 7, 2); + world.func_147449_b(i + 6, j + 10, k + 4, Blocks.quartz_block); + world.func_147465_d(i + 6, j + 10, k + 5, Blocks.quartz_stairs, 3, 2); + world.func_147465_d(i + 6, j + 10, k + 9, Blocks.quartz_stairs, 2, 2); + world.func_147449_b(i + 6, j + 10, k + 10, Blocks.quartz_block); + world.func_147465_d(i + 6, j + 10, k + 11, Blocks.stone_slab, 7, 2); + world.func_147465_d(i + 6, j + 14, k + 3, Blocks.quartz_stairs, 2, 2); + world.func_147449_b(i + 6, j + 14, k + 4, Blocks.quartz_block); + world.func_147449_b(i + 6, j + 14, k + 10, Blocks.quartz_block); + world.func_147465_d(i + 6, j + 14, k + 11, Blocks.quartz_stairs, 3, 2); + world.func_147465_d(i + 6, j + 15, k + 4, Blocks.quartz_stairs, 2, 2); + world.func_147449_b(i + 6, j + 15, k + 5, Blocks.quartz_block); + world.func_147449_b(i + 6, j + 15, k + 9, Blocks.quartz_block); + world.func_147465_d(i + 6, j + 15, k + 10, Blocks.quartz_stairs, 3, 2); + world.func_147449_b(i + 6, j + 16, k + 5, Blocks.quartz_block); + world.func_147449_b(i + 6, j + 16, k + 9, Blocks.quartz_block); + world.func_147465_d(i + 6, j + 17, k + 5, Blocks.quartz_stairs, 2, 2); + world.func_147449_b(i + 6, j + 17, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 6, j + 17, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 6, j + 17, k + 8, Blocks.quartz_block); + world.func_147465_d(i + 6, j + 17, k + 9, Blocks.quartz_stairs, 3, 2); + world.func_147449_b(i + 6, j + 18, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 6, j + 18, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 6, j + 18, k + 8, Blocks.quartz_block); + world.func_147449_b(i + 6, j + 19, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 6, j + 19, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 6, j + 19, k + 8, Blocks.quartz_block); + world.func_147449_b(i + 6, j + 20, k + 6, Blocks.quartz_stairs); + world.func_147449_b(i + 6, j + 20, k + 7, Blocks.quartz_stairs); + world.func_147465_d(i + 6, j + 20, k + 8, Blocks.quartz_stairs, 3, 2); + world.func_147449_b(i + 7, j + 1, k + 7, Blocks.dirt); + world.func_147449_b(i + 7, j + 2, k + 7, Blocks.dirt); + world.func_147449_b(i + 7, j + 3, k + 6, Blocks.dirt); + world.func_147449_b(i + 7, j + 3, k + 7, Blocks.dirt); + world.func_147449_b(i + 7, j + 3, k + 8, Blocks.dirt); + world.func_147449_b(i + 7, j + 3, k + 10, Blocks.dirt); + world.func_147449_b(i + 7, j + 4, k + 5, Blocks.dirt); + world.func_147449_b(i + 7, j + 4, k + 6, Blocks.dirt); + world.func_147449_b(i + 7, j + 4, k + 7, Blocks.dirt); + world.func_147449_b(i + 7, j + 4, k + 8, Blocks.dirt); + world.func_147449_b(i + 7, j + 4, k + 9, Blocks.dirt); + world.func_147449_b(i + 7, j + 4, k + 10, Blocks.dirt); + world.func_147449_b(i + 7, j + 5, k + 4, Blocks.dirt); + world.func_147449_b(i + 7, j + 5, k + 5, Blocks.dirt); + world.func_147449_b(i + 7, j + 5, k + 6, Blocks.dirt); + world.func_147449_b(i + 7, j + 5, k + 7, Blocks.dirt); + world.func_147449_b(i + 7, j + 5, k + 8, Blocks.dirt); + world.func_147449_b(i + 7, j + 5, k + 9, Blocks.dirt); + world.func_147449_b(i + 7, j + 5, k + 10, Blocks.dirt); + world.func_147449_b(i + 7, j + 6, k + 2, Blocks.dirt); + world.func_147449_b(i + 7, j + 6, k + 3, Blocks.dirt); + world.func_147449_b(i + 7, j + 6, k + 4, Blocks.dirt); + world.func_147449_b(i + 7, j + 6, k + 5, Blocks.dirt); + world.func_147449_b(i + 7, j + 6, k + 6, Blocks.dirt); + world.func_147449_b(i + 7, j + 6, k + 7, Blocks.dirt); + world.func_147449_b(i + 7, j + 6, k + 8, Blocks.dirt); + world.func_147449_b(i + 7, j + 6, k + 9, Blocks.dirt); + world.func_147449_b(i + 7, j + 6, k + 10, Blocks.dirt); + world.func_147449_b(i + 7, j + 6, k + 11, Blocks.dirt); + world.func_147449_b(i + 7, j + 6, k + 12, Blocks.dirt); + world.func_147449_b(i + 7, j + 7, k + 1, Blocks.dirt); + world.func_147449_b(i + 7, j + 7, k + 2, Blocks.dirt); + world.func_147449_b(i + 7, j + 7, k + 3, Blocks.dirt); + world.func_147449_b(i + 7, j + 7, k + 4, Blocks.dirt); + world.func_147449_b(i + 7, j + 7, k + 5, Blocks.dirt); + world.func_147449_b(i + 7, j + 7, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 7, j + 7, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 7, j + 7, k + 8, Blocks.quartz_block); + world.func_147449_b(i + 7, j + 7, k + 9, Blocks.dirt); + world.func_147449_b(i + 7, j + 7, k + 10, Blocks.dirt); + world.func_147449_b(i + 7, j + 7, k + 11, Blocks.dirt); + world.func_147449_b(i + 7, j + 7, k + 12, Blocks.dirt); + world.func_147449_b(i + 7, j + 7, k + 13, Blocks.dirt); + world.func_147449_b(i + 7, j + 8, k + 1, Blocks.dirt); + world.func_147449_b(i + 7, j + 8, k + 2, Blocks.dirt); + world.func_147449_b(i + 7, j + 8, k + 3, Blocks.dirt); + world.func_147449_b(i + 7, j + 8, k + 4, Blocks.dirt); + world.func_147449_b(i + 7, j + 8, k + 5, Blocks.quartz_block); + world.func_147449_b(i + 7, j + 8, k + 6, portal); + world.func_147449_b(i + 7, j + 8, k + 7, portal); + world.func_147449_b(i + 7, j + 8, k + 8, portal); + world.func_147449_b(i + 7, j + 8, k + 9, Blocks.quartz_block); + world.func_147449_b(i + 7, j + 8, k + 10, Blocks.dirt); + world.func_147449_b(i + 7, j + 8, k + 11, Blocks.dirt); + world.func_147449_b(i + 7, j + 8, k + 12, Blocks.dirt); + world.func_147449_b(i + 7, j + 8, k + 13, Blocks.dirt); + world.func_147449_b(i + 7, j + 9, k + 1, Blocks.grass); + world.func_147449_b(i + 7, j + 9, k + 2, Blocks.grass); + world.func_147449_b(i + 7, j + 9, k + 3, Blocks.grass); + world.func_147449_b(i + 7, j + 9, k + 4, Blocks.dirt); + world.func_147449_b(i + 7, j + 9, k + 5, Blocks.quartz_block); + world.func_147449_b(i + 7, j + 9, k + 9, Blocks.quartz_block); + world.func_147449_b(i + 7, j + 9, k + 10, Blocks.dirt); + world.func_147449_b(i + 7, j + 9, k + 11, Blocks.grass); + world.func_147449_b(i + 7, j + 9, k + 12, Blocks.grass); + world.func_147449_b(i + 7, j + 9, k + 13, Blocks.grass); + world.func_147465_d(i + 7, j + 10, k + 3, Blocks.stone_slab, 7, 2); + world.func_147449_b(i + 7, j + 10, k + 4, Blocks.quartz_block); + world.func_147465_d(i + 7, j + 10, k + 5, Blocks.quartz_stairs, 3, 2); + world.func_147465_d(i + 7, j + 10, k + 9, Blocks.quartz_stairs, 2, 2); + world.func_147449_b(i + 7, j + 10, k + 10, Blocks.quartz_block); + world.func_147465_d(i + 7, j + 10, k + 11, Blocks.stone_slab, 7, 2); + world.func_147465_d(i + 7, j + 14, k + 3, Blocks.quartz_stairs, 2, 2); + world.func_147449_b(i + 7, j + 14, k + 4, Blocks.quartz_block); + world.func_147449_b(i + 7, j + 14, k + 10, Blocks.quartz_block); + world.func_147465_d(i + 7, j + 14, k + 11, Blocks.quartz_stairs, 3, 2); + world.func_147465_d(i + 7, j + 15, k + 4, Blocks.quartz_stairs, 2, 2); + world.func_147449_b(i + 7, j + 15, k + 5, Blocks.quartz_block); + world.func_147449_b(i + 7, j + 15, k + 9, Blocks.quartz_block); + world.func_147465_d(i + 7, j + 15, k + 10, Blocks.quartz_stairs, 3, 2); + world.func_147449_b(i + 7, j + 16, k + 5, Blocks.quartz_block); + world.func_147449_b(i + 7, j + 16, k + 9, Blocks.quartz_block); + world.func_147465_d(i + 7, j + 17, k + 5, Blocks.quartz_stairs, 2, 2); + world.func_147449_b(i + 7, j + 17, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 7, j + 17, k + 8, Blocks.quartz_block); + world.func_147465_d(i + 7, j + 17, k + 9, Blocks.quartz_stairs, 3, 2); + world.func_147449_b(i + 7, j + 18, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 7, j + 18, k + 8, Blocks.quartz_block); + world.func_147449_b(i + 7, j + 19, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 7, j + 19, k + 8, Blocks.quartz_block); + world.func_147465_d(i + 7, j + 20, k + 6, Blocks.quartz_stairs, 2, 2); + world.func_147449_b(i + 7, j + 20, k + 7, Blocks.quartz_block); + world.func_147465_d(i + 7, j + 20, k + 8, Blocks.quartz_stairs, 3, 2); + world.func_147449_b(i + 7, j + 21, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 7, j + 22, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 7, j + 23, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 8, j + 3, k + 4, Blocks.dirt); + world.func_147449_b(i + 8, j + 3, k + 7, Blocks.dirt); + world.func_147449_b(i + 8, j + 4, k + 4, Blocks.dirt); + world.func_147449_b(i + 8, j + 4, k + 6, Blocks.dirt); + world.func_147449_b(i + 8, j + 4, k + 7, Blocks.dirt); + world.func_147449_b(i + 8, j + 4, k + 8, Blocks.dirt); + world.func_147449_b(i + 8, j + 5, k + 1, Blocks.dirt); + world.func_147449_b(i + 8, j + 5, k + 4, Blocks.dirt); + world.func_147449_b(i + 8, j + 5, k + 5, Blocks.dirt); + world.func_147449_b(i + 8, j + 5, k + 6, Blocks.dirt); + world.func_147449_b(i + 8, j + 5, k + 7, Blocks.dirt); + world.func_147449_b(i + 8, j + 5, k + 8, Blocks.dirt); + world.func_147449_b(i + 8, j + 5, k + 9, Blocks.dirt); + world.func_147449_b(i + 8, j + 5, k + 10, Blocks.dirt); + world.func_147449_b(i + 8, j + 6, k + 1, Blocks.dirt); + world.func_147449_b(i + 8, j + 6, k + 3, Blocks.dirt); + world.func_147449_b(i + 8, j + 6, k + 4, Blocks.dirt); + world.func_147449_b(i + 8, j + 6, k + 5, Blocks.dirt); + world.func_147449_b(i + 8, j + 6, k + 6, Blocks.dirt); + world.func_147449_b(i + 8, j + 6, k + 7, Blocks.dirt); + world.func_147449_b(i + 8, j + 6, k + 8, Blocks.dirt); + world.func_147449_b(i + 8, j + 6, k + 9, Blocks.dirt); + world.func_147449_b(i + 8, j + 6, k + 10, Blocks.dirt); + world.func_147449_b(i + 8, j + 6, k + 11, Blocks.dirt); + world.func_147449_b(i + 8, j + 7, k + 1, Blocks.dirt); + world.func_147449_b(i + 8, j + 7, k + 2, Blocks.dirt); + world.func_147449_b(i + 8, j + 7, k + 3, Blocks.dirt); + world.func_147449_b(i + 8, j + 7, k + 4, Blocks.dirt); + world.func_147449_b(i + 8, j + 7, k + 5, Blocks.dirt); + world.func_147449_b(i + 8, j + 7, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 8, j + 7, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 8, j + 7, k + 8, Blocks.quartz_block); + world.func_147449_b(i + 8, j + 7, k + 9, Blocks.dirt); + world.func_147449_b(i + 8, j + 7, k + 10, Blocks.dirt); + world.func_147449_b(i + 8, j + 7, k + 11, Blocks.dirt); + world.func_147449_b(i + 8, j + 7, k + 12, Blocks.dirt); + world.func_147449_b(i + 8, j + 7, k + 13, Blocks.dirt); + world.func_147449_b(i + 8, j + 8, k + 1, Blocks.dirt); + world.func_147449_b(i + 8, j + 8, k + 2, Blocks.dirt); + world.func_147449_b(i + 8, j + 8, k + 3, Blocks.dirt); + world.func_147449_b(i + 8, j + 8, k + 4, Blocks.dirt); + world.func_147449_b(i + 8, j + 8, k + 5, Blocks.quartz_block); + world.func_147449_b(i + 8, j + 8, k + 6, portal); + world.func_147449_b(i + 8, j + 8, k + 7, portal); + world.func_147449_b(i + 8, j + 8, k + 8, portal); + world.func_147449_b(i + 8, j + 8, k + 9, Blocks.quartz_block); + world.func_147449_b(i + 8, j + 8, k + 10, Blocks.dirt); + world.func_147449_b(i + 8, j + 8, k + 11, Blocks.dirt); + world.func_147449_b(i + 8, j + 8, k + 12, Blocks.dirt); + world.func_147449_b(i + 8, j + 8, k + 13, Blocks.dirt); + world.func_147449_b(i + 8, j + 9, k + 1, Blocks.grass); + world.func_147449_b(i + 8, j + 9, k + 2, Blocks.grass); + world.func_147449_b(i + 8, j + 9, k + 3, Blocks.grass); + world.func_147449_b(i + 8, j + 9, k + 4, Blocks.dirt); + world.func_147449_b(i + 8, j + 9, k + 5, Blocks.quartz_block); + world.func_147449_b(i + 8, j + 9, k + 9, Blocks.quartz_block); + world.func_147449_b(i + 8, j + 9, k + 10, Blocks.dirt); + world.func_147449_b(i + 8, j + 9, k + 11, Blocks.grass); + world.func_147449_b(i + 8, j + 9, k + 12, Blocks.grass); + world.func_147449_b(i + 8, j + 9, k + 13, Blocks.grass); + world.func_147465_d(i + 8, j + 10, k + 3, Blocks.stone_slab, 7, 2); + world.func_147449_b(i + 8, j + 10, k + 4, Blocks.quartz_block); + world.func_147465_d(i + 8, j + 10, k + 5, Blocks.quartz_stairs, 3, 2); + world.func_147465_d(i + 8, j + 10, k + 9, Blocks.quartz_stairs, 2, 2); + world.func_147449_b(i + 8, j + 10, k + 10, Blocks.quartz_block); + world.func_147465_d(i + 8, j + 10, k + 11, Blocks.stone_slab, 7, 2); + world.func_147465_d(i + 8, j + 14, k + 3, Blocks.quartz_stairs, 2, 2); + world.func_147449_b(i + 8, j + 14, k + 4, Blocks.quartz_block); + world.func_147449_b(i + 8, j + 14, k + 10, Blocks.quartz_block); + world.func_147465_d(i + 8, j + 14, k + 11, Blocks.quartz_stairs, 3, 2); + world.func_147465_d(i + 8, j + 15, k + 4, Blocks.quartz_stairs, 2, 2); + world.func_147449_b(i + 8, j + 15, k + 5, Blocks.quartz_block); + world.func_147449_b(i + 8, j + 15, k + 9, Blocks.quartz_block); + world.func_147465_d(i + 8, j + 15, k + 10, Blocks.quartz_stairs, 3, 2); + world.func_147449_b(i + 8, j + 16, k + 5, Blocks.quartz_block); + world.func_147449_b(i + 8, j + 16, k + 9, Blocks.quartz_block); + world.func_147465_d(i + 8, j + 17, k + 5, Blocks.quartz_stairs, 2, 2); + world.func_147449_b(i + 8, j + 17, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 8, j + 17, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 8, j + 17, k + 8, Blocks.quartz_block); + world.func_147465_d(i + 8, j + 17, k + 9, Blocks.quartz_stairs, 3, 2); + world.func_147449_b(i + 8, j + 18, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 8, j + 18, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 8, j + 18, k + 8, Blocks.quartz_block); + world.func_147449_b(i + 8, j + 19, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 8, j + 19, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 8, j + 19, k + 8, Blocks.quartz_block); + world.func_147465_d(i + 8, j + 20, k + 6, Blocks.quartz_stairs, 1, 2); + world.func_147465_d(i + 8, j + 20, k + 7, Blocks.quartz_stairs, 1, 2); + world.func_147465_d(i + 8, j + 20, k + 8, Blocks.quartz_stairs, 3, 2); + world.func_147449_b(i + 9, j + 4, k + 7, Blocks.dirt); + world.func_147449_b(i + 9, j + 5, k + 3, Blocks.dirt); + world.func_147449_b(i + 9, j + 5, k + 5, Blocks.dirt); + world.func_147449_b(i + 9, j + 5, k + 6, Blocks.dirt); + world.func_147449_b(i + 9, j + 5, k + 7, Blocks.dirt); + world.func_147449_b(i + 9, j + 5, k + 8, Blocks.dirt); + world.func_147449_b(i + 9, j + 5, k + 9, Blocks.dirt); + world.func_147449_b(i + 9, j + 5, k + 12, Blocks.dirt); + world.func_147449_b(i + 9, j + 6, k + 3, Blocks.dirt); + world.func_147449_b(i + 9, j + 6, k + 4, Blocks.dirt); + world.func_147449_b(i + 9, j + 6, k + 5, Blocks.dirt); + world.func_147449_b(i + 9, j + 6, k + 6, Blocks.dirt); + world.func_147449_b(i + 9, j + 6, k + 7, Blocks.dirt); + world.func_147449_b(i + 9, j + 6, k + 8, Blocks.dirt); + world.func_147449_b(i + 9, j + 6, k + 9, Blocks.dirt); + world.func_147449_b(i + 9, j + 6, k + 10, Blocks.dirt); + world.func_147449_b(i + 9, j + 6, k + 11, Blocks.dirt); + world.func_147449_b(i + 9, j + 6, k + 12, Blocks.dirt); + world.func_147449_b(i + 9, j + 7, k + 2, Blocks.dirt); + world.func_147449_b(i + 9, j + 7, k + 3, Blocks.dirt); + world.func_147449_b(i + 9, j + 7, k + 4, Blocks.dirt); + world.func_147449_b(i + 9, j + 7, k + 5, Blocks.dirt); + world.func_147449_b(i + 9, j + 7, k + 6, Blocks.dirt); + world.func_147449_b(i + 9, j + 7, k + 7, Blocks.dirt); + world.func_147449_b(i + 9, j + 7, k + 8, Blocks.dirt); + world.func_147449_b(i + 9, j + 7, k + 9, Blocks.dirt); + world.func_147449_b(i + 9, j + 7, k + 10, Blocks.dirt); + world.func_147449_b(i + 9, j + 7, k + 11, Blocks.dirt); + world.func_147449_b(i + 9, j + 7, k + 12, Blocks.dirt); + world.func_147449_b(i + 9, j + 8, k + 2, Blocks.dirt); + world.func_147449_b(i + 9, j + 8, k + 3, Blocks.dirt); + world.func_147449_b(i + 9, j + 8, k + 4, Blocks.dirt); + world.func_147449_b(i + 9, j + 8, k + 5, Blocks.dirt); + world.func_147449_b(i + 9, j + 8, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 9, j + 8, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 9, j + 8, k + 8, Blocks.quartz_block); + world.func_147449_b(i + 9, j + 8, k + 9, Blocks.dirt); + world.func_147449_b(i + 9, j + 8, k + 10, Blocks.dirt); + world.func_147449_b(i + 9, j + 8, k + 11, Blocks.dirt); + world.func_147449_b(i + 9, j + 8, k + 12, Blocks.dirt); + world.func_147449_b(i + 9, j + 9, k + 2, Blocks.grass); + world.func_147449_b(i + 9, j + 9, k + 3, Blocks.grass); + world.func_147449_b(i + 9, j + 9, k + 4, Blocks.dirt); + world.func_147449_b(i + 9, j + 9, k + 5, Blocks.dirt); + world.func_147449_b(i + 9, j + 9, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 9, j + 9, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 9, j + 9, k + 8, Blocks.quartz_block); + world.func_147449_b(i + 9, j + 9, k + 9, Blocks.dirt); + world.func_147449_b(i + 9, j + 9, k + 10, Blocks.dirt); + world.func_147449_b(i + 9, j + 9, k + 11, Blocks.grass); + world.func_147449_b(i + 9, j + 9, k + 12, Blocks.grass); + world.func_147465_d(i + 9, j + 10, k + 3, Blocks.stone_slab, 7, 2); + world.func_147465_d(i + 9, j + 10, k + 4, Blocks.quartz_block, 2, 2); + world.func_147449_b(i + 9, j + 10, k + 5, Blocks.quartz_block); + world.func_147449_b(i + 9, j + 10, k + 6, Blocks.quartz_stairs); + world.func_147449_b(i + 9, j + 10, k + 7, Blocks.quartz_stairs); + world.func_147449_b(i + 9, j + 10, k + 8, Blocks.quartz_stairs); + world.func_147449_b(i + 9, j + 10, k + 9, Blocks.quartz_block); + world.func_147465_d(i + 9, j + 10, k + 10, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 9, j + 10, k + 11, Blocks.stone_slab, 7, 2); + world.func_147465_d(i + 9, j + 11, k + 4, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 9, j + 11, k + 10, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 9, j + 12, k + 4, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 9, j + 12, k + 10, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 9, j + 13, k + 4, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 9, j + 13, k + 10, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 9, j + 14, k + 3, Blocks.quartz_stairs, 2, 2); + world.func_147449_b(i + 9, j + 14, k + 4, Blocks.quartz_block); + world.func_147449_b(i + 9, j + 14, k + 10, Blocks.quartz_block); + world.func_147465_d(i + 9, j + 14, k + 11, Blocks.quartz_stairs, 3, 2); + world.func_147465_d(i + 9, j + 15, k + 4, Blocks.quartz_stairs, 2, 2); + world.func_147449_b(i + 9, j + 15, k + 5, Blocks.quartz_block); + world.func_147449_b(i + 9, j + 15, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 9, j + 15, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 9, j + 15, k + 8, Blocks.quartz_block); + world.func_147449_b(i + 9, j + 15, k + 9, Blocks.quartz_block); + world.func_147465_d(i + 9, j + 15, k + 10, Blocks.quartz_stairs, 3, 2); + world.func_147449_b(i + 9, j + 16, k + 5, Blocks.quartz_block); + world.func_147449_b(i + 9, j + 16, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 9, j + 16, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 9, j + 16, k + 8, Blocks.quartz_block); + world.func_147449_b(i + 9, j + 16, k + 9, Blocks.quartz_block); + world.func_147465_d(i + 9, j + 17, k + 5, Blocks.quartz_stairs, 2, 2); + world.func_147465_d(i + 9, j + 17, k + 6, Blocks.quartz_stairs, 1, 2); + world.func_147465_d(i + 9, j + 17, k + 7, Blocks.quartz_stairs, 1, 2); + world.func_147465_d(i + 9, j + 17, k + 8, Blocks.quartz_stairs, 1, 2); + world.func_147465_d(i + 9, j + 17, k + 9, Blocks.quartz_stairs, 3, 2); + world.func_147449_b(i + 10, j + 4, k + 10, Blocks.dirt); + world.func_147449_b(i + 10, j + 5, k + 6, Blocks.dirt); + world.func_147449_b(i + 10, j + 5, k + 7, Blocks.dirt); + world.func_147449_b(i + 10, j + 5, k + 8, Blocks.dirt); + world.func_147449_b(i + 10, j + 5, k + 10, Blocks.dirt); + world.func_147449_b(i + 10, j + 6, k + 4, Blocks.dirt); + world.func_147449_b(i + 10, j + 6, k + 5, Blocks.dirt); + world.func_147449_b(i + 10, j + 6, k + 6, Blocks.dirt); + world.func_147449_b(i + 10, j + 6, k + 7, Blocks.dirt); + world.func_147449_b(i + 10, j + 6, k + 8, Blocks.dirt); + world.func_147449_b(i + 10, j + 6, k + 9, Blocks.dirt); + world.func_147449_b(i + 10, j + 6, k + 10, Blocks.dirt); + world.func_147449_b(i + 10, j + 7, k + 2, Blocks.dirt); + world.func_147449_b(i + 10, j + 7, k + 3, Blocks.dirt); + world.func_147449_b(i + 10, j + 7, k + 4, Blocks.dirt); + world.func_147449_b(i + 10, j + 7, k + 5, Blocks.dirt); + world.func_147449_b(i + 10, j + 7, k + 6, Blocks.dirt); + world.func_147449_b(i + 10, j + 7, k + 7, Blocks.dirt); + world.func_147449_b(i + 10, j + 7, k + 8, Blocks.dirt); + world.func_147449_b(i + 10, j + 7, k + 9, Blocks.dirt); + world.func_147449_b(i + 10, j + 7, k + 10, Blocks.dirt); + world.func_147449_b(i + 10, j + 7, k + 11, Blocks.dirt); + world.func_147449_b(i + 10, j + 7, k + 12, Blocks.dirt); + world.func_147449_b(i + 10, j + 8, k + 2, Blocks.dirt); + world.func_147449_b(i + 10, j + 8, k + 3, Blocks.dirt); + world.func_147449_b(i + 10, j + 8, k + 4, Blocks.dirt); + world.func_147449_b(i + 10, j + 8, k + 5, Blocks.dirt); + world.func_147449_b(i + 10, j + 8, k + 6, Blocks.dirt); + world.func_147449_b(i + 10, j + 8, k + 7, Blocks.dirt); + world.func_147449_b(i + 10, j + 8, k + 8, Blocks.dirt); + world.func_147449_b(i + 10, j + 8, k + 9, Blocks.dirt); + world.func_147449_b(i + 10, j + 8, k + 10, Blocks.dirt); + world.func_147449_b(i + 10, j + 8, k + 11, Blocks.dirt); + world.func_147449_b(i + 10, j + 8, k + 12, Blocks.dirt); + world.func_147449_b(i + 10, j + 9, k + 2, Blocks.grass); + world.func_147449_b(i + 10, j + 9, k + 3, Blocks.dirt); + world.func_147449_b(i + 10, j + 9, k + 4, Blocks.grass); + world.func_147449_b(i + 10, j + 9, k + 5, Blocks.dirt); + world.func_147449_b(i + 10, j + 9, k + 6, Blocks.dirt); + world.func_147449_b(i + 10, j + 9, k + 7, Blocks.dirt); + world.func_147449_b(i + 10, j + 9, k + 8, Blocks.dirt); + world.func_147449_b(i + 10, j + 9, k + 9, Blocks.dirt); + world.func_147449_b(i + 10, j + 9, k + 10, Blocks.grass); + world.func_147449_b(i + 10, j + 9, k + 11, Blocks.dirt); + world.func_147449_b(i + 10, j + 9, k + 12, Blocks.grass); + world.func_147449_b(i + 10, j + 10, k + 3, Blocks.log); + world.func_147465_d(i + 10, j + 10, k + 4, Blocks.stone_slab, 7, 2); + world.func_147465_d(i + 10, j + 10, k + 5, Blocks.quartz_block, 2, 2); + world.func_147449_b(i + 10, j + 10, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 10, j + 10, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 10, j + 10, k + 8, Blocks.quartz_block); + world.func_147465_d(i + 10, j + 10, k + 9, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 10, j + 10, k + 10, Blocks.stone_slab, 7, 2); + world.func_147449_b(i + 10, j + 10, k + 11, Blocks.log); + world.func_147465_d(i + 10, j + 11, k + 3, Blocks.leaves, 4, 2); + world.func_147465_d(i + 10, j + 11, k + 5, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 10, j + 11, k + 9, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 10, j + 11, k + 11, Blocks.leaves, 4, 2); + world.func_147465_d(i + 10, j + 12, k + 3, Blocks.leaves, 4, 2); + world.func_147465_d(i + 10, j + 12, k + 5, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 10, j + 12, k + 9, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 10, j + 12, k + 11, Blocks.leaves, 4, 2); + world.func_147465_d(i + 10, j + 13, k + 5, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 10, j + 13, k + 9, Blocks.quartz_block, 2, 2); + world.func_147465_d(i + 10, j + 14, k + 3, Blocks.quartz_stairs, 1, 2); + world.func_147465_d(i + 10, j + 14, k + 4, Blocks.quartz_stairs, 2, 2); + world.func_147449_b(i + 10, j + 14, k + 5, Blocks.quartz_block); + world.func_147449_b(i + 10, j + 14, k + 6, Blocks.quartz_block); + world.func_147449_b(i + 10, j + 14, k + 7, Blocks.quartz_block); + world.func_147449_b(i + 10, j + 14, k + 8, Blocks.quartz_block); + world.func_147449_b(i + 10, j + 14, k + 9, Blocks.quartz_block); + world.func_147465_d(i + 10, j + 14, k + 10, Blocks.quartz_stairs, 1, 2); + world.func_147465_d(i + 10, j + 14, k + 11, Blocks.quartz_stairs, 1, 2); + world.func_147465_d(i + 10, j + 15, k + 5, Blocks.quartz_stairs, 1, 2); + world.func_147465_d(i + 10, j + 15, k + 6, Blocks.quartz_stairs, 1, 2); + world.func_147465_d(i + 10, j + 15, k + 7, Blocks.quartz_stairs, 1, 2); + world.func_147465_d(i + 10, j + 15, k + 8, Blocks.quartz_stairs, 1, 2); + world.func_147465_d(i + 10, j + 15, k + 9, Blocks.quartz_stairs, 1, 2); + world.func_147449_b(i + 11, j + 3, k + 7, Blocks.dirt); + world.func_147449_b(i + 11, j + 4, k + 5, Blocks.dirt); + world.func_147449_b(i + 11, j + 4, k + 7, Blocks.dirt); + world.func_147449_b(i + 11, j + 5, k + 5, Blocks.dirt); + world.func_147449_b(i + 11, j + 5, k + 7, Blocks.dirt); + world.func_147449_b(i + 11, j + 6, k + 3, Blocks.dirt); + world.func_147449_b(i + 11, j + 6, k + 5, Blocks.dirt); + world.func_147449_b(i + 11, j + 6, k + 6, Blocks.dirt); + world.func_147449_b(i + 11, j + 6, k + 7, Blocks.dirt); + world.func_147449_b(i + 11, j + 6, k + 8, Blocks.dirt); + world.func_147449_b(i + 11, j + 6, k + 9, Blocks.dirt); + world.func_147449_b(i + 11, j + 6, k + 11, Blocks.dirt); + world.func_147449_b(i + 11, j + 7, k + 3, Blocks.dirt); + world.func_147449_b(i + 11, j + 7, k + 4, Blocks.dirt); + world.func_147449_b(i + 11, j + 7, k + 5, Blocks.dirt); + world.func_147449_b(i + 11, j + 7, k + 6, Blocks.dirt); + world.func_147449_b(i + 11, j + 7, k + 7, Blocks.dirt); + world.func_147449_b(i + 11, j + 7, k + 8, Blocks.dirt); + world.func_147449_b(i + 11, j + 7, k + 9, Blocks.dirt); + world.func_147449_b(i + 11, j + 7, k + 10, Blocks.dirt); + world.func_147449_b(i + 11, j + 7, k + 11, Blocks.dirt); + world.func_147449_b(i + 11, j + 8, k + 3, Blocks.dirt); + world.func_147449_b(i + 11, j + 8, k + 4, Blocks.dirt); + world.func_147449_b(i + 11, j + 8, k + 5, Blocks.dirt); + world.func_147449_b(i + 11, j + 8, k + 6, Blocks.dirt); + world.func_147449_b(i + 11, j + 8, k + 7, Blocks.dirt); + world.func_147449_b(i + 11, j + 8, k + 8, Blocks.dirt); + world.func_147449_b(i + 11, j + 8, k + 9, Blocks.dirt); + world.func_147449_b(i + 11, j + 8, k + 10, Blocks.dirt); + world.func_147449_b(i + 11, j + 8, k + 11, Blocks.dirt); + world.func_147449_b(i + 11, j + 9, k + 3, Blocks.grass); + world.func_147449_b(i + 11, j + 9, k + 4, Blocks.dirt); + world.func_147449_b(i + 11, j + 9, k + 5, Blocks.grass); + world.func_147449_b(i + 11, j + 9, k + 6, Blocks.grass); + world.func_147449_b(i + 11, j + 9, k + 7, Blocks.grass); + world.func_147449_b(i + 11, j + 9, k + 8, Blocks.grass); + world.func_147449_b(i + 11, j + 9, k + 9, Blocks.grass); + world.func_147449_b(i + 11, j + 9, k + 10, Blocks.dirt); + world.func_147449_b(i + 11, j + 9, k + 11, Blocks.grass); + world.func_147449_b(i + 11, j + 10, k + 4, Blocks.log); + world.func_147465_d(i + 11, j + 10, k + 5, Blocks.stone_slab, 7, 2); + world.func_147465_d(i + 11, j + 10, k + 6, Blocks.stone_slab, 7, 2); + world.func_147465_d(i + 11, j + 10, k + 7, Blocks.stone_slab, 7, 2); + world.func_147465_d(i + 11, j + 10, k + 8, Blocks.stone_slab, 7, 2); + world.func_147465_d(i + 11, j + 10, k + 9, Blocks.stone_slab, 7, 2); + world.func_147449_b(i + 11, j + 10, k + 10, Blocks.log); + world.func_147465_d(i + 11, j + 11, k + 4, Blocks.leaves, 4, 2); + world.func_147465_d(i + 11, j + 11, k + 10, Blocks.leaves, 4, 2); + world.func_147465_d(i + 11, j + 12, k + 4, Blocks.leaves, 4, 2); + world.func_147465_d(i + 11, j + 12, k + 10, Blocks.leaves, 4, 2); + world.func_147465_d(i + 11, j + 14, k + 4, Blocks.quartz_stairs, 2, 2); + world.func_147465_d(i + 11, j + 14, k + 5, Blocks.quartz_stairs, 1, 2); + world.func_147465_d(i + 11, j + 14, k + 6, Blocks.quartz_stairs, 1, 2); + world.func_147465_d(i + 11, j + 14, k + 7, Blocks.quartz_stairs, 1, 2); + world.func_147465_d(i + 11, j + 14, k + 8, Blocks.quartz_stairs, 1, 2); + world.func_147465_d(i + 11, j + 14, k + 9, Blocks.quartz_stairs, 1, 2); + world.func_147465_d(i + 11, j + 14, k + 10, Blocks.quartz_stairs, 3, 2); + world.func_147449_b(i + 12, j + 2, k + 9, Blocks.dirt); + world.func_147449_b(i + 12, j + 3, k + 9, Blocks.dirt); + world.func_147449_b(i + 12, j + 4, k + 9, Blocks.dirt); + world.func_147449_b(i + 12, j + 5, k + 9, Blocks.dirt); + world.func_147449_b(i + 12, j + 6, k + 6, Blocks.dirt); + world.func_147449_b(i + 12, j + 6, k + 7, Blocks.dirt); + world.func_147449_b(i + 12, j + 6, k + 9, Blocks.dirt); + world.func_147449_b(i + 12, j + 7, k + 4, Blocks.dirt); + world.func_147449_b(i + 12, j + 7, k + 5, Blocks.dirt); + world.func_147449_b(i + 12, j + 7, k + 6, Blocks.dirt); + world.func_147449_b(i + 12, j + 7, k + 7, Blocks.dirt); + world.func_147449_b(i + 12, j + 7, k + 8, Blocks.dirt); + world.func_147449_b(i + 12, j + 7, k + 9, Blocks.dirt); + world.func_147449_b(i + 12, j + 7, k + 10, Blocks.dirt); + world.func_147449_b(i + 12, j + 8, k + 4, Blocks.dirt); + world.func_147449_b(i + 12, j + 8, k + 5, Blocks.dirt); + world.func_147449_b(i + 12, j + 8, k + 6, Blocks.dirt); + world.func_147449_b(i + 12, j + 8, k + 7, Blocks.dirt); + world.func_147449_b(i + 12, j + 8, k + 8, Blocks.dirt); + world.func_147449_b(i + 12, j + 8, k + 9, Blocks.dirt); + world.func_147449_b(i + 12, j + 8, k + 10, Blocks.dirt); + world.func_147449_b(i + 12, j + 9, k + 4, Blocks.grass); + world.func_147449_b(i + 12, j + 9, k + 5, Blocks.grass); + world.func_147449_b(i + 12, j + 9, k + 6, Blocks.grass); + world.func_147449_b(i + 12, j + 9, k + 7, Blocks.grass); + world.func_147449_b(i + 12, j + 9, k + 8, Blocks.grass); + world.func_147449_b(i + 12, j + 9, k + 9, Blocks.grass); + world.func_147449_b(i + 12, j + 9, k + 10, Blocks.grass); + world.func_147449_b(i + 13, j + 5, k + 7, Blocks.dirt); + world.func_147449_b(i + 13, j + 6, k + 7, Blocks.dirt); + world.func_147449_b(i + 13, j + 7, k + 6, Blocks.dirt); + world.func_147449_b(i + 13, j + 7, k + 7, Blocks.dirt); + world.func_147449_b(i + 13, j + 7, k + 8, Blocks.dirt); + world.func_147449_b(i + 13, j + 8, k + 6, Blocks.dirt); + world.func_147449_b(i + 13, j + 8, k + 7, Blocks.dirt); + world.func_147449_b(i + 13, j + 8, k + 8, Blocks.dirt); + world.func_147449_b(i + 13, j + 9, k + 6, Blocks.grass); + world.func_147449_b(i + 13, j + 9, k + 7, Blocks.grass); + world.func_147449_b(i + 13, j + 9, k + 8, Blocks.grass); + world.func_147465_d(i + 0, j + 0, k + 8, ivy, 8, 2); + world.func_147465_d(i + 0, j + 1, k + 8, ivy, 8, 2); + world.func_147465_d(i + 0, j + 2, k + 8, ivy, 8, 2); + world.func_147465_d(i + 0, j + 3, k + 6, ivy, 8, 2); + world.func_147465_d(i + 0, j + 3, k + 8, ivy, 8, 2); + world.func_147465_d(i + 0, j + 4, k + 6, ivy, 8, 2); + world.func_147465_d(i + 0, j + 4, k + 8, ivy, 8, 2); + world.func_147465_d(i + 0, j + 5, k + 6, ivy, 8, 2); + world.func_147465_d(i + 0, j + 5, k + 7, ivy, 8, 2); + world.func_147465_d(i + 0, j + 5, k + 8, ivy, 8, 2); + world.func_147465_d(i + 0, j + 6, k + 6, ivy, 8, 2); + world.func_147465_d(i + 0, j + 6, k + 7, ivy, 8, 2); + world.func_147465_d(i + 0, j + 6, k + 8, ivy, 8, 2); + world.func_147465_d(i + 0, j + 7, k + 6, ivy, 8, 2); + world.func_147465_d(i + 0, j + 7, k + 7, ivy, 8, 2); + world.func_147465_d(i + 0, j + 7, k + 8, ivy, 8, 2); + world.func_147465_d(i + 0, j + 8, k + 6, ivy, 8, 2); + world.func_147465_d(i + 0, j + 8, k + 7, ivy, 8, 2); + world.func_147465_d(i + 0, j + 8, k + 8, ivy, 8, 2); + world.func_147465_d(i + 0, j + 9, k + 6, ivy, 8, 2); + world.func_147465_d(i + 0, j + 9, k + 7, ivy, 8, 2); + world.func_147465_d(i + 0, j + 9, k + 8, ivy, 8, 2); + world.func_147465_d(i + 1, j + 10, k + 6, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 1, j + 10, k + 7, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 1, j + 10, k + 8, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 2, j + 2, k + 3, ivy, 8, 2); + world.func_147465_d(i + 2, j + 2, k + 11, ivy, 8, 2); + world.func_147465_d(i + 2, j + 3, k + 3, ivy, 8, 2); + world.func_147465_d(i + 2, j + 3, k + 11, ivy, 8, 2); + world.func_147465_d(i + 2, j + 4, k + 3, ivy, 8, 2); + world.func_147465_d(i + 2, j + 4, k + 11, ivy, 8, 2); + world.func_147465_d(i + 2, j + 5, k + 3, ivy, 8, 2); + world.func_147465_d(i + 2, j + 5, k + 11, ivy, 8, 2); + world.func_147465_d(i + 2, j + 6, k + 3, ivy, 8, 2); + world.func_147465_d(i + 2, j + 6, k + 11, ivy, 8, 2); + world.func_147465_d(i + 2, j + 7, k + 3, ivy, 8, 2); + world.func_147465_d(i + 2, j + 7, k + 11, ivy, 8, 2); + world.func_147465_d(i + 2, j + 8, k + 3, ivy, 8, 2); + world.func_147465_d(i + 2, j + 8, k + 11, ivy, 8, 2); + world.func_147465_d(i + 2, j + 9, k + 3, ivy, 8, 2); + world.func_147465_d(i + 2, j + 9, k + 11, ivy, 8, 2); + world.func_147449_b(i + 2, j + 10, k + 4, Blocks.red_flower); + world.func_147465_d(i + 2, j + 10, k + 5, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 2, j + 10, k + 6, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 2, j + 10, k + 7, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 2, j + 10, k + 8, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 2, j + 10, k + 9, Blocks.tallgrass, 2, 2); + world.func_147449_b(i + 2, j + 10, k + 10, Blocks.red_flower); + world.func_147465_d(i + 3, j + 5, k + 2, ivy, 1, 2); + world.func_147465_d(i + 3, j + 5, k + 12, ivy, 4, 2); + world.func_147465_d(i + 3, j + 6, k + 2, ivy, 1, 2); + world.func_147465_d(i + 3, j + 6, k + 12, ivy, 4, 2); + world.func_147465_d(i + 3, j + 7, k + 2, ivy, 1, 2); + world.func_147465_d(i + 3, j + 7, k + 12, ivy, 4, 2); + world.func_147465_d(i + 3, j + 8, k + 2, ivy, 1, 2); + world.func_147465_d(i + 3, j + 8, k + 12, ivy, 4, 2); + world.func_147465_d(i + 3, j + 9, k + 2, ivy, 1, 2); + world.func_147465_d(i + 3, j + 9, k + 12, ivy, 4, 2); + world.func_147449_b(i + 3, j + 10, k + 3, Blocks.yellow_flower); + world.func_147449_b(i + 3, j + 10, k + 11, Blocks.yellow_flower); + world.func_147449_b(i + 4, j + 10, k + 2, Blocks.red_flower); + world.func_147449_b(i + 4, j + 10, k + 12, Blocks.red_flower); + world.func_147465_d(i + 5, j + 10, k + 2, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 5, j + 10, k + 12, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 6, j + 0, k + 14, ivy, 4, 2); + world.func_147465_d(i + 6, j + 1, k + 14, ivy, 4, 2); + world.func_147465_d(i + 6, j + 2, k + 14, ivy, 4, 2); + world.func_147465_d(i + 6, j + 3, k + 0, ivy, 1, 2); + world.func_147465_d(i + 6, j + 3, k + 14, ivy, 4, 2); + world.func_147465_d(i + 6, j + 4, k + 0, ivy, 1, 2); + world.func_147465_d(i + 6, j + 4, k + 14, ivy, 4, 2); + world.func_147465_d(i + 6, j + 5, k + 0, ivy, 1, 2); + world.func_147465_d(i + 6, j + 5, k + 14, ivy, 4, 2); + world.func_147465_d(i + 6, j + 6, k + 0, ivy, 1, 2); + world.func_147465_d(i + 6, j + 6, k + 14, ivy, 4, 2); + world.func_147465_d(i + 6, j + 7, k + 0, ivy, 1, 2); + world.func_147465_d(i + 6, j + 7, k + 14, ivy, 4, 2); + world.func_147465_d(i + 6, j + 8, k + 0, ivy, 1, 2); + world.func_147465_d(i + 6, j + 8, k + 14, ivy, 4, 2); + world.func_147465_d(i + 6, j + 9, k + 0, ivy, 1, 2); + world.func_147465_d(i + 6, j + 9, k + 14, ivy, 4, 2); + world.func_147465_d(i + 6, j + 10, k + 1, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 6, j + 10, k + 2, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 6, j + 10, k + 12, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 6, j + 10, k + 13, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 7, j + 1, k + 0, ivy, 1, 2); + world.func_147465_d(i + 7, j + 1, k + 14, ivy, 4, 2); + world.func_147465_d(i + 7, j + 2, k + 0, ivy, 1, 2); + world.func_147465_d(i + 7, j + 2, k + 14, ivy, 4, 2); + world.func_147465_d(i + 7, j + 3, k + 0, ivy, 1, 2); + world.func_147465_d(i + 7, j + 3, k + 14, ivy, 4, 2); + world.func_147465_d(i + 7, j + 4, k + 0, ivy, 1, 2); + world.func_147465_d(i + 7, j + 4, k + 14, ivy, 4, 2); + world.func_147465_d(i + 7, j + 5, k + 0, ivy, 1, 2); + world.func_147465_d(i + 7, j + 5, k + 14, ivy, 4, 2); + world.func_147465_d(i + 7, j + 6, k + 0, ivy, 1, 2); + world.func_147465_d(i + 7, j + 6, k + 14, ivy, 4, 2); + world.func_147465_d(i + 7, j + 7, k + 0, ivy, 1, 2); + world.func_147465_d(i + 7, j + 7, k + 14, ivy, 4, 2); + world.func_147465_d(i + 7, j + 8, k + 0, ivy, 1, 2); + world.func_147465_d(i + 7, j + 8, k + 14, ivy, 4, 2); + world.func_147465_d(i + 7, j + 9, k + 0, ivy, 1, 2); + world.func_147465_d(i + 7, j + 9, k + 14, ivy, 4, 2); + world.func_147465_d(i + 7, j + 10, k + 1, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 7, j + 10, k + 2, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 7, j + 10, k + 12, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 7, j + 10, k + 13, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 8, j + 3, k + 14, ivy, 4, 2); + world.func_147465_d(i + 8, j + 4, k + 0, ivy, 1, 2); + world.func_147465_d(i + 8, j + 4, k + 14, ivy, 4, 2); + world.func_147465_d(i + 8, j + 5, k + 0, ivy, 1, 2); + world.func_147465_d(i + 8, j + 5, k + 14, ivy, 4, 2); + world.func_147465_d(i + 8, j + 6, k + 0, ivy, 1, 2); + world.func_147465_d(i + 8, j + 6, k + 14, ivy, 4, 2); + world.func_147465_d(i + 8, j + 7, k + 0, ivy, 1, 2); + world.func_147465_d(i + 8, j + 7, k + 14, ivy, 4, 2); + world.func_147465_d(i + 8, j + 8, k + 0, ivy, 1, 2); + world.func_147465_d(i + 8, j + 8, k + 14, ivy, 4, 2); + world.func_147465_d(i + 8, j + 9, k + 0, ivy, 1, 2); + world.func_147465_d(i + 8, j + 9, k + 14, ivy, 4, 2); + world.func_147465_d(i + 8, j + 10, k + 1, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 8, j + 10, k + 2, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 8, j + 10, k + 12, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 8, j + 10, k + 13, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 9, j + 10, k + 2, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 9, j + 10, k + 12, Blocks.tallgrass, 2, 2); + world.func_147449_b(i + 10, j + 10, k + 2, Blocks.red_flower); + world.func_147449_b(i + 10, j + 10, k + 12, Blocks.red_flower); + world.func_147465_d(i + 11, j + 5, k + 2, ivy, 1, 2); + world.func_147465_d(i + 11, j + 5, k + 12, ivy, 4, 2); + world.func_147465_d(i + 11, j + 6, k + 2, ivy, 1, 2); + world.func_147465_d(i + 11, j + 6, k + 12, ivy, 4, 2); + world.func_147465_d(i + 11, j + 7, k + 2, ivy, 1, 2); + world.func_147465_d(i + 11, j + 7, k + 12, ivy, 4, 2); + world.func_147465_d(i + 11, j + 8, k + 2, ivy, 1, 2); + world.func_147465_d(i + 11, j + 8, k + 12, ivy, 4, 2); + world.func_147465_d(i + 11, j + 9, k + 2, ivy, 1, 2); + world.func_147465_d(i + 11, j + 9, k + 12, ivy, 4, 2); + world.func_147449_b(i + 11, j + 10, k + 3, Blocks.yellow_flower); + world.func_147449_b(i + 11, j + 10, k + 11, Blocks.yellow_flower); + world.func_147465_d(i + 12, j + 2, k + 3, ivy, 2, 2); + world.func_147465_d(i + 12, j + 2, k + 11, ivy, 2, 2); + world.func_147465_d(i + 12, j + 3, k + 3, ivy, 2, 2); + world.func_147465_d(i + 12, j + 3, k + 11, ivy, 2, 2); + world.func_147465_d(i + 12, j + 4, k + 3, ivy, 2, 2); + world.func_147465_d(i + 12, j + 4, k + 11, ivy, 2, 2); + world.func_147465_d(i + 12, j + 5, k + 3, ivy, 2, 2); + world.func_147465_d(i + 12, j + 5, k + 11, ivy, 2, 2); + world.func_147465_d(i + 12, j + 6, k + 3, ivy, 2, 2); + world.func_147465_d(i + 12, j + 6, k + 11, ivy, 2, 2); + world.func_147465_d(i + 12, j + 7, k + 3, ivy, 2, 2); + world.func_147465_d(i + 12, j + 7, k + 11, ivy, 2, 2); + world.func_147465_d(i + 12, j + 8, k + 3, ivy, 2, 2); + world.func_147465_d(i + 12, j + 8, k + 11, ivy, 2, 2); + world.func_147465_d(i + 12, j + 9, k + 3, ivy, 2, 2); + world.func_147465_d(i + 12, j + 9, k + 11, ivy, 2, 2); + world.func_147449_b(i + 12, j + 10, k + 4, Blocks.red_flower); + world.func_147465_d(i + 12, j + 10, k + 5, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 12, j + 10, k + 6, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 12, j + 10, k + 7, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 12, j + 10, k + 8, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 12, j + 10, k + 9, Blocks.tallgrass, 2, 2); + world.func_147449_b(i + 12, j + 10, k + 10, Blocks.red_flower); + world.func_147465_d(i + 13, j + 10, k + 6, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 13, j + 10, k + 7, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 13, j + 10, k + 8, Blocks.tallgrass, 2, 2); + world.func_147465_d(i + 14, j + 0, k + 7, ivy, 2, 2); + world.func_147465_d(i + 14, j + 1, k + 7, ivy, 2, 2); + world.func_147465_d(i + 14, j + 2, k + 7, ivy, 2, 2); + world.func_147465_d(i + 14, j + 2, k + 8, ivy, 2, 2); + world.func_147465_d(i + 14, j + 3, k + 7, ivy, 2, 2); + world.func_147465_d(i + 14, j + 3, k + 8, ivy, 2, 2); + world.func_147465_d(i + 14, j + 4, k + 6, ivy, 2, 2); + world.func_147465_d(i + 14, j + 4, k + 7, ivy, 2, 2); + world.func_147465_d(i + 14, j + 4, k + 8, ivy, 2, 2); + world.func_147465_d(i + 14, j + 5, k + 6, ivy, 2, 2); + world.func_147465_d(i + 14, j + 5, k + 7, ivy, 2, 2); + world.func_147465_d(i + 14, j + 5, k + 8, ivy, 2, 2); + world.func_147465_d(i + 14, j + 6, k + 6, ivy, 2, 2); + world.func_147465_d(i + 14, j + 6, k + 7, ivy, 2, 2); + world.func_147465_d(i + 14, j + 6, k + 8, ivy, 2, 2); + world.func_147465_d(i + 14, j + 7, k + 6, ivy, 2, 2); + world.func_147465_d(i + 14, j + 7, k + 7, ivy, 2, 2); + world.func_147465_d(i + 14, j + 7, k + 8, ivy, 2, 2); + world.func_147465_d(i + 14, j + 8, k + 6, ivy, 2, 2); + world.func_147465_d(i + 14, j + 8, k + 7, ivy, 2, 2); + world.func_147465_d(i + 14, j + 8, k + 8, ivy, 2, 2); + world.func_147465_d(i + 14, j + 9, k + 6, ivy, 2, 2); + world.func_147465_d(i + 14, j + 9, k + 7, ivy, 2, 2); + world.func_147465_d(i + 14, j + 9, k + 8, ivy, 2, 2); + return true; + } +} diff --git a/src/main/java/biomesoplenty/common/world/features/WorldGenWaterSpring.java b/src/main/java/biomesoplenty/common/world/features/WorldGenWaterSpring.java new file mode 100644 index 000000000..80ebca435 --- /dev/null +++ b/src/main/java/biomesoplenty/common/world/features/WorldGenWaterSpring.java @@ -0,0 +1,82 @@ +package biomesoplenty.common.world.features; + +import java.util.Random; + +import net.minecraft.block.Block; +import net.minecraft.util.MathHelper; +import net.minecraft.world.World; +import net.minecraft.world.gen.feature.WorldGenerator; +import biomesoplenty.api.BOPBlockHelper; + +public class WorldGenWaterSpring extends WorldGenerator +{ + /** The block of the ore to be placed using this generator. */ + private Block minableBlockId; + + /** The number of blocks to generate. */ + private int numberOfBlocks; + + public WorldGenWaterSpring(Block par1, int par2) + { + minableBlockId = par1; + numberOfBlocks = par2; + } + + @Override + public boolean generate(World world, Random par2Random, int par3, int par4, int par5) + { + float var6 = par2Random.nextFloat() * (float)Math.PI; + double var7 = par3 + 8 + MathHelper.sin(var6) * numberOfBlocks / 8.0F; + double var9 = par3 + 8 - MathHelper.sin(var6) * numberOfBlocks / 8.0F; + double var11 = par5 + 8 + MathHelper.cos(var6) * numberOfBlocks / 8.0F; + double var13 = par5 + 8 - MathHelper.cos(var6) * numberOfBlocks / 8.0F; + double var15 = par4 + par2Random.nextInt(3) - 2; + double var17 = par4 + par2Random.nextInt(3) - 2; + + for (int var19 = 0; var19 <= numberOfBlocks; ++var19) + { + double var20 = var7 + (var9 - var7) * var19 / numberOfBlocks; + double var22 = var15 + (var17 - var15) * var19 / numberOfBlocks; + double var24 = var11 + (var13 - var11) * var19 / numberOfBlocks; + double var26 = par2Random.nextDouble() * numberOfBlocks / 16.0D; + double var28 = (MathHelper.sin(var19 * (float)Math.PI / numberOfBlocks) + 1.0F) * var26 + 1.0D; + double var30 = (MathHelper.sin(var19 * (float)Math.PI / numberOfBlocks) + 1.0F) * var26 + 1.0D; + int var32 = MathHelper.floor_double(var20 - var28 / 2.0D); + int var33 = MathHelper.floor_double(var22 - var30 / 2.0D); + int var34 = MathHelper.floor_double(var24 - var28 / 2.0D); + int var35 = MathHelper.floor_double(var20 + var28 / 2.0D); + int var36 = MathHelper.floor_double(var22 + var30 / 2.0D); + int var37 = MathHelper.floor_double(var24 + var28 / 2.0D); + + for (int var38 = var32; var38 <= var35; ++var38) + { + double var39 = (var38 + 0.5D - var20) / (var28 / 2.0D); + + if (var39 * var39 < 1.0D) + { + for (int var41 = var33; var41 <= var36; ++var41) + { + double var42 = (var41 + 0.5D - var22) / (var30 / 2.0D); + + if (var39 * var39 + var42 * var42 < 1.0D) + { + for (int var44 = var34; var44 <= var37; ++var44) + { + double var45 = (var44 + 0.5D - var24) / (var28 / 2.0D); + + Block block = world.func_147439_a(var38, var41, var44); + if (var39 * var39 + var42 * var42 + var45 * var45 < 1.0D && block == BOPBlockHelper.get("holyStone")) + { + //world.setBlock(var38, var41, var44, minableBlockId); + world.func_147449_b(var38, var41, var44, minableBlockId); + } + } + } + } + } + } + } + + return true; + } +} diff --git a/src/main/java/biomesoplenty/common/world/features/trees/WorldGenPromisedTree.java b/src/main/java/biomesoplenty/common/world/features/trees/WorldGenPromisedTree.java new file mode 100644 index 000000000..91440d0ea --- /dev/null +++ b/src/main/java/biomesoplenty/common/world/features/trees/WorldGenPromisedTree.java @@ -0,0 +1,146 @@ +package biomesoplenty.common.world.features.trees; + +import java.util.Random; + +import biomesoplenty.api.BOPBlockHelper; +import net.minecraft.block.Block; +import net.minecraft.world.World; +import net.minecraft.world.gen.feature.WorldGenAbstractTree; +import net.minecraft.world.gen.feature.WorldGenerator; + +public class WorldGenPromisedTree extends WorldGenAbstractTree +{ + public WorldGenPromisedTree(boolean par1) + { + super(par1); + } + + @Override + public boolean generate(World world, Random par2Random, int par3, int par4, int par5) + { + int var6 = par2Random.nextInt(9) + 9; + int var7 = 2 + par2Random.nextInt(4); + int var8 = var6 - var7; + int var9 = 2 + par2Random.nextInt(2); + boolean var10 = true; + + Block block; + + if (par4 >= 1 && par4 + var6 + 1 <= 256) + { + int var11; + int var13; + //int var15; + int var21; + + for (var11 = par4; var11 <= par4 + 1 + var6 && var10; ++var11) + { + boolean var12 = true; + + if (var11 - par4 < var7) + { + var21 = 0; + } + else + { + var21 = var9; + } + + for (var13 = par3 - var21; var13 <= par3 + var21 && var10; ++var13) + { + for (int var14 = par5 - var21; var14 <= par5 + var21 && var10; ++var14) + { + if (var11 >= 0 && var11 < 256) + { + block = world.func_147439_a(var13, var11, var14); + + if (!(block.isAir(world, var13, var11, var14) || block.isLeaves(world, var13, var11, var14))) + { + var10 = false; + } + } + else + { + var10 = false; + } + } + } + } + + if (!var10) + return false; + else + { + //var11 = world.getBlockId(par3, par4 - 1, par5); + block = world.func_147439_a(par3, par4 - 1, par5); + + if ((block == BOPBlockHelper.get("holyGrass") || block == BOPBlockHelper.get("holyDirt")) && par4 < 256 - var6 - 1) + { + //this.setBlockAndMetadata(world, par3, par4 - 1, par5, Blocks.holyDirt.get().blockID, 0); + this.func_150516_a(world, par3, par4 - 1, par5, BOPBlockHelper.get("holyDirt"), 0); + var21 = par2Random.nextInt(2); + var13 = 1; + byte var22 = 0; + int var17; + int var16; + int var15; + + for (var15 = 0; var15 <= var8; ++var15) + { + var16 = par4 + var6 - var15; + + for (var17 = par3 - var21; var17 <= par3 + var21; ++var17) + { + int var18 = var17 - par3; + + for (int var19 = par5 - var21; var19 <= par5 + var21; ++var19) + { + int var20 = var19 - par5; + + if ((Math.abs(var18) != var21 || Math.abs(var20) != var21 || var21 <= 0) && !world.func_147439_a(var17, var16, var19).func_149662_c()) + { + //this.setBlockAndMetadata(world, var17, var16, var19, Blocks.leaves2.get().blockID, 2); + this.func_150516_a(world, var17, var16, var19, BOPBlockHelper.get("leaves2"), 2); + } + } + } + + if (var21 >= var13) + { + var21 = var22; + var22 = 1; + ++var13; + + if (var13 > var9) + { + var13 = var9; + } + } + else + { + ++var21; + } + } + + var15 = par2Random.nextInt(3); + + for (var16 = 0; var16 < var6 - var15; ++var16) + { + //var17 = world.getBlockId(par3, par4 + var16, par5); + block = world.func_147439_a(par3, par4 + var16, par5); + + if (block.isAir(world, par3, par4 + var16, par5) || block.isLeaves(world, par3, par4 + var16, par5)) + { + //this.setBlockAndMetadata(world, par3, par4 + var16, par5, Blocks.logs2.get().blockID,0); + this.func_150516_a(world, par3, par4 + var16, par5, BOPBlockHelper.get("logs2"), 0); + } + } + + return true; + } else + return false; + } + } else + return false; + } +} diff --git a/src/main/java/biomesoplenty/common/world/features/trees/WorldGenPromisedTree2.java b/src/main/java/biomesoplenty/common/world/features/trees/WorldGenPromisedTree2.java new file mode 100644 index 000000000..635013817 --- /dev/null +++ b/src/main/java/biomesoplenty/common/world/features/trees/WorldGenPromisedTree2.java @@ -0,0 +1,123 @@ +package biomesoplenty.common.world.features.trees; + +import java.util.Random; + +import biomesoplenty.api.BOPBlockHelper; +import net.minecraft.block.Block; +import net.minecraft.world.World; +import net.minecraft.world.gen.feature.WorldGenAbstractTree; +import net.minecraft.world.gen.feature.WorldGenerator; + +public class WorldGenPromisedTree2 extends WorldGenAbstractTree +{ + public WorldGenPromisedTree2(boolean par1) + { + super(par1); + } + + @Override + public boolean generate(World world, Random par2Random, int par3, int par4, int par5) + { + int var6 = par2Random.nextInt(3) + 5; + boolean var7 = true; + + Block block; + + if (par4 >= 1 && par4 + var6 + 1 <= 256) + { + int var8; + int var10; + int var11; + int var12; + + for (var8 = par4; var8 <= par4 + 1 + var6; ++var8) + { + byte var9 = 1; + + if (var8 == par4) + { + var9 = 0; + } + + if (var8 >= par4 + 1 + var6 - 2) + { + var9 = 2; + } + + for (var10 = par3 - var9; var10 <= par3 + var9 && var7; ++var10) + { + for (var11 = par5 - var9; var11 <= par5 + var9 && var7; ++var11) + { + if (var8 >= 0 && var8 < 256) + { + //var12 = world.getBlockId(var10, var8, var11); + block = world.func_147439_a(var10, var8, var11); + + //if (var12 != 0 && var12 != Blocks.leaves1.get().blockID) + //{ + if (block.isAir(world, var10, var8, var11) || block.isLeaves(world, var10, var8, var11)) + { + var7 = false; + } + } + else + { + var7 = false; + } + } + } + } + + if (!var7) + return false; + else + { + block = world.func_147439_a(par3, par4 - 1, par5); + + if ((block == BOPBlockHelper.get("holyGrass") || block == BOPBlockHelper.get("holyDirt")) && par4 < 256 - var6 - 1) + { + //this.setBlockAndMetadata(world, par3, par4 - 1, par5, Blocks.holyDirt.get().blockID, 0); + this.func_150516_a(world, par3, par4 - 1, par5, BOPBlockHelper.get("holyDirt"), 0); + int var16; + + for (var16 = par4 - 3 + var6; var16 <= par4 + var6; ++var16) + { + var10 = var16 - (par4 + var6); + var11 = 1 - var10 / 2; + + for (var12 = par3 - var11; var12 <= par3 + var11; ++var12) + { + int var13 = var12 - par3; + + for (int var14 = par5 - var11; var14 <= par5 + var11; ++var14) + { + int var15 = var14 - par5; + + if ((Math.abs(var13) != var11 || Math.abs(var15) != var11 || par2Random.nextInt(2) != 0 && var10 != 0) && !world.func_147439_a(var12, var16, var14).func_149662_c()) + { + //this.setBlockAndMetadata(world, var12, var16, var14, Blocks.leaves1.get().blockID, 2); + this.func_150516_a(world, var12, var16, var14, BOPBlockHelper.get("leaves1"), 2);} + } + } + } + + for (var16 = 0; var16 < var6; ++var16) + { + //var10 = world.getBlockId(par3, par4 + var16, par5); + block = world.func_147439_a(par3, par4 + var16, par5); + + if (!(block.isAir(world, par3, par4 + var16, par5) || block.isLeaves(world, par3, par4 + var16, par5))) + { + //this.setBlockAndMetadata(world, par3, par4 + var16, par5, Blocks.logs2.get().blockID,1); + this.func_150516_a(world, par3, par4 + var16, par5, BOPBlockHelper.get("logs2"), 1); + } + } + + return true; + } else + return false; + } + } else + return false; + } +} diff --git a/src/main/java/biomesoplenty/common/world/features/trees/WorldGenPromisedTree3.java b/src/main/java/biomesoplenty/common/world/features/trees/WorldGenPromisedTree3.java new file mode 100644 index 000000000..81a3d29fe --- /dev/null +++ b/src/main/java/biomesoplenty/common/world/features/trees/WorldGenPromisedTree3.java @@ -0,0 +1,165 @@ +package biomesoplenty.common.world.features.trees; + +import java.util.Random; + +import biomesoplenty.api.BOPBlockHelper; +import net.minecraft.block.Block; +import net.minecraft.init.Blocks; +import net.minecraft.world.World; +import net.minecraft.world.gen.feature.WorldGenAbstractTree; +import net.minecraft.world.gen.feature.WorldGenerator; + +public class WorldGenPromisedTree3 extends WorldGenAbstractTree +{ + public WorldGenPromisedTree3(boolean var1) + { + super(var1); + } + + @Override + public boolean generate(World world, Random var2, int var3, int var4, int var5) + { + int var6 = var2.nextInt(20) + 30; + int var7 = var2.nextInt(5) + 10; + int var8 = var6 - var7; + int var9 = 2 + var2.nextInt(3); + boolean var10 = true; + + if (var4 >= 1 && var4 + var6 + 1 <= 256) + { + int var11; + int var13; + int var14; + //int var15; + int var24; + + for (var11 = var4; var11 <= var4 + 1 + var6 && var10; ++var11) + { + boolean var12 = true; + + if (var11 - var4 < var7) + { + var24 = 0; + } + else + { + var24 = var9; + } + + for (var13 = var3 - var24; var13 <= var3 + var24 && var10; ++var13) + { + for (var14 = var5 - var24; var14 <= var5 + var24 && var10; ++var14) + { + if (var11 >= 0 && var11 < 256) + { + Block block = world.func_147439_a(var13, var11, var14); + + if (block.isAir(world, var13, var11, var14) || block.isLeaves(world, var13, var11, var14)) + { + var10 = false; + } + } + else + { + var10 = false; + } + } + } + } + + if (!var10) + return false; + else + { + Block block11 = world.func_147439_a(var3, var4 - 1, var5); + Block block24 = world.func_147439_a(var3 - 1, var4 - 1, var5); + Block block13 = world.func_147439_a(var3, var4 - 1, var5 - 1); + Block block14 = world.func_147439_a(var3 - 1, var4 - 1, var5 - 1); + + if ((block11 == BOPBlockHelper.get("holyGrass") || block11 == BOPBlockHelper.get("holyDirt")) && var4 < 256 - var6 - 1) + { + if ((block24 == BOPBlockHelper.get("holyGrass") || block24 == BOPBlockHelper.get("holyDirt")) && var4 < 256 - var6 - 1) + { + if ((block13 == BOPBlockHelper.get("holyGrass") || block13 == BOPBlockHelper.get("holyDirt")) && var4 < 256 - var6 - 1) + { + if ((block14 == BOPBlockHelper.get("holyGrass") | block14 == BOPBlockHelper.get("holyDirt")) && var4 < 256 - var6 - 1) + { + world.func_147465_d(var3, var4 - 1, var5, BOPBlockHelper.get("holyDirt"), 0, 2); + world.func_147465_d(var3 - 1, var4 - 1, var5, BOPBlockHelper.get("holyDirt"), 0, 2); + world.func_147465_d(var3, var4 - 1, var5 - 1, BOPBlockHelper.get("holyDirt"), 0, 2); + world.func_147465_d(var3 - 1, var4 - 1, var5 - 1, BOPBlockHelper.get("holyDirt"), 0, 2); + int var15 = var2.nextInt(2); + int var16 = 1; + boolean var17 = false; + int var19; + int var18; + int var20; + + for (var18 = 0; var18 <= var8; ++var18) + { + var19 = var4 + var6 - var18; + + for (var20 = var3 - var15; var20 <= var3 + var15; ++var20) + { + int var21 = var20 - var3; + + for (int var22 = var5 - var15; var22 <= var5 + var15; ++var22) + { + int var23 = var22 - var5; + + if ((Math.abs(var21) != var15 || Math.abs(var23) != var15 || var15 <= 0) && !world.func_147439_a(var20, var19, var22).func_149662_c()) + { + this.func_150516_a(world, var20, var19, var22, Blocks.leaves, 0); + this.func_150516_a(world, var20 - 1, var19, var22, Blocks.leaves, 0); + this.func_150516_a(world, var20, var19, var22 - 1, Blocks.leaves, 0); + this.func_150516_a(world, var20 - 1, var19, var22 - 1, Blocks.leaves, 0); + } + } + } + + if (var15 >= var16) + { + var15 = var17 ? 1 : 0; + var17 = true; + ++var16; + + if (var16 > var9) + { + var16 = var9; + } + } + else + { + ++var15; + } + } + + var18 = var2.nextInt(3); + + for (var19 = 0; var19 < var6 - var18; ++var19) + { + Block block = world.func_147439_a(var3, var4 + var19, var5); + + if (block.isAir(world, var3, var4 + var19, var5) || block == Blocks.leaves) + { + this.func_150516_a(world, var3, var4 + var19, var5, Blocks.log, 0); + this.func_150516_a(world, var3 - 1, var4 + var19, var5, Blocks.log, 0); + this.func_150516_a(world, var3, var4 + var19, var5 - 1, Blocks.log, 0); + this.func_150516_a(world, var3 - 1, var4 + var19, var5 - 1, Blocks.log, 0); + } + } + + return true; + } else + return false; + } else + return false; + } else + return false; + } else + return false; + } + } else + return false; + } +} diff --git a/src/main/java/biomesoplenty/common/world/features/trees/WorldGenPromisedWillowTree.java b/src/main/java/biomesoplenty/common/world/features/trees/WorldGenPromisedWillowTree.java new file mode 100644 index 000000000..fe0e3cb7b --- /dev/null +++ b/src/main/java/biomesoplenty/common/world/features/trees/WorldGenPromisedWillowTree.java @@ -0,0 +1,194 @@ +package biomesoplenty.common.world.features.trees; + +import java.util.Random; + +import biomesoplenty.api.BOPBlockHelper; +import net.minecraft.block.Block; +import net.minecraft.block.material.Material; +import net.minecraft.init.Blocks; +import net.minecraft.world.World; +import net.minecraft.world.gen.feature.WorldGenAbstractTree; +import net.minecraft.world.gen.feature.WorldGenerator; + +public class WorldGenPromisedWillowTree extends WorldGenAbstractTree +{ + public WorldGenPromisedWillowTree(boolean p_i45448_1_) { + super(p_i45448_1_); + // TODO Auto-generated constructor stub + } + + @Override + public boolean generate(World world, Random par2Random, int par3, int par4, int par5) + { + int var6; + Block block; + + for (var6 = par2Random.nextInt(8) + 6; world.func_147439_a(par3, par4 - 1, par5) == Blocks.water; --par4) + { + ; + } + + boolean var7 = true; + + if (par4 >= 1 && par4 + var6 + 1 <= 128) + { + int var8; + int var10; + int var11; + int var12; + + for (var8 = par4; var8 <= par4 + 1 + var6; ++var8) + { + byte var9 = 1; + + if (var8 == par4) + { + var9 = 0; + } + + if (var8 >= par4 + 1 + var6 - 2) + { + var9 = 3; + } + + for (var10 = par3 - var9; var10 <= par3 + var9 && var7; ++var10) + { + for (var11 = par5 - var9; var11 <= par5 + var9 && var7; ++var11) + { + if (var8 >= 0 && var8 < 128) + { + block = world.func_147439_a(var10, var8, var11); + + if (block.isAir(world, var10, var8, var11) || block.isLeaves(world, var10, var8, var11)) + { + if (block != Blocks.water) + { + var7 = false; + } + else if (var8 > par4) + { + var7 = false; + } + } + } + else + { + var7 = false; + } + } + } + } + + if (!var7) + return false; + else + { + block = world.func_147439_a(par3, par4 - 1, par5); + + if ((block == BOPBlockHelper.get("holyGrass") || block == BOPBlockHelper.get("holyDirt")) && par4 < 128 - var6 - 1) + { + this.func_150516_a(world, par3, par4 - 1, par5, BOPBlockHelper.get("holyDirt"), 0); + int var13; + int var16; + + for (var16 = par4 - 3 + var6; var16 <= par4 + var6; ++var16) + { + var10 = var16 - (par4 + var6); + var11 = 2 - var10 / 2; + + for (var12 = par3 - var11; var12 <= par3 + var11; ++var12) + { + var13 = var12 - par3; + + for (int var14 = par5 - var11; var14 <= par5 + var11; ++var14) + { + int var15 = var14 - par5; + + if ((Math.abs(var13) != var11 || Math.abs(var15) != var11 || par2Random.nextInt(2) != 0 && var10 != 0) && !world.func_147439_a(var12, var16, var14).func_149662_c()) + { + this.func_150516_a(world, var12, var16, var14, Blocks.leaves, 4); + } + } + } + } + + for (var16 = 0; var16 < var6; ++var16) + { + Block block2 = world.func_147439_a(par3, par4 + var16, par5); + + //if (var10 == 0 || var10 == Block.leaves.blockID || block2 == Blocks.water) + if (block.isAir(world, par3, par4 + var16, par5) || block.isLeaves(world, par3, par4 + var16, par5) || block2 == Blocks.water) + { + this.func_150516_a(world, par3, par4 + var16, par5, Blocks.log, 0); + } + } + + var16 = par4 - 3 + var6; + for (var16 = par4 - 3 + var6; var16 <= par4 + var6; ++var16) + { + var10 = var16 - (par4 + var6); + var11 = 2 - var10 / 2; + + for (var12 = par3 - var11; var12 <= par3 + var11; ++var12) + { + for (var13 = par5 - var11; var13 <= par5 + var11; ++var13) + { + //if (world.getBlockId(var12, var16, var13) == Block.leaves.blockID) + Block block2 = world.func_147439_a(var12, var16, var13); + if (!(block.isAir(world, var12, var16, var13) || block.isLeaves(world, var12, var16, var13))) + { + if (par2Random.nextInt(4) == 0 && world.func_147439_a(var12 - 1, var16, var13).isAir(world, var12 - 1, var16, var13)) + { + this.generateVines(world, var12 - 1, var16, var13, 8); + } + + if (par2Random.nextInt(4) == 0 && world.func_147439_a(var12 + 1, var16, var13).isAir(world, var12 + 1, var16, var13)) + { { + this.generateVines(world, var12 + 1, var16, var13, 2); + } + + if (par2Random.nextInt(4) == 0 && world.func_147439_a(var12, var16, var13 - 1).isAir(world, var12, var16, var13 - 1)) + { + this.generateVines(world, var12, var16, var13 - 1, 1); + } + + if (par2Random.nextInt(4) == 0 && world.func_147439_a(var12, var16, var13 + 1).isAir(world, var12, var16, var13 + 1)) + { + this.generateVines(world, var12, var16, var13 + 1, 4); + } + } + } + } + } + + return true; + } + } + else + return false; + } + } else + return false; + return false; + } + + /** + * Generates vines at the given position until it hits a block. + */ + private void generateVines(World par1World, int par2, int par3, int par4, int par5) + { + this.func_150516_a(par1World, par2, par3, par4, Blocks.leaves, 4); + int var6 = 24; + + while (true) + { + --par3; + + if (!par1World.func_147439_a(par2, par3, par4).isAir(par1World, par2, par3, par4) || var6 <= 0) + return; + + this.func_150516_a(par1World, par2, par3, par4, Blocks.leaves, 4); + --var6; + } + } +} diff --git a/src/main/java/biomesoplenty/common/world/layer/GenLayerBiomesCustom.java b/src/main/java/biomesoplenty/common/world/layer/GenLayerBiomesCustom.java new file mode 100644 index 000000000..fbcffa2b6 --- /dev/null +++ b/src/main/java/biomesoplenty/common/world/layer/GenLayerBiomesCustom.java @@ -0,0 +1,41 @@ +package biomesoplenty.common.world.layer; + +import org.apache.logging.log4j.Level; + +import biomesoplenty.api.BOPBiomeHelper; +import net.minecraft.world.WorldType; +import net.minecraft.world.biome.BiomeGenBase; +import net.minecraft.world.gen.layer.GenLayer; +import net.minecraft.world.gen.layer.IntCache; + +public class GenLayerBiomesCustom extends GenLayer { + + protected BiomeGenBase[] allowedBiomes; + + public GenLayerBiomesCustom(long seed, GenLayer genlayer) { + super(seed); + this.parent = genlayer; + } + + //called from GenLayerCustom.makeTheWorld + public GenLayerBiomesCustom(long seed, WorldType worldType) { + super(seed); + this.allowedBiomes = new BiomeGenBase[]{BOPBiomeHelper.getBOPBiome("wonderousWoods"), BOPBiomeHelper.getBOPBiome("majesticMeadow"), BOPBiomeHelper.getBOPBiome("blessedBog")}; + } + + @Override + public int[] getInts(int x, int z, int width, int depth) + { + int[] dest = IntCache.getIntCache(width*depth); + + for (int dz=0; dz> 3)) * d; + double d3 = j >= 4 ? j != 12 && j != 14 ? d1 : d : 0.0D; + return ((j & 1) != 0 ? -d2 : d2) + ((j & 2) != 0 ? -d3 : d3); + } + + public final double grad(int i, double d, double d1, double d2) + { + int j = i & 0xf; + double d3 = j >= 8 ? d1 : d; + double d4 = j >= 4 ? j != 12 && j != 14 ? d2 : d : d1; + return ((j & 1) != 0 ? -d3 : d3) + ((j & 2) != 0 ? -d4 : d4); + } + + public double func_801_a(double d, double d1) + { + return generateNoise(d, d1, 0.0D); + } + + public void func_805_a(double ad[], double d, double d1, double d2, + int i, int j, int k, double d3, double d4, + double d5, double d6) + { + if(j == 1) + { + boolean flag = false; + boolean flag1 = false; + boolean flag2 = false; + boolean flag3 = false; + double d8 = 0.0D; + double d10 = 0.0D; + int j3 = 0; + double d12 = 1.0D / d6; + for(int i4 = 0; i4 < i; i4++) + { + double d14 = (d + i4) * d3 + xCoord; + int j4 = (int)d14; + if(d14 < j4) + { + j4--; + } + int k4 = j4 & 0xff; + d14 -= j4; + double d17 = d14 * d14 * d14 * (d14 * (d14 * 6D - 15D) + 10D); + for(int l4 = 0; l4 < k; l4++) + { + double d19 = (d2 + l4) * d5 + zCoord; + int j5 = (int)d19; + if(d19 < j5) + { + j5--; + } + int l5 = j5 & 0xff; + d19 -= j5; + double d21 = d19 * d19 * d19 * (d19 * (d19 * 6D - 15D) + 10D); + int l = permutations[k4] + 0; ///bwg4 made by ted80 + int j1 = permutations[l] + l5; + int k1 = permutations[k4 + 1] + 0; + int l1 = permutations[k1] + l5; + double d9 = lerp(d17, func_4110_a(permutations[j1], d14, d19), grad(permutations[l1], d14 - 1.0D, 0.0D, d19)); + double d11 = lerp(d17, grad(permutations[j1 + 1], d14, 0.0D, d19 - 1.0D), grad(permutations[l1 + 1], d14 - 1.0D, 0.0D, d19 - 1.0D)); + double d23 = lerp(d21, d9, d11); + ad[j3++] += d23 * d12; + } + + } + + return; + } + int i1 = 0; + double d7 = 1.0D / d6; + int i2 = -1; + boolean flag4 = false; + boolean flag5 = false; + boolean flag6 = false; + boolean flag7 = false; + boolean flag8 = false; + boolean flag9 = false; + double d13 = 0.0D; + double d15 = 0.0D; + double d16 = 0.0D; + double d18 = 0.0D; + for(int i5 = 0; i5 < i; i5++) + { + double d20 = (d + i5) * d3 + xCoord; + int k5 = (int)d20; + if(d20 < k5) + { + k5--; + } + int i6 = k5 & 0xff; + d20 -= k5; + double d22 = d20 * d20 * d20 * (d20 * (d20 * 6D - 15D) + 10D); + for(int j6 = 0; j6 < k; j6++) + { + double d24 = (d2 + j6) * d5 + zCoord; + int k6 = (int)d24; + if(d24 < k6) + { + k6--; + } + int l6 = k6 & 0xff; + d24 -= k6; + double d25 = d24 * d24 * d24 * (d24 * (d24 * 6D - 15D) + 10D); + for(int i7 = 0; i7 < j; i7++) + { + double d26 = (d1 + i7) * d4 + yCoord; + int j7 = (int)d26; + if(d26 < j7) + { + j7--; + } + int k7 = j7 & 0xff; + d26 -= j7; + double d27 = d26 * d26 * d26 * (d26 * (d26 * 6D - 15D) + 10D); + if(i7 == 0 || k7 != i2) + { + i2 = k7; + int j2 = permutations[i6] + k7; + int k2 = permutations[j2] + l6; + int l2 = permutations[j2 + 1] + l6; + int i3 = permutations[i6 + 1] + k7; + int k3 = permutations[i3] + l6; + int l3 = permutations[i3 + 1] + l6; + d13 = lerp(d22, grad(permutations[k2], d20, d26, d24), grad(permutations[k3], d20 - 1.0D, d26, d24)); + d15 = lerp(d22, grad(permutations[l2], d20, d26 - 1.0D, d24), grad(permutations[l3], d20 - 1.0D, d26 - 1.0D, d24)); + d16 = lerp(d22, grad(permutations[k2 + 1], d20, d26, d24 - 1.0D), grad(permutations[k3 + 1], d20 - 1.0D, d26, d24 - 1.0D)); + d18 = lerp(d22, grad(permutations[l2 + 1], d20, d26 - 1.0D, d24 - 1.0D), grad(permutations[l3 + 1], d20 - 1.0D, d26 - 1.0D, d24 - 1.0D)); + } + double d28 = lerp(d27, d13, d15); + double d29 = lerp(d27, d16, d18); + double d30 = lerp(d25, d28, d29); + ad[i1++] += d30 * d7; + } + } + } + } + private int permutations[]; + public double xCoord; + public double yCoord; + public double zCoord; +}