"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
const BlockCubeLine_1 = require("./BlockCubeLine");
class BlockCubePlane {
    _cube;
    _x;
    lines;
    get x() {
        return this._x;
    }
    constructor(cube, x) {
        this.lines = [];
        this._cube = cube;
        this._x = x;
    }
    y(y) {
        if (y > this._cube.maxY) {
            throw new Error("Value exceeds maximum Y");
        }
        while (y >= this.lines.length) {
            const newY = this.lines.length;
            this.lines[newY] = new BlockCubeLine_1.default(this._cube, this, newY);
        }
        return this.lines[y];
    }
}
exports.default = BlockCubePlane;

//# sourceMappingURL=../maps/minecraft/BlockCubePlane.js.map
