UNPKG

@throw-out-error/minecraft-datapack

Version:

A module for making minecraft datapacks with node to cut down on the repetition.

26 lines (25 loc) 631 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Condition = void 0; class Condition { /** * @param {object} options the configuration of the loot condition */ constructor(options) { this.options = options; } compile() { return this.options; } /** * Creates a copy of the loot condition * @param {Condition} Condition */ static copy(condition) { let copy = new Condition({}); for (let key in { ...Condition }) copy[key] = condition[key]; return copy; } } exports.Condition = Condition;