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

    接口 CustomTexture实验性

    interface CustomTexture {
        iconHeight: number;
        iconWidth: number;
        path: string;
    }
    索引

    属性

    iconHeight: number

    The height of the icon, in relative units. Value must be between 0.0 and 1.0, inclusive.

    Bounds: [0, 1]

    iconWidth: number

    The width of the icon, in relative units. Value must be between 0.0 and 1.0, inclusive.

    Bounds: [0, 1]

    path: string

    The resource path to the custom texture. This should be a valid string path to a texture asset.