KSpigotSound

data class KSpigotSound(sound: Sound, volume: Float, pitch: Float, category: SoundCategory?)

Functions

component1
Link copied to clipboard
operator fun component1(): Sound
component2
Link copied to clipboard
operator fun component2(): Float
component3
Link copied to clipboard
operator fun component3(): Float
component4
Link copied to clipboard
operator fun component4(): SoundCategory?
copy
Link copied to clipboard
fun copy(sound: Sound, volume: Float, pitch: Float, category: SoundCategory?): KSpigotSound
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
playAt
Link copied to clipboard

Plays the sound at the location. It will be audible for everyone near it.

fun playAt(loc: Location)
playFor
Link copied to clipboard

Plays the sound at the location of the player. It will be only audible for the player.

fun playFor(player: Player)
toString
Link copied to clipboard
open override fun toString(): String

Properties

category
Link copied to clipboard
var category: SoundCategory?
pitch
Link copied to clipboard
var pitch: Float
sound
Link copied to clipboard
val sound: Sound
volume
Link copied to clipboard
var volume: Float