@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
46 lines (44 loc) • 1.14 kB
JavaScript
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
class BlockBaseType {
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 = "";
this._name = name;
this.data = {
name: name,
};
}
}
exports.default = BlockBaseType;
//# sourceMappingURL=../maps/minecraft/BlockBaseType.js.map