package net.minecraft.world.gen.structure;

import java.util.Random;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.gen.structure.ComponentScatteredFeatureDesertPyramid;
import net.minecraft.world.gen.structure.ComponentScatteredFeatureJunglePyramid;
import net.minecraft.world.gen.structure.ComponentScatteredFeatureSwampHut;
import net.minecraft.world.gen.structure.StructureStart;

public class StructureScatteredFeatureStart extends StructureStart {

   public StructureScatteredFeatureStart(World p_i2060_1_, Random p_i2060_2_, int p_i2060_3_, int p_i2060_4_) {
      BiomeGenBase var5 = p_i2060_1_.func_72807_a(p_i2060_3_ * 16 + 8, p_i2060_4_ * 16 + 8);
      if(var5 != BiomeGenBase.field_76782_w && var5 != BiomeGenBase.field_76792_x) {
         if(var5 == BiomeGenBase.field_76780_h) {
            ComponentScatteredFeatureSwampHut var8 = new ComponentScatteredFeatureSwampHut(p_i2060_2_, p_i2060_3_ * 16, p_i2060_4_ * 16);
            this.field_75075_a.add(var8);
         } else {
            ComponentScatteredFeatureDesertPyramid var7 = new ComponentScatteredFeatureDesertPyramid(p_i2060_2_, p_i2060_3_ * 16, p_i2060_4_ * 16);
            this.field_75075_a.add(var7);
         }
      } else {
         ComponentScatteredFeatureJunglePyramid var6 = new ComponentScatteredFeatureJunglePyramid(p_i2060_2_, p_i2060_3_ * 16, p_i2060_4_ * 16);
         this.field_75075_a.add(var6);
      }

      this.func_75072_c();
   }
}
