Interface AttributeInstance

Interface used to modify attribute values.

2.0.3b33

interface AttributeInstance {
    getDefaultValue(): number;
    getMaxValue(): number;
    getMinValue(): number;
    getValue(): number;
    setDefaultValue(value: number): void;
    setMaxValue(value: number): void;
    setMinValue(value: number): void;
    setValue(value: number): void;
}

Methods

  • Returns number

    Attribute's default value

  • Returns number

    Attribute's maximum value.

  • Returns number

    Attribute's minimum value.

  • Returns number

    Current attribute's value.

  • Sets attribute's default value.

    Parameters

    • value: number

    Returns void

  • Sets attribute's maximum value.

    Parameters

    • value: number

    Returns void

  • Sets attribute's minimum value.

    Parameters

    • value: number

    Returns void

  • Sets current attribute's value.

    Parameters

    • value: number

    Returns void

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.