ServerSourceLine

Represents a server source line.

Server source lines used to create a server audio sources.

Properties

Link copied to clipboard
abstract val addon: AddonContainer
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
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 createDirectSource(player: VoicePlayer, stereo: Boolean, decoderInfo: CodecInfo?): ServerDirectSource
abstract fun createDirectSource(player: VoicePlayer, stereo: Boolean, decoderInfo: CodecInfo?, builder: Consumer<ServerDirectSource>): ServerDirectSource
Link copied to clipboard
open fun createEntitySource(entity: McServerEntity, stereo: Boolean = false): ServerEntitySource
open fun createEntitySource(entity: McServerEntity, stereo: Boolean = false, decoderInfo: CodecInfo? = OpusDecoderInfo()): ServerEntitySource
abstract fun createEntitySource(entity: McServerEntity, stereo: Boolean = false, decoderInfo: CodecInfo? = OpusDecoderInfo(), builder: Consumer<ServerEntitySource> = Consumer {}): ServerEntitySource

Creates a new entity source.

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

Creates a new player source.

Link copied to clipboard
open fun createStaticSource(position: ServerPos3d, stereo: Boolean = false): ServerStaticSource
open fun createStaticSource(position: ServerPos3d, stereo: Boolean = false, decoderInfo: CodecInfo? = OpusDecoderInfo()): ServerStaticSource
abstract fun createStaticSource(position: ServerPos3d, stereo: Boolean = false, decoderInfo: CodecInfo? = OpusDecoderInfo(), builder: Consumer<ServerStaticSource> = Consumer {}): ServerStaticSource

Creates a new static source.

Link copied to clipboard
abstract fun getSourceById(@NotNull p0: @NotNull UUID): Optional<ServerAudioSource<*>?>?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun hasPlayers(): Boolean
Link copied to clipboard
abstract fun removeSource(sourceId: UUID)
open fun removeSource(source: ServerAudioSource<*>)