Interface SoundReceiver

All Known Implementing Classes:
PlayerMock

public interface SoundReceiver
This interface provides methods to assert sounds that were heard. This is implemented by PlayerMock, however the sheer amount of assertion methods did warrant a seperate a file at some point.
See Also:
  • Method Details

    • getHeardSounds

      @NotNull @NotNull List<AudioExperience> getHeardSounds()
      This returns a List of every AudioExperience this receiver has received.
      Returns:
      A mutable List containing every heard sound.
    • addHeardSound

      default void addHeardSound(@NotNull @NotNull AudioExperience audioExperience)
    • clearSounds

      default void clearSounds()
    • assertSoundHeard

      default void assertSoundHeard(@NotNull @NotNull org.bukkit.Sound sound)
    • assertSoundHeard

      default void assertSoundHeard(@NotNull @NotNull String sound)
    • assertSoundHeard

      default void assertSoundHeard(@NotNull @NotNull org.bukkit.Sound sound, @NotNull @NotNull Predicate<AudioExperience> predicate)
    • assertSoundHeard

      default void assertSoundHeard(@NotNull @NotNull String sound, @NotNull @NotNull Predicate<AudioExperience> predicate)
    • assertSoundHeard

      default void assertSoundHeard(@NotNull @NotNull String message, @NotNull @NotNull org.bukkit.Sound sound)
    • assertSoundHeard

      default void assertSoundHeard(@NotNull @NotNull String message, @NotNull @NotNull String sound)
    • assertSoundHeard

      default void assertSoundHeard(@NotNull @NotNull String message, @NotNull @NotNull org.bukkit.Sound sound, @NotNull @NotNull Predicate<AudioExperience> predicate)
    • assertSoundHeard

      default void assertSoundHeard(@NotNull @NotNull String message, @NotNull @NotNull String sound, @NotNull @NotNull Predicate<AudioExperience> predicate)