ItemSound

class ItemSound(val sound: Sound, val clickType: ClickType)(source)

This class is used to store a sound and the click types which should trigger the sound

Parameters

sound

The sound which should be played

clickType

The click types which should trigger the sound. If left empty, the sound will be played on every click, regardless of the click type

Constructors

Link copied to clipboard
constructor(sound: Sound, vararg clickType: ClickType)

Properties

Link copied to clipboard
val clickType: Array<out ClickType>
Link copied to clipboard
val sound: Sound