add

fun add(soundEvent: SoundEvent): SoundEvent

Adds a sound event to this sound list.

Parameters

soundEvent

The sound event.


fun add(key: Key): SoundEvent

Adds a basic sound event to this sound list.

Parameters

key

The key of the sound.


fun add(key: Key? = null, block: SoundEvent.() -> Unit): SoundEvent

Builds and adds a sound event to this sound list.

Parameters

key

The key of the sound. Can be null if you would like to set it in the builder.