Class SoundReceiverSoundHeardMatcher

java.lang.Object
org.hamcrest.BaseMatcher<SoundReceiver>
org.hamcrest.TypeSafeMatcher<SoundReceiver>
org.mockbukkit.mockbukkit.matcher.sound.SoundReceiverSoundHeardMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<SoundReceiver>, org.hamcrest.SelfDescribing

public class SoundReceiverSoundHeardMatcher extends org.hamcrest.TypeSafeMatcher<SoundReceiver>
  • Constructor Details

  • Method Details

    • matchesSafely

      protected boolean matchesSafely(SoundReceiver soundReceiver)
      Specified by:
      matchesSafely in class org.hamcrest.TypeSafeMatcher<SoundReceiver>
    • describeTo

      public void describeTo(org.hamcrest.Description description)
    • describeMismatchSafely

      protected void describeMismatchSafely(SoundReceiver soundReceiver, org.hamcrest.Description description)
      Overrides:
      describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<SoundReceiver>
    • hasHeard

      @NotNull public static @NotNull SoundReceiverSoundHeardMatcher hasHeard(@NotNull @NotNull net.kyori.adventure.sound.Sound sound, @NotNull @NotNull Predicate<AudioExperience> filter)
      Parameters:
      sound - The required sound for a match
      filter - A custom filter
      Returns:
      A matcher which matches with any sound receiver which has heard the specified sound with filter
    • hasHeard

      @NotNull public static @NotNull SoundReceiverSoundHeardMatcher hasHeard(@NotNull Sound sound, @NotNull @NotNull Predicate<AudioExperience> filter)
      Parameters:
      sound - The required sound for a match
      filter - A custom filter
      Returns:
      A matcher which matches with any sound receiver which has heard the specified sound with filter
    • hasNotHeard

      @NotNull public static @NotNull org.hamcrest.Matcher<SoundReceiver> hasNotHeard(@NotNull Sound sound, @NotNull @NotNull Predicate<AudioExperience> filter)
      Parameters:
      sound - The required sound for no match
      filter - A custom filter
      Returns:
      A matcher which matches with any sound receiver which has not heard the specified sound with filter
    • hasHeard

      @NotNull public static @NotNull SoundReceiverSoundHeardMatcher hasHeard(@NotNull @NotNull String soundKey, @NotNull @NotNull Predicate<AudioExperience> filter)
      Parameters:
      soundKey - The required sound for a match
      filter - A custom filter
      Returns:
      A matcher which matches with any sound receiver which has heard the specified sound with filter
    • hasNotHeard

      @NotNull public static @NotNull org.hamcrest.Matcher<SoundReceiver> hasNotHeard(@NotNull @NotNull String soundKey, @NotNull @NotNull Predicate<AudioExperience> filter)
      Parameters:
      soundKey - The required sound for no match
      filter - A custom filter
      Returns:
      A matcher which matches with any sound receiver which has not heard the specified sound with filter
    • hasHeard

      @NotNull public static @NotNull SoundReceiverSoundHeardMatcher hasHeard(@NotNull @NotNull String sound)
      Parameters:
      sound - The required sound for a match
      Returns:
      A matcher which matches with any sound receiver which has heard the specified sound
    • hasNotHeard

      @NotNull public static @NotNull org.hamcrest.Matcher<SoundReceiver> hasNotHeard(@NotNull @NotNull String sound)
      Parameters:
      sound - The required sound for no match
      Returns:
      A matcher which matches with any sound receiver which has not heard the specified sound
    • hasHeard

      @NotNull public static @NotNull SoundReceiverSoundHeardMatcher hasHeard(@NotNull @NotNull net.kyori.adventure.sound.Sound sound)
      Parameters:
      sound - The required sound for a match
      Returns:
      A matcher which matches with any sound receiver which has heard the specified sound
    • hasNotHeard

      @NotNull public static @NotNull org.hamcrest.Matcher<SoundReceiver> hasNotHeard(@NotNull @NotNull net.kyori.adventure.sound.Sound sound)
      Parameters:
      sound - The required sound for no match
      Returns:
      A matcher which matches with any sound receiver which has not heard the specified sound
    • hasHeard

      @NotNull public static @NotNull SoundReceiverSoundHeardMatcher hasHeard(@NotNull Sound sound)
      Parameters:
      sound - The required sound for a match
      Returns:
      A matcher which matches with any sound receiver which has heard the specified sound
    • hasNotHeard

      @NotNull public static @NotNull org.hamcrest.Matcher<SoundReceiver> hasNotHeard(@NotNull Sound sound)
      Parameters:
      sound - The required sound for no match
      Returns:
      A matcher which matches with any sound receiver which has not heard the specified sound