UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

27 lines (26 loc) 825 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 HopperBlockActor extends BlockActor_1.default { customName; transferCooldown; load() { if (!this.rootTag) { return; } let tag = this.rootTag.find("CustomName"); if (tag) { this.customName = tag.valueAsString; } tag = this.rootTag.find("TransferCooldown"); if (tag) { this.transferCooldown = tag.valueAsInt; } } } exports.default = HopperBlockActor;