Builder

A builder for ambient additions settings.

Functions

Link copied to clipboard
@Contract(value = "-> new", pure = true)
@NotNull
abstract fun build(): @NotNull AmbientAdditionsSettings
Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun probability(probability: Double): AmbientAdditionsSettings.Builder

Sets the probability for the ambient additions settings to the given probability.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun sound(sound: SoundEvent): AmbientAdditionsSettings.Builder

Sets the sound for the ambient additions settings to the given sound.