Class BackgroundMusic.Builder

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

@AsOf("2.4.1") public static final class BackgroundMusic.Builder extends Object
Builder for creating background music records.
Since:
2.4.1
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • defaultMusic

      @AsOf("2.4.1") public BackgroundMusic.Builder defaultMusic(@Nullable Music defaultMusic)
      Sets the default music.
      Parameters:
      defaultMusic - the default music
      Returns:
      this builder
      Since:
      2.4.1
    • creativeMusic

      @AsOf("2.4.1") public BackgroundMusic.Builder creativeMusic(@Nullable Music creativeMusic)
      Sets the creative music.
      Parameters:
      creativeMusic - the creative music
      Returns:
      this builder
      Since:
      2.4.1
    • underwaterMusic

      @AsOf("2.4.1") public BackgroundMusic.Builder underwaterMusic(@Nullable Music underwaterMusic)
      Sets the underwater music.
      Parameters:
      underwaterMusic - the underwater music
      Returns:
      this builder
      Since:
      2.4.1
    • build

      @AsOf("2.4.1") public BackgroundMusic build()
      Builds the background music.
      Returns:
      a new background music record
      Since:
      2.4.1