addSounds

fun addSounds(soundList: SoundList): SoundList

Adds the given sound list to the resource pack.

Return

The added sound list.

Parameters

soundList

The sound list.


fun addSounds(namespace: String? = null, block: SoundList.() -> Unit): SoundList

Builds a sound list from the given namespace and adds it to the resource pack.

Return

The added sound list.

Parameters

namespace

The namespace. Can be null if you would like to set it in the builder.