Represents the cooldown category that this item is
associated with.
抛出
只读cooldownTicks
cooldownTicks:number
备注
物品冷却所需的时间,单位为刻。
Amount of time, in ticks, it will take this item to
cooldown.
抛出
只读isValid
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.
表示物品使用冷却组件。当出现在物品上时,表示该物品被实体使用后会有冷却效果。 注意,若使用后不会进入冷却,原版物品会获取到没有实际作用的该组件。
When present on an item, this item has a cooldown effect when used by entities.