ClientSourceManager

Manages client audio sources.

Functions

Link copied to clipboard
abstract fun clear()
Link copied to clipboard
@NotNull
abstract fun createLoopbackSource(relative: Boolean): @NotNull LoopbackSource
Creates a loopback source.
Link copied to clipboard
abstract fun createOrUpdateSource(@NotNull sourceInfo: @NotNull SourceInfo)
Creates or updates a client audio source based on the provided source information.
Link copied to clipboard
@NotNull
abstract fun getAllSelfSourceInfos(): @NotNull Collection<out ClientSelfSourceInfo>
Gets a collection of ClientSelfSourceInfo.
Link copied to clipboard
@NotNull
abstract fun getEntitySources(entityId: Int): @NotNull Collection<ClientAudioSource<EntitySourceInfo>>
Gets all client audio sources associated with a specific entity.
Link copied to clipboard
@NotNull
abstract fun getPlayerSources(@NotNull playerId: @NotNull UUID): @NotNull Collection<ClientAudioSource<PlayerSourceInfo>>
Gets all client audio sources associated with a specific player.
Link copied to clipboard
abstract fun getSelfSourceInfo(@NotNull sourceId: @NotNull UUID): Optional<ClientSelfSourceInfo>
Gets the client self source information for the specified source identifier.
Link copied to clipboard
abstract fun getSourceById(p: @NotNull UUID): Optional<T>

abstract fun getSourceById(@NotNull sourceId: @NotNull UUID, request: Boolean): Optional<ClientAudioSource<out Any>>
Gets a client audio source by its unique identifier.
Link copied to clipboard
abstract fun getSources(): Collection<T>
Link copied to clipboard
@NotNull
abstract fun getSourcesByLineId(@NotNull lineId: @NotNull UUID): @NotNull Collection<ClientAudioSource<out Any>>
Gets all client audio sources associated with a specified line identifier.
Link copied to clipboard
open fun sendSourceInfoRequest(@NotNull sourceId: @NotNull UUID)
abstract fun sendSourceInfoRequest(@NotNull sourceId: @NotNull UUID, requestIfExist: Boolean)
Sends a source information request for the specified source identifier.
Link copied to clipboard
abstract fun updateSelfSourceInfo(@NotNull selfSourceInfo: @NotNull SelfSourceInfo)
Updates the client self source information.