Class AmbientSounds.Builder

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

@AsOf("2.4.1") public static final class AmbientSounds.Builder extends Object
A builder for ambient sounds.
Since:
2.4.1
  • Constructor Details

    • Builder

      public Builder()
    • Builder

      public Builder(AmbientSounds sounds)
  • Method Details

    • loop

      @AsOf("2.4.1") public AmbientSounds.Builder loop(@Nullable SoundEvent loop)
      Sets the loop sound event.
      Parameters:
      loop - the loop sound event
      Returns:
      this builder
      Since:
      2.4.1
    • mood

      Sets the mood settings.
      Parameters:
      mood - the mood settings
      Returns:
      this builder
      Since:
      2.4.1
    • addition

      @AsOf("2.4.1") public AmbientSounds.Builder addition(AmbientAdditionsSettings... additions)
      Adds an ambient additions settings.
      Parameters:
      additions - the ambient additions settings
      Returns:
      this builder
      Since:
      2.4.1
    • loop

      @AsOf("3.1.0") public AmbientSounds.Builder loop(Sound bukkitSound)
      Sets the loop sound event.
      Parameters:
      bukkitSound - the loop sound event
      Returns:
      this builder
      Since:
      3.1.0
    • loop

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

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

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

      @AsOf("2.4.1") public AmbientSounds build()
      Builds the ambient sounds.
      Returns:
      the ambient sounds
      Since:
      2.4.1