@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
29 lines (27 loc) • 802 B
JavaScript
;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
const BlockCubeLine_1 = require("./BlockCubeLine");
class BlockCubePlane {
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