AmbientMoodSoundBuilder

Builder for AmbientMoodSoundBuilder. If you're unfamiliar with Minecraft's mood sound system, check out the Minecraft Wiki.

The following settings are available:

  • soundEvent - The SoundEvent that is played.

  • tickDelay - The delay between each sound event in ticks.

  • blockSearchExtent - The range of possible positions to find place to play the mood sound.

  • soundPositionOffset - The offset of the sound position.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun blockSearchExtent(blockSearchExtent: Int)

Sets the blockSearchExtent setting of the biome's ambient mood sound to the given blockSearchExtent.

Link copied to clipboard
fun build(): AmbientMoodSettings

Builds a AmbientMoodSettings instance from the current state of this builder.

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

Sets the soundEvent setting of the biome's ambient mood sound to the given soundEvent via a Holder that either already contains a SoundEvent, or is set later by the SoundEvent Registry.

fun soundEvent(soundEventId: ResourceKey<SoundEvent>)

Sets the soundEvent setting of the biome's ambient mood sound to the given soundEventId via its ResourceKey. If the SoundEvent is not yet registered, an empty Holder will be created and the SoundEvent will be set later by the SoundEvent Registry.

fun soundEvent(soundEventId: ResourceLocation)

Sets the soundEvent setting of the biome's ambient mood sound to the given soundEventId via its ResourceLocation. If the SoundEvent is not yet registered, an empty Holder will be created and the SoundEvent will be set later by the SoundEvent Registry.

fun soundEvent(soundEvent: SoundEvent)

Sets the soundEvent setting of the biome's ambient mood sound to the given soundEvent.

Link copied to clipboard
fun soundPositionOffset(soundPositionOffset: Double)

Sets the soundPositionOffset setting of the biome's ambient mood sound to the given soundPositionOffset.

Link copied to clipboard
fun tickDelay(tickDelay: Int)

Sets the tickDelay setting of the biome's ambient mood sound to the given tickDelay.