ServerEntitySource

Represents an entity audio source.

Properties

Link copied to clipboard
@get:NotNull
abstract override val addon: @NotNull AddonContainer
Link copied to clipboard
abstract var angle: Int

Gets or sets the angle of this audio source.

Link copied to clipboard
abstract val entity: McServerEntity

Gets the entity associated with this audio source.

Link copied to clipboard
@get:NotNull
abstract override val filters: @NotNull Collection<Predicate<in VoicePlayer?>?>
Link copied to clipboard
@get:NotNull
abstract override val id: @NotNull UUID
Link copied to clipboard
abstract override var isIconVisible: Boolean
Link copied to clipboard
abstract override val line: ServerSourceLine
Link copied to clipboard
abstract val position: ServerPos3d

Gets the position of this audio source.

Link copied to clipboard
Link copied to clipboard
abstract override val state: Int

Functions

Link copied to clipboard
abstract fun <P : VoicePlayer?> addFilter(@NotNull p0: @NotNull Predicate<in P?>)
Link copied to clipboard
abstract fun clearFilters()
Link copied to clipboard
abstract fun createAudioSender(frameProvider: AudioFrameProvider, distanceProvider: Supplier<Short>): AudioSender

Creates a new audio sender for this source.

open fun createAudioSender(frameProvider: AudioFrameProvider, distance: Short): AudioSender

Creates a new audio sender for this source with fixed distance.

Link copied to clipboard
abstract override fun getLine(): ServerSourceLine

Gets the server source line to which this audio source belongs.

Link copied to clipboard
abstract fun <P : VoicePlayer?> matchFilters(@NotNull p0: @NotNull P & Any): Boolean
Link copied to clipboard
open fun <P : VoicePlayer?> notMatchFilters(@NotNull player: @NotNull P & Any): Boolean
Link copied to clipboard
open fun remove()
Link copied to clipboard
abstract fun <P : VoicePlayer?> removeFilter(@NotNull p0: @NotNull Predicate<in P?>)
Link copied to clipboard
@NotNull
abstract fun resolveSourceInfo(): @NotNull CompletableFuture<EntitySourceInfo?>
Link copied to clipboard
open fun sendAudioEnd(sequenceNumber: Long, distance: Short): Boolean

Sends an audio end packet.

Link copied to clipboard
open fun sendAudioFrame(frame: ByteArray, sequenceNumber: Long, distance: Short): Boolean

Sends an encoded and encrypted audio frame to players within the specified distance with null activation info.

open fun sendAudioFrame(frame: ByteArray, sequenceNumber: Long, distance: Short, activationInfo: PlayerActivationInfo?): Boolean

Sends an encoded and encrypted audio frame to players within the specified distance with activation info.

Link copied to clipboard
open fun sendAudioPacket(packet: SourceAudioPacket, distance: Short): Boolean

Sends an audio packet to players within the specified distance with null activation info.

abstract fun sendAudioPacket(packet: SourceAudioPacket, distance: Short, activationInfo: PlayerActivationInfo?): Boolean

Sends an audio packet to players within the specified distance with an activation info.

Link copied to clipboard
abstract fun sendPacket(packet: Packet<*>, distance: Short): Boolean

Sends a TCP packet to players within the specified distance.

Link copied to clipboard
abstract fun setDirty()
Link copied to clipboard
abstract fun setName(@Nullable p0: @Nullable String?)
Link copied to clipboard
abstract fun setStereo(p0: Boolean)