UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

29 lines (28 loc) 1.02 kB
"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 }); exports.EntityAddRiderComponent = void 0; const ComponentBase_1 = __importDefault(require("../ComponentBase")); /** * When added, this component makes the entity spawn with a * rider of the specified entityType. */ class EntityAddRiderComponent extends ComponentBase_1.default { /** * The type of entity that is added as a rider for this entity * when spawned under certain conditions. * @throws This property can throw when used. */ "entityType"; /** * Optional spawn event to trigger on the rider when that rider * is spawned for this entity. * @throws This property can throw when used. */ "spawnEvent"; } exports.EntityAddRiderComponent = EntityAddRiderComponent;