ClientSourceLine

Represents a client source line.

Properties

Link copied to clipboard
abstract val defaultVolume: Double
Link copied to clipboard
@get:NotNull
abstract val icon: @NotNull String
Link copied to clipboard
@get:NotNull
abstract val id: @NotNull UUID
Link copied to clipboard
@get:NotNull
abstract val name: @NotNull String
Link copied to clipboard
@get:NotNull
abstract override val players: @NotNull Collection<McGameProfile?>
Link copied to clipboard
@get:NotNull
abstract val translation: @NotNull String
Link copied to clipboard

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.

Link copied to clipboard
open val weight: Int

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
@NotNull
abstract fun getPlayers(): @NotNull Collection<McGameProfile?>
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.