Package pi.config
Class SoundConfiguration
java.lang.Object
pi.config.ConfigurationGroup
pi.config.SoundConfiguration
- Since:
- 0.42.0
- Author:
- Steffen Wilke, Matthias Wilke
-
Nested Class Summary
Nested classes/interfaces inherited from class pi.config.ConfigurationGroup
ConfigurationGroup.ConfigurationChangedListener -
Method Summary
Modifier and TypeMethodDescriptionfloatGets the current music volume.floatGets the current sound volume.voidsetMusicVolume(float musicVolume) Sets the music volume.voidsetSoundVolume(float soundVolume) Sets the sound volume.Methods inherited from class pi.config.ConfigurationGroup
getPrefix, initializeByProperty, isDebug, onChanged, removeListener, set, setDebug, storeProperties
-
Method Details
-
getMusicVolume
public float getMusicVolume()Gets the current music volume.- Returns:
- the music volume.
-
getSoundVolume
public float getSoundVolume()Gets the current sound volume.- Returns:
- the sound volume.
-
setMusicVolume
public void setMusicVolume(float musicVolume) Sets the music volume.- Parameters:
musicVolume- the new music volume.
-
setSoundVolume
public void setSoundVolume(float soundVolume) Sets the sound volume.- Parameters:
soundVolume- the new sound volume.
-