UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

40 lines (38 loc) 859 B
"use strict"; // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. Object.defineProperty(exports, "__esModule", { value: true }); class Anchor { get from() { return this.data.from; } set from(newFrom) { this.data.from = newFrom; } get to() { return this.data.to; } set to(newTo) { this.data.to = newTo; } get name() { return this.data.name; } set name(newName) { this.data.name = newName; } constructor(data) { if (data) { this.data = data; } else { this.data = { from: { x: 0, y: 0, z: 0 }, to: { x: 0, y: 0, z: 0 }, name: "", }; } } } exports.default = Anchor; //# sourceMappingURL=../maps/minecraft/Anchor.js.map