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
-
Constructor Summary
ConstructorsConstructorDescriptionSoundReceiverSoundHeardMatcher(String soundKey, Predicate<AudioExperience> filter) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddescribeMismatchSafely(SoundReceiver soundReceiver, org.hamcrest.Description description) voiddescribeTo(org.hamcrest.Description description) static @NotNull SoundReceiverSoundHeardMatcherstatic @NotNull SoundReceiverSoundHeardMatcherhasHeard(@NotNull String soundKey, @NotNull Predicate<AudioExperience> filter) static @NotNull SoundReceiverSoundHeardMatcherhasHeard(@NotNull net.kyori.adventure.sound.Sound sound) static @NotNull SoundReceiverSoundHeardMatcherhasHeard(@NotNull net.kyori.adventure.sound.Sound sound, @NotNull Predicate<AudioExperience> filter) static @NotNull SoundReceiverSoundHeardMatcherstatic @NotNull SoundReceiverSoundHeardMatcherhasHeard(Sound sound, @NotNull Predicate<AudioExperience> filter) static @NotNull org.hamcrest.Matcher<SoundReceiver> hasNotHeard(@NotNull String sound) static @NotNull org.hamcrest.Matcher<SoundReceiver> hasNotHeard(@NotNull String soundKey, @NotNull Predicate<AudioExperience> filter) static @NotNull org.hamcrest.Matcher<SoundReceiver> hasNotHeard(@NotNull net.kyori.adventure.sound.Sound sound) static @NotNull org.hamcrest.Matcher<SoundReceiver> hasNotHeard(Sound sound) static @NotNull org.hamcrest.Matcher<SoundReceiver> hasNotHeard(Sound sound, @NotNull Predicate<AudioExperience> filter) protected booleanmatchesSafely(SoundReceiver soundReceiver) Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Constructor Details
-
SoundReceiverSoundHeardMatcher
-
-
Method Details
-
matchesSafely
- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<SoundReceiver>
-
describeTo
public void describeTo(org.hamcrest.Description description) -
describeMismatchSafely
protected void describeMismatchSafely(SoundReceiver soundReceiver, org.hamcrest.Description description) - Overrides:
describeMismatchSafelyin classorg.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 matchfilter- 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 matchfilter- 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 matchfilter- 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 matchfilter- 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 matchfilter- 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
- 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
-