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