ItemCooldownComponent
¶
文档版本:1.21.60.21
ItemCooldownComponent
类,扩展自ItemComponent
。script_api.minecraft/server.itemcooldowncomponent.description
常量¶
componentId
属性¶
cooldownCategory
cooldownCategory
:string
- script_api.minecraft/server.itemcooldowncomponent.cooldowncategory.description
cooldownTicks
cooldownTicks
:int32
- script_api.minecraft/server.itemcooldowncomponent.cooldownticks.description
方法¶
getCooldownTicksRemaining
script_api.minecraft/server.itemcooldowncomponent.getcooldownticksremaining.description
player
:Player
- script_api.minecraft/server.itemcooldowncomponent.getcooldownticksremaining.player.description
- 返回值:
int32
- script_api.minecraft/server.itemcooldowncomponent.getcooldownticksremaining.return
isCooldownCategory
script_api.minecraft/server.itemcooldowncomponent.iscooldowncategory.description
cooldownCategory
:string
- script_api.minecraft/server.itemcooldowncomponent.iscooldowncategory.cooldowncategory.description
- 返回值:
boolean
- script_api.minecraft/server.itemcooldowncomponent.iscooldowncategory.return
startCooldown
script_api.minecraft/server.itemcooldowncomponent.startcooldown.description
- 返回值:
void
- script_api.minecraft/server.itemcooldowncomponent.startcooldown.return