Class SoundDefinitionProviderBase.SoundSettingsBuilder
java.lang.Object
org.moddingx.libx.datagen.provider.SoundDefinitionProviderBase.SoundSettingsBuilder
- Enclosing class:
- SoundDefinitionProviderBase
-
Method Summary
Modifier and TypeMethodDescriptionattenuationDistance
(int attenuationDistance) Sets the attenuation distance for the sound settings.pitch
(float pitch) Sets the pitch for the sound settings.preload()
Marks the sound settings as preloaded.preload
(boolean preload) Sets the preload state of the sound settings.stream()
Marks the sound settings as stream sound.stream
(boolean stream) Sets the stream state of the sound settings.volume
(float volume) Sets the volume for the sound settings.weight
(int weight) Sets the weight for the sound settings.
-
Method Details
-
volume
Sets the volume for the sound settings.- See Also:
-
SoundDefinition.Sound.volume(float)
-
pitch
Sets the pitch for the sound settings.- See Also:
-
SoundDefinition.Sound.pitch(float)
-
weight
Sets the weight for the sound settings.- See Also:
-
SoundDefinition.Sound.weight(int)
-
stream
Marks the sound settings as stream sound.- See Also:
-
SoundDefinition.Sound.stream()
-
stream
Sets the stream state of the sound settings.- See Also:
-
SoundDefinition.Sound.stream(boolean)
-
attenuationDistance
public SoundDefinitionProviderBase.SoundSettingsBuilder attenuationDistance(int attenuationDistance) Sets the attenuation distance for the sound settings.- See Also:
-
SoundDefinition.Sound.attenuationDistance(int)
-
preload
Marks the sound settings as preloaded.- See Also:
-
SoundDefinition.Sound.preload()
-
preload
Sets the preload state of the sound settings.- See Also:
-
SoundDefinition.Sound.preload(boolean)
-