Skip to content
On this page
Common

AudioServerApi

top.katton.api.audiocommon/src/main/kotlin/top/katton/api/audio/AudioServerApi.kt
Loader-owned transport. Paper deliberately has no full-player transport.

AudioServerTransport ​

AudioServerTransportCommonObject
kotlin
object AudioServerTransport

Loader-owned transport. Paper deliberately has no full-player transport.

RemoteAudioHandle ​

RemoteAudioHandleCommonClass
kotlin
class RemoteAudioHandle internal constructor(@Volatile internal var player: ServerPlayer, source: AudioSource, options: AudioOptions) : AudioHandle

Remote state is client-confirmed; refresh requests a fresh snapshot.

RemoteAudioHandle.rebind ​

RemoteAudioHandle.rebindCommonFunction
kotlin
internal fun rebind(current: ServerPlayer)

Re-points the handle after a respawn or dimension change replaced the player instance.

playPlayerAudio ​

playPlayerAudioCommonFunction
kotlin
fun playPlayerAudio(player: ServerPlayer, source: AudioSource, options: AudioOptions = AudioOptions()): RemoteAudioHandle

Full remote playback requires a compatible Katton mod client.