VoiceSourceLine

Constructors

Link copied to clipboard
constructor(@NotNull name: @NotNull String, @NotNull translation: @NotNull String, @NotNull icon: @NotNull String, defaultVolume: Double, weight: Int, @Nullable players: @Nullable Set<McGameProfile>)

Properties

Link copied to clipboard
Link copied to clipboard
val PROXIMITY_NAME: String = "proximity"

Functions

Link copied to clipboard
open fun deserialize(in: ByteArrayDataInput)
Deserialize the object from a byte stream using the provided ByteArrayDataInput.
Link copied to clipboard
open fun generateId(@NotNull name: @NotNull String): UUID
Link copied to clipboard
abstract fun getDefaultVolume(): Double
Gets the default volume level for the source line.
Link copied to clipboard
@NotNull
abstract fun getIcon(): @NotNull String
Gets the icon associated with the source line.
Link copied to clipboard
@NotNull
abstract fun getId(): @NotNull UUID
Gets the source line's unique identifier.
Link copied to clipboard
@NotNull
abstract fun getName(): @NotNull String
Gets the name of the source line.
Link copied to clipboard
@Nullable
open fun getPlayers(): @Nullable Collection<McGameProfile>
Gets the players associated with the source line.
Link copied to clipboard
@NotNull
abstract fun getTranslation(): @NotNull String
Gets the translation key associated with the source line.
Link copied to clipboard
open fun getWeight(): Int
Gets the weight of the source line.
Link copied to clipboard
open fun hasPlayers(): Boolean
Checks if the source line can contain players.
Link copied to clipboard
open fun serialize(out: ByteArrayDataOutput)
Serialize the object to a byte stream using the provided ByteArrayDataOutput.