VoicePlayer

interface VoicePlayer

Represents a voice API for the player.

Functions

Link copied to clipboard
Creates and returns a new instance of VoicePlayerInfo for this player.
Link copied to clipboard
abstract fun getActivationDistanceById(@NotNull activationId: @NotNull UUID): Int
Gets the activation's distance by its ID.
Link copied to clipboard
Retrieves the currently active activations for the player.
Link copied to clipboard
@NotNull
abstract fun getInstance(): @NotNull McPlayer
Gets the Minecraft player instance associated with this voice player.
Link copied to clipboard
@NotNull
abstract fun getModVersion(): @NotNull Optional<String>
Gets the version of the player's Plasmo Voice.
Link copied to clipboard
Gets the player's public key.
Link copied to clipboard
abstract fun hasVoiceChat(): Boolean
Checks if the player has a Plasmo Voice installed and connected to the UDP server.
Link copied to clipboard
abstract fun isMicrophoneMuted(): Boolean
Checks if the player has muted the microphone in voice chat.
Link copied to clipboard
abstract fun isVoiceDisabled(): Boolean
Checks if the player has voice chat disabled.
Link copied to clipboard
abstract fun sendAnimatedActionBar(@NotNull text: @NotNull McTextComponent)
Sends an animated actionbar message to the player.
Link copied to clipboard
abstract fun sendPacket(packet: Packet<out Any>)
Sends a packet to the player via the Plasmo Voice Minecraft channel.
Link copied to clipboard
open fun visualizeDistance(radius: Int)
Visualizes a sphere distance with the default color (0x00a000) if the client has enabled this feature.
abstract fun visualizeDistance(radius: Int, hexColor: Int)
Visualizes a sphere distance if the client has enabled this feature.
open fun visualizeDistance(@NotNull position: @NotNull Pos3d, radius: Int)
Visualizes a sphere distance at a specific position with the default color (0x00a000) if the client has enabled this feature.
abstract fun visualizeDistance(@NotNull position: @NotNull Pos3d, radius: Int, hexColor: Int)
Visualizes a sphere distance at a specific position if the client has enabled this feature.