Music

interface Music

Music that may be played. This has a minimum and maximum delay before the music will start playing, and the music can start playing anywhere in between this time frame.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
@ApiStatus.Internal
interface Factory

Properties

Link copied to clipboard
@get:JvmName(name = "maximumDelay")
abstract val maximumDelay: Int

The maximum delay before the music will start playing.

Link copied to clipboard
@get:JvmName(name = "minimumDelay")
abstract val minimumDelay: Int

The minimum delay before the music will start playing.

Link copied to clipboard
@get:JvmName(name = "replaceCurrentMusic")
abstract val replaceCurrentMusic: Boolean

If this music should replace any currently playing music.

Link copied to clipboard
@get:JvmName(name = "sound")
abstract val sound: SoundEvent

The sound that will be played.