类 ItemDyeableComponentbeta

When present on an item, this item can be dyed.

层级 (查看层级一览)

属性

color?: RGB

Sets and returns the current color of the item.

defaultColor?: RGB

Returns the default color of the item.

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.

typeId: string

Identifier of the component.

componentId: "minecraft:dyeable" = 'minecraft:dyeable'