UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

22 lines (21 loc) 689 B
"use strict"; // 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 BeehiveBlockActor extends BlockActor_1.default { shouldSpawnBees; load() { if (!this.rootTag) { return; } const tag = this.rootTag.find("shouldSpawnBees"); if (tag) { this.shouldSpawnBees = tag.valueAsBoolean; } } } exports.default = BeehiveBlockActor;