UNPKG

@throw-out-error/minecraft-mcfunction

Version:

A simple way to create your mcfunction files using Typescript syntax.

27 lines 843 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.summon = exports.SummonCommand = void 0; const __1 = require(".."); class SummonCommand extends __1.Command { constructor(entity, position, nbt) { super('summon'); this.entity = entity; this.position = position; this.nbt = nbt; } get [__1.Command.ARGUMENTS]() { const args = [this.entity]; if (this.position) args.push(this.position); if (this.nbt) args.push(this.nbt); return args; } } exports.SummonCommand = SummonCommand; function summon(entity, position, nbt) { return new SummonCommand(entity, position, nbt); } exports.summon = summon; __1.Command.registerCommand('summon', summon); //# sourceMappingURL=summon.js.map