001 package net.minecraft.src; 002 003 public class BiomeEndDecorator extends BiomeDecorator 004 { 005 protected WorldGenerator spikeGen; 006 007 public BiomeEndDecorator(BiomeGenBase par1BiomeGenBase) 008 { 009 super(par1BiomeGenBase); 010 this.spikeGen = new WorldGenSpikes(Block.whiteStone.blockID); 011 } 012 013 /** 014 * The method that does the work of actually decorating chunks 015 */ 016 protected void decorate() 017 { 018 this.generateOres(); 019 020 if (this.randomGenerator.nextInt(5) == 0) 021 { 022 int var1 = this.chunk_X + this.randomGenerator.nextInt(16) + 8; 023 int var2 = this.chunk_Z + this.randomGenerator.nextInt(16) + 8; 024 int var3 = this.currentWorld.getTopSolidOrLiquidBlock(var1, var2); 025 026 if (var3 > 0) 027 { 028 ; 029 } 030 031 this.spikeGen.generate(this.currentWorld, this.randomGenerator, var1, var3, var2); 032 } 033 034 if (this.chunk_X == 0 && this.chunk_Z == 0) 035 { 036 EntityDragon var4 = new EntityDragon(this.currentWorld); 037 var4.setLocationAndAngles(0.0D, 128.0D, 0.0D, this.randomGenerator.nextFloat() * 360.0F, 0.0F); 038 this.currentWorld.spawnEntityInWorld(var4); 039 } 040 } 041 }