MusicBuilder

Builder for Music.

Functions

Link copied to clipboard
fun maxDelay(maxDelay: Int)

Sets the maxDelay setting of the music to the given maxDelay.

Link copied to clipboard
fun minDelay(minDelay: Int)

Sets the minDelay setting of the music to the given minDelay.

Link copied to clipboard
fun replaceCurrentMusic(replaceCurrentMusic: Boolean)

Sets the replaceCurrentMusic setting of the music to the given replaceCurrentMusic.

Link copied to clipboard
fun soundEvent(soundEvent: Holder<SoundEvent>)
fun soundEvent(soundEvent: SoundEvent)

Sets the soundEvent setting of the music to the given soundEvent.

fun soundEvent(soundEventId: ResourceKey<SoundEvent>)
fun soundEvent(soundEventId: ResourceLocation)

Sets the soundEvent setting of the music to the given soundEventId.