Class AmbientAdditionsSettings.Builder
java.lang.Object
dev.wyck.environment.sounds.AmbientAdditionsSettings.Builder
- Enclosing interface:
AmbientAdditionsSettings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the ambient additions settings record.Sets the sound event to play.Sets the sound event to play.Sets the sound event to play.Sets the sound event to play.soundEvent(SoundEvent soundEvent) Sets the sound event to play.tickChance(double tickChance) Sets the chance of the sound event to play per tick.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
soundEvent
Sets the sound event to play.- Parameters:
soundEvent- the sound event to play- Returns:
- this builder
- Since:
- 2.4.1
-
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
Sets the sound event to play.- Parameters:
bukkitSound- the sound event to play- Returns:
- this builder
- Since:
- 3.0.1
-
sound
Sets the sound event to play.- Parameters:
bukkitSound- the sound event to playrange- the range of the sound- Returns:
- this builder
- Since:
- 3.1.0
-
sound
Sets the sound event to play.- Parameters:
soundKey- the sound event to play- Returns:
- this builder
- Since:
- 3.1.0
-
sound
Sets the sound event to play.- Parameters:
soundKey- the sound event to playrange- the range of the sound- Returns:
- this builder
- Since:
- 3.1.0
-
build
Builds the ambient additions settings record.- Returns:
- the ambient additions settings record
- Since:
- 2.4.1
-