@minecraft
    Preparing search index...

    Class MinimapItem

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

    Index

    Properties

    id: string
    isActive: boolean

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

    Methods

    • Parameters

      • playerId: string

      Returns RGBA

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

      This function can throw errors.

    • World mutation

      Parameters

      • active: boolean

      Returns void

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

      This function can throw errors.

    • World mutation

      Parameters

      • mapWidth: number
      • mapHeight: number

      Returns void

      Adjust the width and height dimensions of the minimap display.

      This function can throw errors.