Class SoundService
java.lang.Object
io.github.thebusybiscuit.slimefun4.core.services.sounds.SoundService
The
SoundService is responsible for our sound management.
It allows server owners to fully customize their users' sound experience.- Author:
- TheBusyBiscuit
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConfiguration(SoundEffect sound) This returns the currently used (immutable)SoundConfigurationfor the givenSoundEffect.voidreload(boolean save) This method reloads everySoundConfiguration.
-
Constructor Details
-
SoundService
-
-
Method Details
-
reload
public void reload(boolean save) This method reloads everySoundConfiguration.- Parameters:
save- Whether to save the defaults to disk
-
getConfiguration
This returns the currently used (immutable)SoundConfigurationfor the givenSoundEffect.- Parameters:
sound- TheSoundEffect- Returns:
- The corresponding
SoundConfiguration. This may be null if something went wrong
-