跳转至

BlockRecordPlayerComponent

文档版本:1.21.60.21

BlockRecordPlayerComponent类,扩展自BlockComponent。script_api.minecraft/server.blockrecordplayercomponent.description

常量

componentId
static read-only componentId = "minecraft:record_player";

方法

ejectRecord

script_api.minecraft/server.blockrecordplayercomponent.ejectrecord.description

ejectRecord(): void
getRecord

script_api.minecraft/server.blockrecordplayercomponent.getrecord.description

getRecord(): ItemStack | undefined
isPlaying

script_api.minecraft/server.blockrecordplayercomponent.isplaying.description

isPlaying(): boolean
pauseRecord

script_api.minecraft/server.blockrecordplayercomponent.pauserecord.description

pauseRecord(): void
playRecord

script_api.minecraft/server.blockrecordplayercomponent.playrecord.description

playRecord(): void
setRecord

script_api.minecraft/server.blockrecordplayercomponent.setrecord.description

setRecord(recordItemType?: ItemType | string, startPlaying: boolean): void