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

    A MinimapItem represents an individual minimap instance that manages map data, controls display state, and provides configuration for markers and visual properties.

    索引

    属性

    id: string
    isActive: boolean

    Indicate whether this minimap instance is currently active and being displayed to the player.

    方法

    • 参数

      • playerId: string

      返回 RGBA

      Retrieve the color assigned to a specific player on the minimap.

      This function can throw errors.

    • 世界修改

      参数

      • active: boolean

      返回 void

      Control whether the minimap is currently active and visible to the player.

      This function can throw errors.

    • 世界修改

      参数

      • mapWidth: number
      • mapHeight: number

      返回 void

      Adjust the width and height dimensions of the minimap display.

      This function can throw errors.