Class Music.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • sound

      @AsOf("2.4.1") public Music.Builder sound(SoundEvent sound)
      Sets the sound of the music.
      Parameters:
      sound - the sound of the music
      Returns:
      this builder
      Since:
      2.4.1
    • minDelay

      @AsOf("2.4.1") public Music.Builder minDelay(int minDelay)
      Sets the minimum delay of the music.
      Parameters:
      minDelay - the minimum delay of the music
      Returns:
      this builder
      Since:
      2.4.1
    • maxDelay

      @AsOf("2.4.1") public Music.Builder maxDelay(int maxDelay)
      Sets the maximum delay of the music.
      Parameters:
      maxDelay - the maximum delay of the music
      Returns:
      this builder
      Since:
      2.4.1
    • replaceCurrentMusic

      @AsOf("2.4.1") public Music.Builder replaceCurrentMusic(boolean replaceCurrentMusic)
      Sets whether the music should replace the current music.
      Parameters:
      replaceCurrentMusic - whether the music should replace the current music
      Returns:
      this builder
      Since:
      2.4.1
    • build

      @AsOf("2.4.1") public Music build()
      Builds the music record.
      Returns:
      the music record
      Since:
      2.4.1