"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
class AttributeComponent {
    loadFromNbtTag(tag) {
        const minTag = tag.find("Min");
        if (minTag !== null) {
            this.minimum = minTag.valueAsInt;
        }
        let maxTag = tag.find("Max");
        if (maxTag !== null) {
            this.maximum = maxTag.valueAsInt;
        }
        const dminTag = tag.find("DefaultMin");
        if (dminTag !== null) {
            this.defaultMinimum = dminTag.valueAsInt;
        }
        const dmaxTag = tag.find("DefaultMax");
        if (dmaxTag !== null) {
            this.defaultMaximum = dmaxTag.valueAsInt;
        }
        const baseTag = tag.find("Base");
        if (baseTag !== null) {
            this.base = baseTag.valueAsInt;
        }
        const currentTag = tag.find("Current");
        if (currentTag !== null) {
            this.current = currentTag.valueAsInt;
        }
    }
}
exports.default = AttributeComponent;

//# sourceMappingURL=../../maps/minecraft/components/IntAttributeComponent.js.map
