public ComponentMineshaftCorridor(int par1, Random par2Random, StructureBoundingBox par3StructureBoundingBox, int par4) : base(par1) { CoordBaseMode = par4; BoundingBox = par3StructureBoundingBox; HasRails = par2Random.Next(3) == 0; HasSpiders = !HasRails && par2Random.Next(23) == 0; if (CoordBaseMode == 2 || CoordBaseMode == 0) { SectionCount = par3StructureBoundingBox.GetZSize() / 5; } else { SectionCount = par3StructureBoundingBox.GetXSize() / 5; } }
public ComponentVillagePathGen(int par1, Random par2Random, StructureBoundingBox par3StructureBoundingBox, int par4) : base(par1) { CoordBaseMode = par4; BoundingBox = par3StructureBoundingBox; AverageGroundLevel = Math.Max(par3StructureBoundingBox.GetXSize(), par3StructureBoundingBox.GetZSize()); }
public ComponentStrongholdCorridor(int par1, Random par2Random, StructureBoundingBox par3StructureBoundingBox, int par4) : base(par1) { CoordBaseMode = par4; BoundingBox = par3StructureBoundingBox; Field_35052_a = par4 != 2 && par4 != 0 ? par3StructureBoundingBox.GetXSize() : par3StructureBoundingBox.GetZSize(); }