Interface Option

Option instance, which can be obtained via Game.getOption.

2.4.0b122

interface Option {
    canModify(): boolean;
    getBoolean(): boolean;
    getFloat(): number;
    getFloatMax(): number;
    getFloatMin(): number;
    getInt(): number;
    getIntMax(): number;
    getIntMin(): number;
    getPointer(): number;
    getString(): string;
    getType(): number;
}

Methods

  • Can option be changed in game settings.

    Returns boolean

  • Gets boolean value of option, suitable for boolean OptionType.

    Returns boolean

  • Gets boolean value of option, suitable for float and float slider OptionTypes.

    Returns number

  • Gets maximum value in slider range, suitable for float slider OptionType.

    Returns number

  • Gets minimum value in slider range, suitable for float slider OptionType.

    Returns number

  • Gets boolean value of option, suitable for int and int slider OptionTypes.

    Returns number

  • Gets maximum value in slider range, suitable for int slider OptionType.

    Returns number

  • Gets minimum value in slider range, suitable for int slider OptionType.

    Returns number

  • Internal

    Returns number

  • Gets boolean value of option, suitable for string OptionType.

    Returns string

  • Gets numeric option type, which can be used to determine data type and retrieve proper value.

    Returns number

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