@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
33 lines (31 loc) • 930 B
JavaScript
"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
class BlockActor {
constructor(rootTagIn) {
this.rootTag = rootTagIn;
let tag = this.rootTag.find("x");
if (tag !== null) {
this.x = tag.valueAsInt;
}
tag = this.rootTag.find("y");
if (tag !== null) {
this.y = tag.valueAsInt;
}
tag = this.rootTag.find("z");
if (tag !== null) {
this.z = tag.valueAsInt;
}
tag = this.rootTag.find("id");
if (tag !== null) {
this.id = tag.valueAsString;
}
tag = this.rootTag.find("isMovable");
if (tag) {
this.isMovable = tag.valueAsBoolean;
}
}
}
exports.default = BlockActor;
//# sourceMappingURL=../../maps/minecraft/blockActors/BlockActor.js.map