"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
class BlockBaseType {
    _name = "";
    data;
    get icon() {
        return this.data.icon;
    }
    getProperty(name) {
        if (this.data.properties === undefined) {
            return undefined;
        }
        for (let i = 0; i < this.data.properties.length; i++) {
            if (this.data.properties[i].name === name) {
                return this.data.properties[i];
            }
        }
        throw new Error();
    }
    get isOpaque() {
        if (this.data.isOpaque === undefined) {
            return false;
        }
        return this.data.isOpaque;
    }
    get shape() {
        if (this.data.shape === undefined) {
            return false;
        }
        return this.data.shape;
    }
    get name() {
        return this._name;
    }
    constructor(name) {
        this._name = name;
        this.data = {
            name: name,
        };
    }
}
exports.default = BlockBaseType;

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