kotlin
object BasicAudioSchedulerPlatform scheduling hook; Paper installs entity-region scheduling.
object BasicAudioSchedulerPlatform scheduling hook; Paper installs entity-region scheduling.
fun playBasicSound(player: ServerPlayer, soundId: String, position: Vec3? = null, category: SoundSource = SoundSource.MUSIC, volume: Float = 1f, pitch: Float = 1f): CompletableFuture<Unit>三平台均可播放客户端已有的声音;异步完成仅表示已发送。
fun stopBasicSound(player: ServerPlayer, soundId: String? = null, category: SoundSource? = null): CompletableFuture<Unit>按声音 ID/分类停止,无法区分相同 ID 的多个实例;空筛选匹配所有声音。