Class: BlockRecordPlayerComponent
Represents a block that can play a record.
Extends
Constructors
new BlockRecordPlayerComponent()
private
new BlockRecordPlayerComponent():BlockRecordPlayerComponent
Returns
Overrides
Properties
block
readonly
block:Block
Remarks
Block instance that this component pertains to.
Inherited from
typeId
readonly
typeId:string
Remarks
Identifier of the component.
Inherited from
componentId
static
readonly
componentId:"minecraft:recordPlayer"
='minecraft:recordPlayer'
Methods
clearRecord()
clearRecord():
void
Returns
void
Remarks
Clears the currently playing record of this record-playing block.
This function can't be called in read-only mode.
Throws
This function can throw errors.
isPlaying()
isPlaying():
boolean
Returns
boolean
Remarks
Returns true if the record-playing block is currently playing a record.