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

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

Functions

Link copied to clipboard
abstract fun clear()
Link copied to clipboard
abstract fun createBroadcastSource(stereo: Boolean = false, decoderInfo: CodecInfo? = OpusDecoderInfo()): ServerBroadcastSource

Creates a new broadcast source.

Link copied to clipboard
open fun createDirectSource(player: VoicePlayer, stereo: Boolean = false): ServerDirectSource
abstract fun createDirectSource(player: VoicePlayer, stereo: Boolean = false, decoderInfo: CodecInfo? = OpusDecoderInfo()): ServerDirectSource

Creates a new direct source.

Link copied to clipboard
abstract fun getDefaultVolume(): Double
Link copied to clipboard
@NotNull
abstract fun getIcon(): @NotNull String
Link copied to clipboard
@NotNull
abstract fun getId(): @NotNull UUID
Link copied to clipboard
@NotNull
abstract fun getName(): @NotNull String
Link copied to clipboard
@Nullable
abstract fun getPlayers(): @Nullable MutableCollection<McGameProfile>?
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
@NotNull
abstract fun getTranslation(): @NotNull String
Link copied to clipboard
open fun getWeight(): Int
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.