ClientSourceLine

Represents a client source line.

Properties

Link copied to clipboard
open val translationComponent: McTextComponent

Gets the translation component associated with this source line.

Link copied to clipboard
abstract var volume: Double

Gets or sets the volume for this source line.

Functions

Link copied to clipboard
abstract fun addPlayer(@NotNull player: @NotNull McGameProfile)

Adds a player's game profile to the set.

Link copied to clipboard
abstract fun clearPlayers()

Clears all players from the set.

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
@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 removePlayer(@NotNull playerId: @NotNull UUID): Boolean

Removes a player from the set by their unique player ID.