@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
37 lines (36 loc) • 1.07 kB
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 CampfireBlockActor extends BlockActor_1.default {
itemTime1;
itemTime2;
itemTime3;
itemTime4;
load() {
if (!this.rootTag) {
return;
}
let tag = this.rootTag.find("itemTime1");
if (tag) {
this.itemTime1 = tag.valueAsInt;
}
tag = this.rootTag.find("itemTime2");
if (tag) {
this.itemTime2 = tag.valueAsInt;
}
tag = this.rootTag.find("itemTime3");
if (tag) {
this.itemTime3 = tag.valueAsInt;
}
tag = this.rootTag.find("itemTime4");
if (tag) {
this.itemTime4 = tag.valueAsInt;
}
}
}
exports.default = CampfireBlockActor;