Interface SoundStop
public sealed interface SoundStop
A sound and/or a sound source, used for stopping in-game sounds that
are being played on a game client matching the given sound and/or sound source.
For clarification: a SoundStop consisting of the sound "ambient.weather.rain" and the source Sound.Source.AMBIENT
will only stop sounds matching BOTH parameters and not sounds matching only the sound or only the source.
- Since:
- 4.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic SoundStopall()Stops all sounds.static SoundStopnamed(Supplier<? extends Sound.Type> sound) Stops all sounds namedsound.static SoundStopStops all sounds namedsound.static SoundStopnamed(Sound.Type sound) Stops all sounds namedsound.static SoundStopnamedOnSource(Supplier<? extends Sound.Type> sound, Sound.Source source) Stops all sounds namednameon sourcesource.static SoundStopnamedOnSource(Key sound, Sound.Source source) Stops all sounds namednameon sourcesource.static SoundStopnamedOnSource(Sound.Type sound, Sound.Source source) Stops all sounds namednameon sourcesource.@Nullable Keysound()Gets the sound.@Nullable Sound.Sourcesource()Gets the source.static SoundStopsource(Sound.Source source) Stops all sounds on sourcesource.
-
Method Details
-
all
-
named
-
named
Stops all sounds namedsound.- Parameters:
sound- the sound- Returns:
- a sound stopper
- Since:
- 4.0.0
-
named
Stops all sounds namedsound.- Parameters:
sound- the sound- Returns:
- a sound stopper
- Since:
- 4.0.0
-
source
Stops all sounds on sourcesource.- Parameters:
source- the source- Returns:
- a sound stopper
- Since:
- 4.0.0
-
namedOnSource
Stops all sounds namednameon sourcesource.- Parameters:
sound- the soundsource- the source- Returns:
- a sound stopper
- Since:
- 4.0.0
-
namedOnSource
Stops all sounds namednameon sourcesource.- Parameters:
sound- the soundsource- the source- Returns:
- a sound stopper
- Since:
- 4.0.0
-
namedOnSource
Stops all sounds namednameon sourcesource.- Parameters:
sound- the soundsource- the source- Returns:
- a sound stopper
- Since:
- 4.0.0
-
sound
-
source
-