Player
¶
文档版本:1.21.60.21
Player
类,扩展自Entity
。script_api.mojang-minecraft.player.description
属性¶
name
name
:string
- script_api.mojang-minecraft.player.name.description
selectedSlot
selectedSlot
:int32
- script_api.mojang-minecraft.player.selectedslot.description
方法¶
getItemCooldown
script_api.mojang-minecraft.player.getitemcooldown.description
cooldownCategory
:string
- script_api.mojang-minecraft.player.getitemcooldown.cooldowncategory.description
- 返回值:
int32
- script_api.mojang-minecraft.player.getitemcooldown.return
playSound
script_api.mojang-minecraft.player.playsound.description
soundId
:string
- script_api.mojang-minecraft.player.playsound.soundid.description
soundOptions
?:SoundOptions
=null
- script_api.mojang-minecraft.player.playsound.soundoptions.description
- 返回值:
void
- script_api.mojang-minecraft.player.playsound.return
postClientMessage
script_api.mojang-minecraft.player.postclientmessage.description
id
:string
- script_api.mojang-minecraft.player.postclientmessage.id.description
value
:string
- script_api.mojang-minecraft.player.postclientmessage.value.description
- 返回值:
void
- script_api.mojang-minecraft.player.postclientmessage.return
startItemCooldown
script_api.mojang-minecraft.player.startitemcooldown.description
cooldownCategory
:string
- script_api.mojang-minecraft.player.startitemcooldown.cooldowncategory.description
tickDuration
:int32
∈[0
,32767
]- script_api.mojang-minecraft.player.startitemcooldown.tickduration.description
- 返回值:
void
- script_api.mojang-minecraft.player.startitemcooldown.return