@minecraft/server
    Preparing search index...

    Class BlockMapColorComponentBeta

    Represents the color of a block when displayed on a map.

    Hierarchy (View Summary)

    Index

    Properties

    block: Block

    Block instance that this component pertains to.

    color: RGBA

    Base map color defined for that block.

    This property can throw when used.

    Error

    isValid: boolean

    Returns whether the component is valid. A component is considered valid if its owner is valid, in addition to any addition to any additional validation required by the component.

    tintedColor: RGBA

    Returns the base color multiplied to the evaluated tint at the given position.

    tintMethod: TintMethod

    Type of tint applied to the color.

    This property can throw when used.

    Error

    typeId: string

    Identifier of the component.

    componentId: "minecraft:map_color" = 'minecraft:map_color'