ServerEntitySource

Represents an entity audio source.

Properties

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
abstract val position: ServerPos3d

Gets the position of this audio source.

Link copied to clipboard

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
@NotNull
abstract fun getAddon(): @NotNull AddonContainer
Link copied to clipboard
@NotNull
abstract fun getFilters(): @NotNull MutableCollection<Predicate<in VoicePlayer>>
Link copied to clipboard
@NotNull
abstract fun getId(): @NotNull UUID
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 getState(): Int
Link copied to clipboard
abstract fun isIconVisible(): Boolean
Link copied to clipboard
abstract fun <P : VoicePlayer> matchFilters(@NotNull p0: @NotNull P): Boolean
Link copied to clipboard
open fun <P : VoicePlayer> notMatchFilters(@NotNull p0: @NotNull P): 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
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 setIconVisible(p0: Boolean)
Link copied to clipboard
abstract fun setName(@Nullable p0: @Nullable String?)
Link copied to clipboard
abstract fun setStereo(p0: Boolean)