@throw-out-error/minecraft-mcfunction
Version:
A simple way to create your mcfunction files using Typescript syntax.
19 lines • 494 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.NBT = void 0;
const nbt_ts_1 = require("nbt-ts");
const _1 = require(".");
class NBT extends _1.ArgumentObject {
constructor(tag) {
super();
if (typeof tag === 'string') {
tag = nbt_ts_1.parse(tag);
}
this.tag = tag;
}
toString() {
return nbt_ts_1.stringify(this.tag);
}
}
exports.NBT = NBT;
//# sourceMappingURL=nbt.js.map