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