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

Functions

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

Creates a new entity source.

Link copied to clipboard
abstract fun createPlayerSource(player: VoiceServerPlayer, stereo: Boolean = false, decoderInfo: CodecInfo? = OpusDecoderInfo()): ServerPlayerSource

Creates a new player source.

Link copied to clipboard
open fun createStaticSource(position: ServerPos3d, stereo: Boolean = false): ServerStaticSource
abstract fun createStaticSource(position: ServerPos3d, stereo: Boolean = false, decoderInfo: CodecInfo? = OpusDecoderInfo()): ServerStaticSource

Creates a new static 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
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)
open fun removeSource(source: ServerAudioSource<*>)