Class AmbientAdditionsSettings.Builder
java.lang.Object
dev.wyck.wrapper.environment.sounds.AmbientAdditionsSettings.Builder
- Enclosing interface:
AmbientAdditionsSettings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the ambient additions settings record.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()
-
-
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
-
build
Builds the ambient additions settings record.- Returns:
- the ambient additions settings record
- Since:
- 2.4.1
-