UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

32 lines (30 loc) 937 B
"use strict"; // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. Object.defineProperty(exports, "__esModule", { value: true }); const BlockActor_1 = require("./BlockActor"); class CampfireBlockActor extends BlockActor_1.default { 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; //# sourceMappingURL=../../maps/minecraft/blockActors/CampfireBlockActor.js.map