Class AmbientAdditionsSettings.Builder

java.lang.Object
dev.wyck.environment.sounds.AmbientAdditionsSettings.Builder
Enclosing interface:
AmbientAdditionsSettings

@AsOf("2.4.1") public static final class AmbientAdditionsSettings.Builder extends Object
Builder for ambient additions settings records.
Since:
2.4.1
  • Constructor Details

  • Method Details

    • soundEvent

      @AsOf("2.4.1") public AmbientAdditionsSettings.Builder soundEvent(SoundEvent soundEvent)
      Sets the sound event to play.
      Parameters:
      soundEvent - the sound event to play
      Returns:
      this builder
      Since:
      2.4.1
    • tickChance

      @AsOf("2.4.1") public AmbientAdditionsSettings.Builder tickChance(double tickChance)
      Sets the chance of the sound event to play per tick.
      Parameters:
      tickChance - the chance of the sound event to play per tick
      Returns:
      this builder
      Since:
      2.4.1
    • sound

      @AsOf("3.0.1") public AmbientAdditionsSettings.Builder sound(Sound bukkitSound)
      Sets the sound event to play.
      Parameters:
      bukkitSound - the sound event to play
      Returns:
      this builder
      Since:
      3.0.1
    • sound

      @AsOf("3.1.0") public AmbientAdditionsSettings.Builder sound(Sound bukkitSound, float range)
      Sets the sound event to play.
      Parameters:
      bukkitSound - the sound event to play
      range - the range of the sound
      Returns:
      this builder
      Since:
      3.1.0
    • sound

      @AsOf("3.1.0") public AmbientAdditionsSettings.Builder sound(String soundKey)
      Sets the sound event to play.
      Parameters:
      soundKey - the sound event to play
      Returns:
      this builder
      Since:
      3.1.0
    • sound

      @AsOf("3.1.0") public AmbientAdditionsSettings.Builder sound(String soundKey, float range)
      Sets the sound event to play.
      Parameters:
      soundKey - the sound event to play
      range - the range of the sound
      Returns:
      this builder
      Since:
      3.1.0
    • build

      @AsOf("2.4.1") public AmbientAdditionsSettings build()
      Builds the ambient additions settings record.
      Returns:
      the ambient additions settings record
      Since:
      2.4.1