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 013 /** World terrain type, 0 for normal, 1 for flap map */ 014 public final int terrainType; 015 public StructureVillagePieceWeight structVillagePieceWeight; 016 017 /** 018 * Contains List of all spawnable Structure Piece Weights. If no more Pieces of a type can be spawned, they are 019 * removed from this list 020 */ 021 public ArrayList structureVillageWeightedPieceList; 022 public ArrayList field_74932_i = new ArrayList(); 023 public ArrayList field_74930_j = new ArrayList(); 024 025 public ComponentVillageStartPiece(WorldChunkManager par1WorldChunkManager, int par2, Random par3Random, int par4, int par5, ArrayList par6ArrayList, int par7) 026 { 027 super((ComponentVillageStartPiece)null, 0, par3Random, par4, par5); 028 this.worldChunkMngr = par1WorldChunkManager; 029 this.structureVillageWeightedPieceList = par6ArrayList; 030 this.terrainType = par7; 031 BiomeGenBase var8 = par1WorldChunkManager.getBiomeGenAt(par4, par5); 032 this.inDesert = var8 == BiomeGenBase.desert || var8 == BiomeGenBase.desertHills; 033 this.startPiece = this; 034 } 035 036 public WorldChunkManager getWorldChunkManager() 037 { 038 return this.worldChunkMngr; 039 } 040 }