001    package net.minecraft.world.gen.structure;
002    
003    import java.util.ArrayList;
004    import java.util.Random;
005    import net.minecraft.world.biome.BiomeGenBase;
006    import net.minecraft.world.biome.WorldChunkManager;
007    
008    public class ComponentVillageStartPiece extends ComponentVillageWell
009    {
010        public final WorldChunkManager worldChunkMngr;
011    
012        /** Boolean that determines if the village is in a desert or not. */
013        public final boolean inDesert;
014        public final BiomeGenBase biome;
015    
016        /** World terrain type, 0 for normal, 1 for flap map */
017        public final int terrainType;
018        public StructureVillagePieceWeight structVillagePieceWeight;
019    
020        /**
021         * Contains List of all spawnable Structure Piece Weights. If no more Pieces of a type can be spawned, they are
022         * removed from this list
023         */
024        public ArrayList structureVillageWeightedPieceList;
025        public ArrayList field_74932_i = new ArrayList();
026        public ArrayList field_74930_j = new ArrayList();
027    
028        public ComponentVillageStartPiece(WorldChunkManager par1WorldChunkManager, int par2, Random par3Random, int par4, int par5, ArrayList par6ArrayList, int par7)
029        {
030            super((ComponentVillageStartPiece)null, 0, par3Random, par4, par5);
031            this.worldChunkMngr = par1WorldChunkManager;
032            this.structureVillageWeightedPieceList = par6ArrayList;
033            this.terrainType = par7;
034            BiomeGenBase var8 = par1WorldChunkManager.getBiomeGenAt(par4, par5);
035            this.inDesert = var8 == BiomeGenBase.desert || var8 == BiomeGenBase.desertHills;
036            this.biome = var8;
037            this.startPiece = this;
038        }
039    
040        public WorldChunkManager getWorldChunkManager()
041        {
042            return this.worldChunkMngr;
043        }
044    }