Package net.kyori.adventure.sound
Interface SoundStop
- All Superinterfaces:
net.kyori.examination.Examinable
public interface SoundStop
extends net.kyori.examination.Examinable
A sound stop.
- Since:
- 4.0.0
-
Method Summary
Modifier and Type Method Description static @NonNull SoundStopall()Stops all sounds.static @NonNull SoundStopnamed(@NonNull Supplier<? extends Sound.Type> sound)Stops all sounds namedsound.static @NonNull SoundStopnamed(@NonNull Key sound)Stops all sounds namedsound.static @NonNull SoundStopnamed(@NonNull Sound.Type sound)Stops all sounds namedsound.static @NonNull SoundStopnamedOnSource(@NonNull Supplier<? extends Sound.Type> sound, @NonNull Sound.Source source)Stops all sounds namednameon sourcesource.static @NonNull SoundStopnamedOnSource(@NonNull Key sound, @NonNull Sound.Source source)Stops all sounds namednameon sourcesource.static @NonNull SoundStopnamedOnSource(@NonNull Sound.Type sound, @NonNull Sound.Source source)Stops all sounds namednameon sourcesource.@Nullable Keysound()Gets the sound.@Nullable Sound.Sourcesource()Gets the source.static @NonNull SoundStopsource(@NonNull Sound.Source source)Stops all sounds on sourcesource.
-
Method Details
-
all
Stops all sounds.- 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
-
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
static @NonNull SoundStop namedOnSource(@NonNull Supplier<? extends Sound.Type> sound, @NonNull Sound.Source source)Stops all sounds namednameon sourcesource.- Parameters:
sound- the soundsource- the source- Returns:
- a sound stopper
- Since:
- 4.0.0
-
sound
@Nullable Key sound()Gets the sound.- Returns:
- the sound
- Since:
- 4.0.0
-
source
@Nullable Sound.Source source()Gets the source.- Returns:
- the source
- Since:
- 4.0.0
-