@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
22 lines (21 loc) • 682 B
JavaScript
;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const BlockActor_1 = __importDefault(require("./BlockActor"));
class ComparatorBlockActor extends BlockActor_1.default {
outputSignal;
load() {
if (!this.rootTag) {
return;
}
const tag = this.rootTag.find("OutputSignal");
if (tag) {
this.outputSignal = tag.valueAsInt;
}
}
}
exports.default = ComparatorBlockActor;