@minecraft
    正在准备搜索索引...

    接口 INumberPropertyItem

    A property item which supports Number properties

    interface INumberPropertyItem {
        enable: boolean;
        id: string;
        paneId: string;
        typeName: PropertyItemType;
        value: number;
        visible: boolean;
        setTitle(title: LocalizedString): void;
        setTooltip(tooltip: LocalizedString): void;
        updateLimits(limits: { max?: number; min?: number }): void;
    }

    层级 (查看层级一览)

    索引

    属性

    enable: boolean

    If the item is enabled in the UI.

    id: string

    Unique ID for the property item.

    paneId: string

    The parent pane id.

    The type name of the target property.

    value: number

    Current value of the property item.

    visible: boolean

    If the item should be visible in the UI.

    方法

    • 参数

      • limits: { max?: number; min?: number }

      返回 void

      Updates number limits and clamps the current value.