    001package net.minecraft.world.gen.structure;
    002
    003import java.util.Random;
    004import net.minecraft.world.World;
    005import net.minecraft.world.biome.BiomeGenBase;
    006
    007public class StructureScatteredFeatureStart extends StructureStart
    008{
    009    public StructureScatteredFeatureStart(World par1World, Random par2Random, int par3, int par4)
    010    {
    011        BiomeGenBase biomegenbase = par1World.getBiomeGenForCoords(par3 * 16 + 8, par4 * 16 + 8);
    012
    013        if (biomegenbase != BiomeGenBase.jungle && biomegenbase != BiomeGenBase.jungleHills)
    014        {
    015            if (biomegenbase == BiomeGenBase.swampland)
    016            {
    017                ComponentScatteredFeatureSwampHut componentscatteredfeatureswamphut = new ComponentScatteredFeatureSwampHut(par2Random, par3 * 16, par4 * 16);
    018                this.components.add(componentscatteredfeatureswamphut);
    019            }
    020            else
    021            {
    022                ComponentScatteredFeatureDesertPyramid componentscatteredfeaturedesertpyramid = new ComponentScatteredFeatureDesertPyramid(par2Random, par3 * 16, par4 * 16);
    023                this.components.add(componentscatteredfeaturedesertpyramid);
    024            }
    025        }
    026        else
    027        {
    028            ComponentScatteredFeatureJunglePyramid componentscatteredfeaturejunglepyramid = new ComponentScatteredFeatureJunglePyramid(par2Random, par3 * 16, par4 * 16);
    029            this.components.add(componentscatteredfeaturejunglepyramid);
    030        }
    031
    032        this.updateBoundingBox();
    033    }
    034}