Class Music.Builder
java.lang.Object
dev.wyck.wrapper.environment.sounds.Music.Builder
- Enclosing interface:
Music
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the music record.maxDelay(int maxDelay) Sets the maximum delay of the music.minDelay(int minDelay) Sets the minimum delay of the music.replaceCurrentMusic(boolean replaceCurrentMusic) Sets whether the music should replace the current music.sound(SoundEvent sound) Sets the sound of the music.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sound
Sets the sound of the music.- Parameters:
sound- the sound of the music- Returns:
- this builder
- Since:
- 2.4.1
-
minDelay
Sets the minimum delay of the music.- Parameters:
minDelay- the minimum delay of the music- Returns:
- this builder
- Since:
- 2.4.1
-
maxDelay
Sets the maximum delay of the music.- Parameters:
maxDelay- the maximum delay of the music- Returns:
- this builder
- Since:
- 2.4.1
-
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
-