SoundEvent

class SoundEvent(var replaceVanilla: Boolean = true, var subtitle: String? = null, var soundSet: MutableList<Key> = mutableListOf())

A sound event represents a set of sounds that can play when a sound event is started.

Constructors

Link copied to clipboard
constructor(key: Key, replaceVanilla: Boolean = true, subtitle: String? = null, soundSet: MutableList<Key> = mutableListOf(key))
constructor(replaceVanilla: Boolean = true, subtitle: String? = null, soundSet: MutableList<Key> = mutableListOf())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var key: Key

The key of this sound event.

Link copied to clipboard

Whether this sound should replace vanilla's sound.

Link copied to clipboard

The sound set of this sound event.

Link copied to clipboard

The translation key of the subtitle that should be displayed.

Functions

Link copied to clipboard
fun addSound(key: Key)

Adds a sound to this event's sound set.