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 = 1f, pitch: Float = 1f, category: SoundCategory? = null): 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
fun playAt(loc: Location)
Plays the sound at the location.
playFor
Link copied to clipboard
fun playFor(player: Player)
Plays the sound at the location of the player.
toString
Link copied to clipboard
open override fun toString(): String

Properties

category
Link copied to clipboard
var category: SoundCategory? = null
pitch
Link copied to clipboard
var pitch: Float = 1f
sound
Link copied to clipboard
val sound: Sound
volume
Link copied to clipboard
var volume: Float = 1f