BaseServerSourceLine

Represents a base server source line.

Server source lines can create new server audio sources.

Types

Link copied to clipboard

Interface for building a server source lines.

Properties

Link copied to clipboard
abstract val addon: AddonContainer

Gets the source line's addon.

Link copied to clipboard
abstract val defaultVolume: Double
Link copied to clipboard
@get:NotNull
abstract val icon: @NotNull String
Link copied to clipboard
@get:NotNull
abstract val id: @NotNull UUID
Link copied to clipboard
@get:NotNull
abstract val name: @NotNull String
Link copied to clipboard
@get:Nullable
abstract val players: @Nullable Collection<McGameProfile?>??
Link copied to clipboard

Gets the ServerPlayerSetManager if the source line was created with "withPlayers" argument; otherwise, returns null.

Link copied to clipboard
abstract override val sources: Collection<ServerAudioSource<*>?>?
Link copied to clipboard
@get:NotNull
abstract val translation: @NotNull String
Link copied to clipboard
open val weight: Int

Functions

Link copied to clipboard
abstract fun clear()
Link copied to clipboard
open fun createBroadcastSource(stereo: Boolean = false, decoderInfo: CodecInfo? = OpusDecoderInfo()): ServerBroadcastSource
abstract fun createBroadcastSource(stereo: Boolean = false, decoderInfo: CodecInfo? = OpusDecoderInfo(), builder: Consumer<ServerBroadcastSource> = Consumer {}): ServerBroadcastSource

Creates a new broadcast source.

Link copied to clipboard
open fun createDirectSource(player: VoicePlayer, stereo: Boolean = false): ServerDirectSource
open fun createDirectSource(player: VoicePlayer, stereo: Boolean = false, decoderInfo: CodecInfo? = OpusDecoderInfo()): ServerDirectSource
abstract fun createDirectSource(player: VoicePlayer, stereo: Boolean = false, decoderInfo: CodecInfo? = OpusDecoderInfo(), builder: Consumer<ServerDirectSource> = Consumer {}): ServerDirectSource

Creates a new direct source.

Link copied to clipboard
abstract fun getSourceById(@NotNull p0: @NotNull UUID): Optional<ServerAudioSource<*>?>?
Link copied to clipboard

Gets the source line for a specified player.

Link copied to clipboard
Link copied to clipboard
abstract fun hasPlayers(): Boolean
Link copied to clipboard
abstract fun removeSource(sourceId: UUID)

Removes a source from the source map by its unique identifier.

open fun removeSource(source: ServerAudioSource<*>)

Removes a source from the source map.